Skip to content

Demonstrates how to use raw IP sockets in golang and do a simple TCP SYN port scan

Notifications You must be signed in to change notification settings

kdar/gorawtcpsyn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

gorawtcpsyn

Simple go program that will test if a port is open by sending a TCP SYN packet to it. Demonstrates how to use RAW IP sockets in Go 1.x .

Usage

gorawtcpsyn ip port

Example

gorawtcpsyn 192.168.0.2 5656

Note

Must run as root. This program is purposefully stupid/easy/dumb/simple.

Other examples of raw socket usage in Go

The authors of gopacket (which this example uses), also has a few other examples like an ARP scanner and a SYN scanner in his repository here.

About

Demonstrates how to use raw IP sockets in golang and do a simple TCP SYN port scan

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages