mirror of
https://github.com/Ekultek/Zeus-Scanner.git
synced 2026-03-11 08:55:51 +00:00
added a --time-sec flag for the whois search, also caught an exception from whois
This commit is contained in:
parent
7734f87e62
commit
55836461ea
1 changed files with 9 additions and 1 deletions
10
zeus.py
10
zeus.py
|
|
@ -139,6 +139,8 @@ if __name__ == "__main__":
|
|||
help="Parse webcache URLs for the redirect in them")
|
||||
search_items.add_option("--x-forward", dest="forwardedForRandomIP", action="store_true",
|
||||
help="Add a header called 'X-Forwarded-For' with three random IP addresses")
|
||||
search_items.add_option("--time-sec", dest="controlTimeout", metavar="SECONDS", type=int,
|
||||
help="Control the sleep time to the WhoIS lookup to prevent errors")
|
||||
|
||||
# obfuscation options
|
||||
anon = optparse.OptionGroup(parser, "Anonymity arguments",
|
||||
|
|
@ -337,7 +339,7 @@ if __name__ == "__main__":
|
|||
)
|
||||
elif whois:
|
||||
whois_lookup_main(
|
||||
url, verbose=opt.runInVerbose
|
||||
url, verbose=opt.runInVerbose, timeout=opt.controlTimeout
|
||||
)
|
||||
elif clickjacking:
|
||||
clickjacking_main(url, agent=agent_to_use, proxy=proxy_to_use,
|
||||
|
|
@ -565,6 +567,12 @@ if __name__ == "__main__":
|
|||
))
|
||||
request_issue_creation()
|
||||
shutdown()
|
||||
elif "HTTP Error 429: Too Many Requests" in str(e):
|
||||
logger.fatal(set_color(
|
||||
"WhoIs doesn't like it when you send to many requests at one time, "
|
||||
"try updating the timeout with the --time-sec flag (IE --time-sec 10)", level=50
|
||||
))
|
||||
shutdown()
|
||||
else:
|
||||
logger.fatal(set_color(
|
||||
"provided file does not exist, make sure you have the full path...", level=50
|
||||
|
|
|
|||
Loading…
Reference in a new issue