AzeemIdrisi / PhoneSploit-Pro

An all-in-one hacking tool to remotely exploit Android devices using ADB and Metasploit-Framework to get a Meterpreter session.
GNU General Public License v3.0
4.66k stars 604 forks source link

Issue with nmap import. #71

Open Vlad-Timofti opened 6 months ago

Vlad-Timofti commented 6 months ago

Running the script sends a error stating that python can't find the nmap module. After a brief lookup, nmap is installed globally as well as python-nmap and their paths are working. I tried reinstalling nmap and python-nmap but the problem persists.

image

RobertBond commented 5 months ago

I encountered the same issue. I was pulling my hair out (not really) so I decided to look at the README.md file again. The relevant portion is copied below.

Open terminal and paste the following commands :

git clone https://github.com/AzeemIdrisi/PhoneSploit-Pro.git
cd PhoneSploit-Pro/

pip install -r requirements.txt

I had forgotten to run the "pip install -r requirements.txt" command above. Running that command resolved that issue for me. Hope this helps anyone else who has encountered this issue.
/
Vlad-Timofti commented 5 months ago

I did all the steps that you wrote above, but the issue remains.

LaioX commented 4 months ago

I did all the steps that you wrote above, but the issue remains.

Delete all versions of python.

Install version 3.12, then pip install python-nmap

Mickekofi commented 4 months ago

I did all the steps that you wrote above, but the issue remains.

This Can be Solved by Using a virtual environment and then installing nmap in it since you are getting "no module found"

[1] use these if you already have python3 and pip installed in their required versions

python3 -m venv ~/myenv

[2]Now always activate the environment before starting "python3 phonesploitpro.py", do;

source ~/myenv/bin/activate

[3]Lastly lets install nmap-module

pip install python-nmap

That all, don't forget to always activate the environment(method 2 above) before stating. In a case where the problem still persist don't hesitate to comment again. !Happy Exploit!