python-netdiscover is a simple wrapper for the netdiscover reconnaissance tool
Project description
The python-netdiscover is a simple wrapper for the netdiscover reconnaissance tool.
This library offers a simple way to create scans from a python script and analyse the results.
Documentation: https://python-netdiscover.readthedocs.io
GitHub: https://github.com/MrSuicideParrot/python-netdiscover
Installation
First, you will need to install the netdiscover binary on your system, this may depend on your operating system. Many distributions have this tool available in their main repository.
From the shell, uncompress python-netdiscover.tar.gz and then run make :
$ tar xvzf python-netdiscover.tar.gz
$ cd python-netdiscover
$ python setup.py install
or using Pip
$ pip install python-netdiscover
Usage
From python/ipython:
>>> from netdiscover import *
>>> disc = Discover()
>>> disc.scan(ip_range="192.168.1.0/24")
[{'mac': b'73:8b:10:0e:bd:23', 'ip': b'192.168.1.1'}, {'mac': b'f4:3c:4a:73:47:07', 'ip': b'192.168.1.2'}]
Notes
This tool needs to be run as root. It is necessary to be presented on the system the netdiscover tool. The library will look for the netdiscovery binary in the following paths:
netdiscover
/usr/bin/netdiscover
/usr/sbin/netdiscover
/usr/local/bin/netdiscover
/sw/bin/netdiscover
/opt/local/bin/netdiscover
If netdiscovery is not present in any of the paths above, you can specifie path with the argument netdiscover_path on Discover class.
disc = Discover(netdiscover_path="path_of_netdiscover")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file python-netdiscover-0.3.0.tar.gz
.
File metadata
- Download URL: python-netdiscover-0.3.0.tar.gz
- Upload date:
- Size: 23.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45619a81448752d295119ac8ef80b4768f9319aca2e50a41639d331d5a88edce |
|
MD5 | 894d1a80c4edf331b48c2bb2b2d336cd |
|
BLAKE2b-256 | cf6cc771e552855b7d05ce91856ab7f07f189aba0ad1abb837ce9cb9d19f293d |
File details
Details for the file python_netdiscover-0.3.0-py2.py3-none-any.whl
.
File metadata
- Download URL: python_netdiscover-0.3.0-py2.py3-none-any.whl
- Upload date:
- Size: 17.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47293c440a8693ca095a911020c8445de6463af8ff1adbf7e320d8bd2bd67137 |
|
MD5 | cc1f5b7b769802cc4117f52a58acaab2 |
|
BLAKE2b-256 | 48986a496111f03bb97a7767027c616ce5bab5af70acca1ee841f8757a2270a7 |