649 / Memcrashed-DDoS-Exploit

DDoS attack tool for sending forged UDP packets to vulnerable Memcached servers obtained using Shodan API
1.33k stars 465 forks source link

Issue running #4

Closed usmarine2141 closed 6 years ago

usmarine2141 commented 6 years ago

Python 3 is installed shodan installed and getting the errors below

python3 Memcrashed.py Traceback (most recent call last): File "Memcrashed.py", line 2, in import sys, os, time, shodan ModuleNotFoundError: No module named 'shodan'

However i have just queried shodan via CLI with no issues

649 commented 6 years ago

pip install shodan

Make sure that you have the shodan module in the same directory as where you have Python 3 installed. For example: x/Python36_64/Scripts/shodan Where "x" is the pathway to your python installation directory.

This usually happens when you have more than one version of python installed or sometimes where you manually install python, and then you install it via external means like installing it with Visual Studios as well, separately.

usmarine2141 commented 6 years ago

Desktop/Memcrashed-DDoS-Exploit# pip install shodan Requirement already satisfied: shodan in /usr/local/lib/python2.7/dist-packages/shodan-1.7.7-py2.7.egg Requirement already satisfied: XlsxWriter in /usr/lib/python2.7/dist-packages (from shodan) Requirement already satisfied: click in /usr/lib/python2.7/dist-packages (from shodan) Requirement already satisfied: click-plugins in /usr/local/lib/python2.7/dist-packages/click_plugins-1.0.3-py2.7.egg (from shodan) Requirement already satisfied: colorama in /usr/lib/python2.7/dist-packages (from shodan) Requirement already satisfied: requests>=2.2.1 in /usr/lib/python2.7/dist-packages (from shodan)

usmarine2141 commented 6 years ago

i ran pip install shodan after git clone the files.

649 commented 6 years ago
/usr/local/lib/python2.7/dist-packages/click_plugins-1.0.3-py2.7.egg (from shodan)

Right. Notice how it's "python 2.7", are you not executing it with python 3? :-)

You need the module with python 3 not 2.7

I am not suggesting this, but perhaps a full uninstall of python 2.7 and then run the pip command again and it should install it for python 3..

usmarine2141 commented 6 years ago

im going to cp that over to the python3 dir and see if that works

usmarine2141 commented 6 years ago

yeah that didnt work lol

usmarine2141 commented 6 years ago

there is the .c one i have compiled. i assume the reflection file is what your scanning Shodan via API for correct?

brutephishing commented 6 years ago

Put this comand om your terminal apt-get install pip-python3 pip3 install shodan

mrstardust commented 5 years ago

I have this problem too