A simple IP scanner, which is the program assignment of the Internet Security in NUAA, 2017. It can do such kinds of IP scanning:
- Connect
- SYN
- FIN
- ACK(TODO)
- UDP(TODO)
With
libnet
andlibpcap
, building packets and handling packets is quiet easy. Also, the use of multi-thread makes it faster.
sudo ./ipscan -s [Connect|SYN|FIN|ACK|UDP] -i [interface_name] -p [ports] -t [interval_time] -T [timeout_time] ip_address
Note:
ports
can be22,80,125
,1-100
, or1-100,135
, but spaces cannot be existed.ip_address
can be the simple one192.168.1.1
, or a CIDR address192.168.1.0/24
- Finish other kinds of scanning.