TeCoEd / Who-is-hogging-the-Internet-

A Raspberry Pi project to search and find who is using an Internet connection
GNU General Public License v3.0
16 stars 2 forks source link

Fail to install python3-nmap #1

Open dglaude opened 7 years ago

dglaude commented 7 years ago

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 commented 7 years ago

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.

TeCoEd commented 7 years ago

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

dglaude commented 7 years ago

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" notifications@github.com 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 .

Majboor commented 1 year ago

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