Skip to main content
Help us improve Python packaging – donate today!

Scan networks for alive hosts

Project Description

Scan networks for alive hosts, uses CIDR notation.

Install

Install using pip:

pip install nwscan

Usage

Usage: nwscan network [options]

scan network for alive hosts, uses CIDR notation

Options:
--version       show program's version number and exit
-h, --help      show this help message and exit
-r, --reverse   print not responding hosts rather than alive
-w WORKERS      number of workers threads to use (default: 8)
-t TIMEOUT      timeout of each ping request in seconds (default: 1)
-n COUNT        number of ping requests to send (default: 1)
-i INPUT_FILE   scan networks from input file (one network per line)
-o OUTPUT_FILE  save sorted ips output to file

Examples

Scan all 254 usable IPs of network ‘192.168.0.*’:

$ nwscan 192.168.0.0/24

Scan networks from ‘networks.txt’ file using 16 workers:

$ nwscan -i networks.txt -w 16

Scan not responding hosts and save ips to file ‘ips.txt’:

$ nwscan 192.168.0.0/24 -r -o ips.txt

Notes

  • Works on Python 2
  • Tested on Linux and Windows (Cygwin)

Release history Release notifications

This version
History Node

0.2

History Node

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
nwscan-0.2.tar.gz (3.6 kB) Copy SHA256 hash SHA256 Source None Oct 28, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page