News - Main Page
Whitepapers
Tools and Download
Presentations
Related
:onesixtyone

Examples

Scan a List of Hosts for a Single Community String

$ onesixtyone -i ips.txt public
10.0.0.1 [public] Host responded with error NO SUCH NAME
10.0.0.2 [public] Hardware: x86 Family 6 Model 15 Stepping 8 AT/AT COMPATIBLE - Software: Windows 2000 Version 5.0 (Build 2195 Uniprocessor Free)

The ips.txt file should contain one IP address per line.

NB: The first host is a Solaris box which we sent the wrong community string to. At least we know it's running an SNMP daemon now.

Scan a Single Host for a List of Community Strings

$ onesixtyone -c snmp-communities.txt 10.0.0.1
Scanning 1 hosts, 60 communities
Cant open hosts file, scanning single host: 10.0.0.1
10.0.0.1 [public] Hardware: x86 Family 6 Model 15 Stepping 8 AT/AT COMPATIBLE - Software: Windows 2000 Version 5.0 (Build 2195 Uniprocessor Free)

The dictionary file should contain one SNMP community string per line.

Scan a List of Hosts for Multiple Community Strings

$ onesixtyone -c snmp-communities.txt -i ips.txt
Scanning 512 hosts, 60 communities
Error in sendto while sending to 10.0.0.0: Permission denied
10.0.0.1 [public] Hardware: x86 Family 6 Model 15 Stepping 8 AT/AT COMPATIBLE - Software: Windows 2000 Version 5.0 (Build 2195 Uniprocessor Free)
...

NB: The "Permission Denied" message is because we tried to send to the network address and we're not running as root. It's normally find to ignore this.

Changing Scan Speed

The -w option can be used to set the delay between each packet (in milliseconds). The default is a 10ms delay resulting in a scan speed of 100 packets per second. You can set this whatever you like, but bear in mind that if you set it to 0 it is possible to max-out your 100Mbps Ethernet connection. It is possible to inadvertently cause a Denial of Service with this tool.

$ onesixtyone -w 1 -c snmp-communities.txt -i ips.txt
Scanning 512 hosts, 60 communities
Error in sendto while sending to 10.0.0.0: Permission denied
10.0.0.1 [public] Hardware: x86 Family 6 Model 15 Stepping 8 AT/AT COMPATIBLE - Software: Windows 2000 Version 5.0 (Build 2195 Uniprocessor Free)
...

 

Last Updated : 31/03/2008 11:59:25