Skip to content

Ping sweep a list of subnets then save a random % sample of the hosts that are up

Notifications You must be signed in to change notification settings

Coalfire-Research/IP-sampler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

IP-sampler

Give the script a newline separated list of subnets and it will scan each subnet for live hosts then write a certain percentage (5% by default) of random live IPs from each subnet to a SampleIPs.txt.

Requirements

Just needs python-libnmap

sudo pip install -r requirements.txt

Usage

Run an ICMP ping sweep against all subnets in hostlist.txt, then take a 5% sample from of all the hosts that are up within each subnet and write them to SampleIPs.txt

./ip-sampler.py -l hostlist.txt

Run an ARP ping sweep against all subnets in hostlist.txt

./ip-sampler.py -l hostlist.txt --arpscan

Run a top 5 port scan against all subnets in hostlist.txt and collect a 5% sample of all hosts that respond with at least one port open

./ip-sampler.py -l hostlist.txt --portscan

Create pool of 5 workers instead of the default 10

./ip-sampler.py -l hostlist.txt -w 5

Take a 10% sample instead of the default 5% sample of hosts that are up across all subnets

./ip-sampler.py -l hostlist.txt -p 10

About

Ping sweep a list of subnets then save a random % sample of the hosts that are up

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages