Categorygithub.com/WhatTheSlime/NetGo
repositorypackage
0.0.0-20231202135858-565d6809d8b8
Repository: https://github.com/whattheslime/netgo.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

NetGo

NetGo is a basic implementation of netcat in golang.

                 ___       ___       ___       ___       ___   
                /\__\     /\  \     /\  \     /\  \     /\  \  
               /:| _|_   /::\  \    \:\  \   /::\  \   /::\  \ 
              /::|/\__\ /::\:\__\   /::\__\ /:/\:\__\ /:/\:\__\
              \/|::/  / \:\:\/__/  /:/\/__/ \:\:\/__/ \:\/:/  /
                |:/  /   \:\/__/   \/__/     \::/  /   \::/  / 
                \/__/     \/__/               \/__/     \/__/  

Install

1. Get the project

git clone [email protected]:WhatTheSlime/NetGo.git
cd NetGo

2. Compile the project

For Linux and Windows

make

For Linux

make linux

For windows

make windows

For mac

make darwin

3. Use it

cd build
./netgo -h

2. (Optional) Generate TLS certificates

make certifs

Features

ImplementedFlagsDescription
No-d, --delay Wait between read/writes
Yes-e, --exec Executes the given command
Yes-h, --helpDisplay help screen
Yes-k, --keep-openAccept multiple connections in listen mode
Yes-l, --listenBind and listen for incoming connections
Yes-m, --max-conns Maximum simultaneous connections (default: 50)
No-n, --nodnsDo not resolve hostnames via DNS
No-u, --udpUse UDP instead of default TCP
No-v, --verboseSet verbosity level
No-w, --wait Connect timeout
No-b, --brokerEnable connection brokering mode
http-x, --proxy Specify address of host to proxy through (<http
Yes--sendOnly send data, ignoring received; quit on EOF (print md5)
Yes--recvOnly receive data, never send anything (print md5)
Yes--tlsConnect or listen with TLS
Yes--tls-certSpecify TLS certificate file (PEM) for listening
Yes--tls-keySpecify TLS private key (PEM) for listening
Yes--versionDisplay version information and exit

References