This is a low-level network debugging utility that utilizes raw packet i/o to construct and deconstruct tcp, udp, ipv4, arp, and icmp packets over ethernet.
Diff: scanner.h
- Revision:
- 6:66c4cd9073aa
- Parent:
- 5:c56386b9fc33
diff -r c56386b9fc33 -r 66c4cd9073aa scanner.h --- a/scanner.h Tue Oct 12 06:37:21 2010 +0000 +++ b/scanner.h Tue Oct 12 06:46:22 2010 +0000 @@ -9,6 +9,15 @@ #include <cstring> #include <set> +/** + \file scanner.h + \brief Basic TCP Port Scanner + + The class in this file facilitates a very fast (3 second scan, 7 second wait) TCP port scan + of all ports from 1-65535, keeping and printing a list of all ports on which a TCP SYN/ACK + is received (which should indicate that the port is open and waiting for connections). +*/ + #define SCANNER_PADSIZE 0 #define SCANNER_FRAMESIZE (sizeof(Ethernet_FrameHeader) + sizeof(IP_PacketHeader) + sizeof(TCP_SegmentHeader) + SCANNER_PADSIZE)