Documentation ¶
Overview ¶
Scanme is a Go package for network scanning using the GoPacket library. It allows scanning a single IP address for open ports using SYN scans.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
The type scanner handles scanning a single IP address and is only shared with the packet injector iface is the interface to send packets on. destination, gateway (if applicable), and source IP addresses to use. opts and buf allow us to easily serialize packets in the send() method.
func NewScanner ¶
newScanner creates a new scanner for a given destination IP address, using router to determine how to route packets to that IP.
func (*Scanner) Synscan ¶
Synscan performs a SYN port scan on the specified destination IP address using the provided network interface. It sends SYN packets to ports [1, 65535] and records open ports in a map. The function employs ARP requests, ICMP Echo Requests, and packet capturing to identify open, closed, or filtered ports. The function returns a map of open ports along with their status or an error if any occurs during the scan.