Update robust.py
parent
f3d35a3dc3
commit
01acf672f4
|
@ -19,7 +19,11 @@ def parser():
|
||||||
def runrobust(args):
|
def runrobust(args):
|
||||||
found=[]
|
found=[]
|
||||||
def bust(href):
|
def bust(href):
|
||||||
headers={"cookie":" ".join(args.cookie),"user-agent":" ".join(args.uagent)}
|
headers={}
|
||||||
|
if args.cookie:
|
||||||
|
headers["cookie"]=" ".join(args.cookie)
|
||||||
|
if args.uagent:
|
||||||
|
headers["user-agent"]=" ".join(args.uagent)
|
||||||
try:
|
try:
|
||||||
r=requests.get(href)
|
r=requests.get(href)
|
||||||
splitl=r.text.split("\n")
|
splitl=r.text.split("\n")
|
||||||
|
@ -62,5 +66,5 @@ def runrobust(args):
|
||||||
t.start()
|
t.start()
|
||||||
for t in threads:
|
for t in threads:
|
||||||
t.join()
|
t.join()
|
||||||
|
|
||||||
parser()
|
parser()
|
||||||
|
|
Loading…
Reference in New Issue