autorecon.py not working kali

If you have a new 2020 kali installed and try use autorecon.py you will get some errors:

 

 

python autorecon.py
File “autorecon.py”, line 52
def e(*args, frame_index=1, **kvargs):
^
SyntaxError: invalid syntax

or

python3 autorecon.py
Traceback (most recent call last):
File “autorecon.py”, line 24, in
import toml
ModuleNotFoundError: No module named ‘toml’

SOLUTION

apt-get update
sudo apt install python3-pip
sudo apt install python-pip
pip install toml
apt install python-toml

Run these in order and I’m quite sure you’ll be fine.

python3 autorecon.py
[!] You must specify at least one target to scan!