Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/opencoff/go-nc
Netcat in golang
https://github.com/opencoff/go-nc
golang nc netcat
Last synced: 28 days ago
JSON representation
Netcat in golang
- Host: GitHub
- URL: https://github.com/opencoff/go-nc
- Owner: opencoff
- License: gpl-2.0
- Created: 2018-11-28T23:47:28.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-06-16T15:14:48.000Z (over 5 years ago)
- Last Synced: 2024-06-20T12:42:27.943Z (6 months ago)
- Topics: golang, nc, netcat
- Language: Go
- Size: 12.7 KB
- Stars: 26
- Watchers: 3
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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.