go-netdog

command module
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2023 License: MIT Imports: 16 Imported by: 0

README

netdog

an immitation of netcat for fun and practice

usage

go get -u github.com/JackKCWong/go-netdog
go-netdog --help

# examples
# send raw tcp payload to target
printf "GET /get HTTP/1.0\r\n\r\n" | go-netdog httpbin.org:80
printf "GET /get HTTP/1.0\r\n\r\n" | go-netdog --tls httpbin.org:443

# send raw websocket frames
go-netdog --tls ws.postman-echo.com:443 ws.http hello.bin close.bin

# test tcp / tls connection to target
go-netdog dial httpbin.org:80
go-netdog dial --tls httpbin.org:443
printf "httpbin.org:80\nhttpbin.org:443" | go-netdog dial # this only test for tcp connection, not tls

# lookup DNS and time the responses
go-netdog lookup httpbin.org
go-netdog lookup --name httpbin.org
printf "httpbin.org\nbaidu.com" | go-netdog lookup 

TODOs

[x] support unix socket

[x] host:port scanning

[x] DNS lookup

notes

  • turning a hex string into binary: xxd -r -p hex.txt out.bin

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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