Who-is-hogging-the-Internet- icon indicating copy to clipboard operation
Who-is-hogging-the-Internet- copied to clipboard

Fail to install python3-nmap

Open dglaude opened this issue 9 years ago • 4 comments

On my Raspbian, the following command fail:

pip install python3-nmap

When I succeed to install with the following, the demo code from documentation fail:

sudo apt-get install python3-nmap

The problem seems that "PortScanner" does not exist, only nmap.nmap seems to exist:

Python 3.4.2 (default, Oct 19 2014, 13:31:11) [GCC 4.9.1] on linux Type "help", "copyright", "credits" or "license" for more information.

import nmap nm = nmap.PortScanner() Traceback (most recent call last): File "", line 1, in AttributeError: 'module' object has no attribute 'PortScanner'

dglaude avatar Dec 25 '16 09:12 dglaude

I am going back to the source cloning the repository and installing from source...

sudo apt-get install mercurial hg clone https://bitbucket.org/xael/python-nmap cd python-nmap/ sudo python3 setup.py install

I hope it help.

dglaude avatar Dec 25 '16 10:12 dglaude

Hi You need to install Nmap first the be able to use Python Nmap: sudo apt-get install nmap Merry Xmas

TeCoEd avatar Dec 26 '16 16:12 TeCoEd

I did, but my only success was by installing the python library from source.

Then I saw the code, it has a lot of duplicate for detecting each individual user. It make it very hard to adapt for someone else network. Refactoring the code and putting hostname and corresponding RGB value and LED position into an array would help a lot.

I gave using your code.

My current plan is arping and storing the MAC address of the family.

On 26 Dec 2016 17:10, "Dan Aldred" [email protected] wrote:

Hi You need to install Nmap first the be able to use Python Nmap: sudo apt-get install nmap Merry Xmas

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/TeCoEd/Who-is-hogging-the-Internet-/issues/1#issuecomment-269223433, or mute the thread https://github.com/notifications/unsubscribe-auth/ASiRnF7EB5hBH3OCji3TrFZqCcPVKUpSks5rL-cKgaJpZM4LVYAA .

dglaude avatar Dec 26 '16 20:12 dglaude

here try this out if the problem doesnt work simple wrapper for many tools feel free to contribute https://github.com/Tech-Realm/The-Exploiter

Majboor avatar Apr 23 '23 21:04 Majboor