A package to discover network devices, scan ports and services, and find vulnerabilities.
Project description
NetVulnScan
NetVulnScan is a Python package designed to discover network devices, scan their ports and services, and identify vulnerabilities.
Features
- Network Discovery: Identify devices on your network using ARP requests.
- Port Scanning: Scan a range of ports on discovered devices.
- Service Detection: Detect services running on the scanned ports.
- Vulnerability Scanning: Check for known vulnerabilities in the detected services.
Installation
To install the package, use pip:
pip install netvulnscan
## Usage
Use the netdev_discovery function to find devices on network.
from netvulnscan import netdev_discovery # Import the network discovery function from the netvulnscan package
network = '192.168.1.0/24' # Replace with your network # Specify the network to scan (e.g., the 192.168.1.0/24 network)
devices = discover_devices(network) # Discover devices on the specified network
for device in devices: # Loop through the discovered devices and print their IP and MAC addresses
print(f"IP: {device['ip']}, MAC: {device['mac']}")
Use the netdev_scan funtion to scan ports on discovered devices.
from netvulnscan import netdev_scan # Import the port scanning function from the netvulnscan package
# Specify the target IP address to scan for open ports
ip = '192.168.1.1' # Replace with the target IP
ports = scan_ports(ip) # Scan the ports on the specified IP address
for port in ports: # Loop through the scanned ports and print their port number and state (open/closed)
print(f"Port: {port['port']}, State: {port['state']}")
from netvulnscan import netdev_detect_services # Import the service detection function from the netvulnscan package
services = detect_services(ip) # Detect services running on the specified IP address
for service in services: # Loop through the detected services and print their port number, name, and version
print(f"Port: {service['port']}, Service: {service['name']}, Version: {service['version']}")
from netvulnscan import netdev_vuln # Import the vulnerability scanning function from the netvulnscan package
vulnerabilities = scan_vulnerabilities(ip) # Scan the specified IP address for known vulnerabilities
for port, vulns in vulnerabilities.items(): # Loop through the scanned vulnerabilities and print their port number and associated vulnerabilities
print(f"Port: {port}, Vulnerabilities: {vulns}")
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
netvulnscan-0.1.1.tar.gz
(4.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file netvulnscan-0.1.1.tar.gz.
File metadata
- Download URL: netvulnscan-0.1.1.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
efba6f819f0f565202505a61f98368c9a4de0b6f98bee8ca4778ca0d7f9f9c83
|
|
| MD5 |
21fc4676be1e72b7cac52f13d9a0fc62
|
|
| BLAKE2b-256 |
b561462d30f8cad75f6b1014d08b58acaf12a3cf16e5a50a4dd277d1b39a6c4b
|
File details
Details for the file netvulnscan-0.1.1-py3-none-any.whl.
File metadata
- Download URL: netvulnscan-0.1.1-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e796d5b1ab6ff0cbd27f5d021c20f64eb1a8da7db456070bae8d262474ca2eb1
|
|
| MD5 |
0aceba544a1220e7fb3ad739c28aca0b
|
|
| BLAKE2b-256 |
563cbd4c92fae525ff8a44cba9fc63811744bb19e7c9a9df8e41b5fbac6418fd
|