After cloning bamf and installing the requirements from the txt file, the output from pip read:
Collecting shodan==1.9.0 (from -r requirements.txt (line 2))
Downloading https://files.pythonhosted.org/packages/8a/bc/e3066547decf70a60798003bf822b71d0d23c502d77a4a6b1426b590fd0b/shodan-1.9.0.tar.gz (43kB)
100% |████████████████████████████████| 51kB 14.5MB/s
Even though everything is up to date and the requirements were installed, I get this error:
$ python bamf.py --shodan [my shodan API key]
Traceback (most recent call last):
File "bamf.py", line 27, in <module>
import shodan
ImportError: No module named shodan
$ sudo pip install shodan
The directory '/home/ghost/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/ghost/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting shodan
Downloading https://files.pythonhosted.org/packages/24/36/87e5e4cab32ffeba1c7304f7dadc00b93491bc3b3de0b599ccacfa3b3671/shodan-1.10.4.tar.gz (44kB)
100% |████████████████████████████████| 51kB 2.9MB/s
Collecting click (from shodan)
Downloading https://files.pythonhosted.org/packages/fa/37/45185cb5abbc30d7257104c434fe0b07e5a195a6847506c074527aa599ec/Click-7.0-py2.py3-none-any.whl (81kB)
100% |████████████████████████████████| 81kB 2.0MB/s
Collecting click-plugins (from shodan)
Downloading https://files.pythonhosted.org/packages/95/dd/fef84cf1678418f241ef542c0288bdf215bdd3e35f1fe03dc5223a2e80ba/click_plugins-1.0.4-py2.py3-none-any.whl
Collecting colorama (from shodan)
Downloading https://files.pythonhosted.org/packages/0a/93/6e8289231675d561d476d656c2ee3a868c1cca207e16c118d4503b25e2bf/colorama-0.4.0-py2.py3-none-any.whl
Requirement already satisfied: requests>=2.2.1 in /usr/local/lib/python2.7/dist-packages (from shodan) (2.18.1)
Collecting XlsxWriter (from shodan)
Downloading https://files.pythonhosted.org/packages/cf/37/830a21a2f6fa3e4cbda743c34fc94bee2ac07cb3ccf1630069fa8bc3190b/XlsxWriter-1.1.1-py2.py3-none-any.whl (142kB)
100% |████████████████████████████████| 143kB 4.0MB/s
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python2.7/dist-packages (from requests>=2.2.1->shodan) (2017.4.17)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /usr/local/lib/python2.7/dist-packages (from requests>=2.2.1->shodan) (3.0.4)
Requirement already satisfied: urllib3<1.22,>=1.21.1 in /usr/local/lib/python2.7/dist-packages (from requests>=2.2.1->shodan) (1.21.1)
Requirement already satisfied: idna<2.6,>=2.5 in /usr/local/lib/python2.7/dist-packages (from requests>=2.2.1->shodan) (2.5)
Installing collected packages: click, click-plugins, colorama, XlsxWriter, shodan
Running setup.py install for shodan ... done
Successfully installed XlsxWriter-1.1.1 click-7.0 click-plugins-1.0.4 colorama-0.4.0 shodan-1.10.4
$ python bamf.py --shodan [my shodan API key]
Traceback (most recent call last):
File "bamf.py", line 29, in <module>
import mechanize
ImportError: No module named mechanize