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.

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Scanner Class Reference

Scanner Class Reference

Demo - TCP Port Scanner. More...

#include <scanner.h>

Public Member Functions

 Scanner (Sniffer *_sniffer)
 Constructor.
void handle_tcp (TCP_SegmentHeader *packet, u32 data_bytes)
 Handle incoming TCP packets.
void finish ()
 Handle the conclusion of the port scan (should not be called externally)
void start (Ethernet_MAC src, Ethernet_MAC dst, IP_Address srcip, IP_Address dstip)
 Start a TCP port scan.
void scan ()
 Incremental scan updates (should not be called externally)

Detailed Description

Demo - TCP Port Scanner.

Definition at line 25 of file scanner.h.


Constructor & Destructor Documentation

Scanner ( Sniffer _sniffer )

Constructor.

Definition at line 44 of file scanner.h.


Member Function Documentation

void finish (  )

Handle the conclusion of the port scan (should not be called externally)

Definition at line 60 of file scanner.h.

void handle_tcp ( TCP_SegmentHeader packet,
u32  data_bytes 
)

Handle incoming TCP packets.

Definition at line 51 of file scanner.h.

void scan (  )

Incremental scan updates (should not be called externally)

Definition at line 124 of file scanner.h.

void start ( Ethernet_MAC  src,
Ethernet_MAC  dst,
IP_Address  srcip,
IP_Address  dstip 
)

Start a TCP port scan.

Definition at line 79 of file scanner.h.