Tib3rius / AutoRecon

AutoRecon is a multi-threaded network reconnaissance tool which performs automated enumeration of services.
GNU General Public License v3.0
4.99k stars 856 forks source link

TypeErrors 'NoneType' object is not iterable #54

Closed oxidizeddreams closed 2 years ago

oxidizeddreams commented 4 years ago
[*] Scanning target 127.0.0.1
concurrent.futures.process._RemoteTraceback:
"""
Traceback (most recent call last):
  File "/usr/local/opt/python@3.8/Frameworks/Python.framework/Versions/3.8/lib/python3.8/concurrent/futures/process.py", line 239, in _process_worker
    r = call_item.fn(*call_item.args, **call_item.kwargs)
  File "/Users/sysko/PycharmProjects/osint/AutoRecon/src/autorecon/autorecon.py", line 679, in scan_host
    loop.run_until_complete(scan_services(loop, semaphore, target))
  File "/usr/local/opt/python@3.8/Frameworks/Python.framework/Versions/3.8/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
    return future.result()
  File "/Users/sysko/PycharmProjects/osint/AutoRecon/src/autorecon/autorecon.py", line 485, in scan_services
    for profile in port_scan_profiles_config:
TypeError: 'NoneType' object is not iterable
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "src/autorecon/autorecon.py", line 880, in <module>
    main()
  File "src/autorecon/autorecon.py", line 868, in main
    future.result()
  File "/usr/local/opt/python@3.8/Frameworks/Python.framework/Versions/3.8/lib/python3.8/concurrent/futures/_base.py", line 432, in result
    return self.__get_result()
  File "/usr/local/opt/python@3.8/Frameworks/Python.framework/Versions/3.8/lib/python3.8/concurrent/futures/_base.py", line 388, in __get_result
    raise self._exception
TypeError: 'NoneType' object is not iterable
samuel-emrys commented 3 years ago

What command did you execute? Can you provide steps to reproduce it? What method did you use for installation?

Spl01ter commented 3 years ago

Same problem here

Spl01ter commented 3 years ago

Installed with pipx and command was autorecon 127.0.0.1

Spl01ter commented 3 years ago

concurrent.futures.process._RemoteTraceback: """ Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/concurrent/futures/process.py", line 243, in _process_worker r = call_item.fn(*call_item.args, **call_item.kwargs) File "/Users/ac/.local/pipx/venvs/autorecon/lib/python3.9/site-packages/autorecon/autorecon.py", line 679, in scan_host loop.run_until_complete(scan_services(loop, semaphore, target)) File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete return future.result() File "/Users/ac/.local/pipx/venvs/autorecon/lib/python3.9/site-packages/autorecon/autorecon.py", line 485, in scan_services for profile in port_scan_profiles_config: TypeError: 'NoneType' object is not iterable """

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/Users/ac/.local/bin/autorecon", line 8, in sys.exit(main()) File "/Users/ac/.local/pipx/venvs/autorecon/lib/python3.9/site-packages/autorecon/autorecon.py", line 868, in main future.result() File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/concurrent/futures/_base.py", line 433, in result return self.get_result() File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/concurrent/futures/_base.py", line 389, in get_result raise self._exception TypeError: 'NoneType' object is not iterable

samuel-emrys commented 3 years ago

@Metaspl01t-006 does the file ~/.config/AutoRecon/port_scan_profiles.toml exist?

Spl01ter commented 3 years ago

Found the problem. ~/.config/AutoRecon/port_scan_profiles.toml is named ~/.config/AutoRecon/port_scan_profiles_default.toml

Spl01ter commented 3 years ago

Problem still exists even when the files are renamed

Spl01ter commented 3 years ago

I think it is a problem with python@3.9 rather than AutoRecon

Spl01ter commented 3 years ago

Works perfectly fine on Kali Linux with python@3.7

jonnyhoff commented 3 years ago

Installed with pipx and command was autorecon 127.0.0.1

Same issue.

jonnyhoff commented 3 years ago

MacOS + Python 3.9.0

Tib3rius commented 2 years ago

Should be fixed in the beta either way.