Giter VIP home page Giter VIP logo

go-nc's Introduction

README for go-nc

What is this?

This is a simple clone of netcat in golang. I wrote it many moons ago as my first go program. It is slightly different from the traditional netcat in the following ways:

  • adds sha256 checksum on network I/O
  • traffic stats (number of bytes sent/received)
  • hexdump of the traffic
  • Bi directional I/O is optional; server always writes to stdout and client always reads from stdin. This makes it easy to remember.

How do I build it?

You will need Go 1.5 or later:

git clone https://github.com/opencoff/go-nc
cd go-nc
make

How do I run it?

gonc comes with helpful commandline options. Try:

./bin/gonc -h

Or the long-form:

./bin/gonc --help

Simple Example

Lets say that we wish to send a directory's contents to a server whose IP address is a.b.c.d. On that server create a listening instance of 'gonc':

./bin/gonc -c -l :9090 > foo.tar.gz

And on a client try:

tar cf - . | gzip -9 | ./bin/gonc -c -v a.b.c.d:9090

In the example above, all I/O is checksummed on both sides.

go-nc's People

Contributors

opencoff avatar

Watchers

James Cloos avatar

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.