Skip to content

Latest commit

 

History

History
49 lines (34 loc) · 1.18 KB

README.md

File metadata and controls

49 lines (34 loc) · 1.18 KB

Python 3.10 MIT License

Asynchronous ping sweeper made using Python! 🚀

Installation

Windows:

git clone https://github.com/njordice/pingsweep.git
cd pingsweep
pip install -r requirements.txt

Linux:

git clone https://github.com/njordice/pingsweep.git
cd pingsweep
pip3 install -r requirements.txt

Usage

usage: pingsweep.py [-h] [-q] [-w sec] [-t num] [-o path] range

positional arguments:
  range                 network id and subnet bits, e.g. 192.168.1.0/24

options:
  -h, --help            show this help message and exit
  -q, --quiet           only print hosts to screen
  -w sec, --wait sec    timeout in seconds to wait for each reply (default: 1s)
  -t num, --tasks num   number of concurrent tasks (default: dynamic, cpu threads * 2.5)
  -o path, --output path
                        output to a file         

Examples

Simple 254 host sweep

pingsweep.py 192.168.1.0/24

Only print hosts and output to a file

pingsweep.py 192.168.1.0/24 -q -o output.log