Skip to content

Commit 4678b57

Browse files
committed
more docs
1 parent e60888a commit 4678b57

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scanme/scanner.go

+4
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,10 @@ func (s *Scanner) sendICMPEchoRequest() error {
183183
return nil
184184
}
185185

186+
// Synscan performs a SYN port scan on the specified destination IP address using the provided network interface.
187+
// It sends SYN packets to ports [1, 65535] and records open ports in a map. The function employs ARP requests,
188+
// ICMP Echo Requests, and packet capturing to identify open, closed, or filtered ports.
189+
// The function returns a map of open ports along with their status or an error if any occurs during the scan.
186190
func (s *Scanner) Synscan() (map[layers.TCPPort]string, error) {
187191
openPorts := make(map[layers.TCPPort]string)
188192

0 commit comments

Comments
 (0)