AttributeError: 'NoneType' object has no attribute 'status_code'
edoardottt opened this issue · 0 comments
edoardottt commented
Describe the bug
The program stops and exits with some inputs (unfortunately not always reproducible).
To Reproduce
wafw00f https://ccc-dr-contingent.comcast.com
(not always reproducible)
Desktop (please complete the following information):
- OS: Linux
- OS version, distribution:
Linux 5.13.0-30-generic #33-Ubuntu SMP
- Python version: 3.9
- Wafw00f version: 2.1.0
Debug output
[*] Checking https://ccc-dr-contingent.comcast.com
[+] Generic Detection results:
ERROR:wafw00f:Something went wrong ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
Traceback (most recent call last):
File "/usr/local/bin/wafw00f", line 4, in <module>
__import__('pkg_resources').run_script('wafw00f==2.1.0', 'wafw00f')
File "/home/edoardottt/.local/lib/python3.9/site-packages/pkg_resources/__init__.py", line 662, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/home/edoardottt/.local/lib/python3.9/site-packages/pkg_resources/__init__.py", line 1459, in run_script
exec(code, namespace, namespace)
File "/usr/local/lib/python3.9/dist-packages/wafw00f-2.1.0-py3.9.egg/EGG-INFO/scripts/wafw00f", line 8, in <module>
main.main()
File "/usr/local/lib/python3.9/dist-packages/wafw00f-2.1.0-py3.9.egg/wafw00f/main.py", line 451, in main
if attacker.genericdetect():
File "/usr/local/lib/python3.9/dist-packages/wafw00f-2.1.0-py3.9.egg/wafw00f/main.py", line 95, in genericdetect
if resp1.status_code != resp3.status_code:
AttributeError: 'NoneType' object has no attribute 'status_code'