Giter Club home page Giter Club logo

go-netcat's Introduction

go-netcat

The Go-netcat is simple implementation of the netcat utility in go that allows to listen and send data over TCP and UDP protocols.

This utility was created for Golang learning purposes and was inspired by https://github.com/dddpaul/go-netcat

Usage:

go-nc [-lu] [-p source port ] [-s source ip address ] [hostname ] [port[s]]

Description:

The utility allows to listen UDP\TCP ports and send data to remote ports over TCP\UDP. Main usage scenario is testing network protocols and accessibility of the open ports.

The options are as follows:

-l Used to specify that go-nc should listen for an incoming connection rather than initiate a connection to a remote host.

-p port Specifies the source port netcat should use, subject to privilege restrictions and availability.

-u Use UDP instead of the default option of TCP.

Examples:

$ go-netcat hostname 42

Open a TCP connection to port 42 of hostname.

$ go-netcat -u hostname 53

Open a UDP connection to port 53 of hostname.

$ go-netcat -l 3000

Listen on TCP port 3000, and once there is a connection, send stdin to the remote host, and send data from the remote host to stdout.

$ go-netcat -u -l 3000

Listen on UDP port 3000, and once there is a connection, send stdin to the remote host, and send data from the remote host to stdout.

go-netcat's People

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.