https://github.com/silversquirl/nettools
A simple network tools in Go
https://github.com/silversquirl/nettools
golang netcat network
Last synced: 8 months ago
JSON representation
A simple network tools in Go
- Host: GitHub
- URL: https://github.com/silversquirl/nettools
- Owner: silversquirl
- Created: 2018-09-24T00:24:40.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-09-24T15:57:58.000Z (over 7 years ago)
- Last Synced: 2025-03-18T02:58:26.729Z (about 1 year ago)
- Topics: golang, netcat, network
- Language: Go
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nettools
This is a collection of network-related tools written in Go. It currently includes a version of `netcat`, for linking a TCP socket to stdio and a tool called `netcoupler`, for linking two sockets to each other.
## Usage
```bash
netcat [OPTIONS] addr
netcoupler [OPTIONS] addr1 addr2
```
Both tools have the same options.
- `-l` Listen on the provided address(es) instead of connecting
- `-k` With `-l`, keep the socket(s) open after the remote disconnects
Addresses are in the form `[host]:port`, where `host` can be an IP address or hostname and `port` is the TCP port to listen on or connect to. `host` is only optional in listen mode.