Skip to content

Commit

Permalink
Update xssrecon.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Ak-wa authored Dec 12, 2019
1 parent 2146557 commit 9627365
Showing 1 changed file with 20 additions and 18 deletions.
38 changes: 20 additions & 18 deletions xssrecon.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,27 +235,29 @@ def argument_parser(self):
print("[+] Setting up XSSRecon")
system("ln -s /usr/bin/XSSRecon/ /usr/local/bin")
print("[+] Done, you can now use XSSRecon from anywhere! Just type 'xssrecon'")
if args.delay:
self.delay = args.delay
if args.silent:
self.silent = True
if args.wordlist:
self.wordlist = args.wordlist
if args.visible:
self.spawn_browser(visibility=True)
sys.exit()
else:
self.spawn_browser(visibility=False)
if args.target:
self.target = str(args.target)
if args.crawl:
self.crawl_and_test(target=self.target)
if args.delay:
self.delay = args.delay
if args.silent:
self.silent = True
if args.wordlist:
self.wordlist = args.wordlist
if args.visible:
self.spawn_browser(visibility=True)
else:
if "=" in self.target:
self.scan_one_url(self.target)
self.spawn_browser(visibility=False)
if args.target:
self.target = str(args.target)
if args.crawl:
self.crawl_and_test(target=self.target)
else:
print("[!] Please use --crawl or pass a full url with a parameter to test (e.g http://example.com/index.php?id=1)")
self.driver.quit()
sys.exit()
if "=" in self.target:
self.scan_one_url(self.target)
else:
print("[!] Please use --crawl or pass a full url with a parameter to test (e.g http://example.com/index.php?id=1)")
self.driver.quit()
sys.exit()

def run(self):
try:
Expand Down

0 comments on commit 9627365

Please sign in to comment.