Skip to main content

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


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.0.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

netvulnscan-0.1.0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file netvulnscan-0.1.0.tar.gz.

File metadata

  • Download URL: netvulnscan-0.1.0.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

Hashes for netvulnscan-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0d7d7906f33b767e4b0322375be39bf55c8f11d553746af631c2e2deb8d44029
MD5 62e6609caac6507cbbd66597076b5e6d
BLAKE2b-256 4b8852ac60b3da4b4dfb39049b540269331aa3b11db7260dbbb156cc6f7eea94

See more details on using hashes here.

File details

Details for the file netvulnscan-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: netvulnscan-0.1.0-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

Hashes for netvulnscan-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 242b854b69ce79a797d2c1920ef9dd809f49303062ff9344090eadf17b4bcb05
MD5 d50f640ccaa85d62e409572f196b84d9
BLAKE2b-256 3e7d2a2babf5c025a33be983b20a77cdb54c4d81cd9b74e397df9c916ba79810

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page