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")
|
||||||
|
|
Loading…
Reference in New Issue