go-netcat

command module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

README

go netcat

A network debug tool written in golang

Install
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

Documentation

Overview

Copyright (C) 2023 Kevin Z <zyxkad@gmail.com>

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL