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.2.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.2.tar.gz.
File metadata
- Download URL: netvulnscan-0.1.2.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 |
a195c7fc432d61efc39b23bee4fb7be6b6e2b7ddd763f91a82d5f2a3d3e6d0a4
|
|
| MD5 |
0b5b18af376135156013a2ebda21c242
|
|
| BLAKE2b-256 |
c5524da5fcbdffd7cbff7bcda247a8fce18327406186f90afa54ae941f5cfc82
|
File details
Details for the file netvulnscan-0.1.2-py3-none-any.whl.
File metadata
- Download URL: netvulnscan-0.1.2-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 |
f8a543cd917e898c389d019cee1101193efb1ed25bc29585f03a56bd9452c1b3
|
|
| MD5 |
eb210d7c6801e27d13cdbcc13c96e1ff
|
|
| BLAKE2b-256 |
7a30095bc65312afd1d18c4d9ddb3e5a94d5eee4dc77a358f200f089371c0b01
|