D4Vinci / bugz-tools

A collection of tools I wrote for bug bounty or hacking and don't mind publishing it :smile:
MIT License
112 stars 46 forks source link

Crashes with large list #1

Closed sumgr0 closed 4 years ago

sumgr0 commented 4 years ago

The script crashes with the list of 5k domains.

python3 ~/BigIP_scanner.py xaa

     BigIP Scanner - By: Karim 'D4Vinci' Shoair

[+] Loaded 5000 domain(s) | Collecting results ( Total progress: 0.40%)Traceback (most recent call last): File "/home/sumit_grover/BigIP_scanner.py", line 131, in main(args) File "/home/sumit_grover/BigIP_scanner.py", line 96, in main domain_result = site.result() File "/usr/lib/python3.7/concurrent/futures/_base.py", line 425, in result return self.get_result() File "/usr/lib/python3.7/concurrent/futures/_base.py", line 384, in get_result raise self._exception File "/usr/lib/python3.7/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, *self.kwargs) File "/home/sumit_grover/BigIP_scanner.py", line 31, in Big_man if no_detection or detect(url, heads): File "/home/sumit_grover/BigIP_scanner.py", line 25, in detect title = re.compile("title>(.)</title").findall(req.content.decode()) UnicodeDecodeError: 'utf-8' codec can't decode byte 0xcc in position 255: invalid continuation byte

D4Vinci commented 4 years ago

Just pushed a fix, it should fix it. Check it out and tell me

sumgr0 commented 4 years ago

It works now.. Thanks for the fix and for the tool...

Cheers!

D4Vinci commented 4 years ago

No problem, glad that fixed it :tada: