Giter VIP home page Giter VIP logo

gorawtcpsyn's Introduction

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.

gorawtcpsyn's People

Contributors

dmitris avatar gconnell avatar kdar avatar rolinh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

gorawtcpsyn's Issues

ReadFrom time out

I use your script, but why does ReadFrom time out? I'm sure that the packet has been sent successfully and can be seen with tcpdump
The system of I use is MacOS

error reading packet:  read ip4 *.*.*.*: i/o timeout

not arp reply

我在windows下跑. 那个可以发送arp请求. 但是没有arp响应. 所以程序出错会导致死锁.
发送arp的代码.要写到协程上面. 然后只能在局域网内.有效. (访问远程主机还是不行)[好吧.我的锅. 我查了查.才知道.arp只适用于内网. 访问公网不需要]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.