https://github.com/kmcsr/go-netcat
A netcat cli tool written in golang
https://github.com/kmcsr/go-netcat
cli debugging golang-application netcat network-debug
Last synced: 10 months ago
JSON representation
A netcat cli tool written in golang
- Host: GitHub
- URL: https://github.com/kmcsr/go-netcat
- Owner: kmcsr
- License: gpl-3.0
- Created: 2023-09-18T18:52:51.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-19T15:40:57.000Z (almost 2 years ago)
- Last Synced: 2025-04-10T01:13:27.991Z (10 months ago)
- Topics: cli, debugging, golang-application, netcat, network-debug
- Language: Go
- Homepage:
- Size: 28.3 KB
- Stars: 6
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
- License: LICENSE
Awesome Lists containing this project
README
# go netcat
A network debug tool written in golang
### Install
```sh
go install github.com/kmcsr/go-netcat@latest
```
### Text Mode vs. Binary Mode
- Text mode will process data by lines, and it won't escape/unescape chars
- If you want to specific the linebreak to be send, use flag `-linebreak`, avaliable values are:
`cr`: use `\r`
`lf`: use `\n` (default as well as fallback)
`crlf`: use `\r\n`
- Binary mode will process input data by lines with space splited numbers as bytes, and output data by per buffer.
- The length of the buffer can be set use flag `-buffer` / `-B`
- If the data cannot fill over the buffer, it will be print anyway
- The base prefix is allowed, and the default base is 16 (`0b`: 2, `0o`: 8, `0x`: 16)
- If you want to send literary text under the binray mode, just add prefix char `!` in front of the line