#tcp-connection #stdout #log #data #streamed #target #snooper

app tcp-snooper

Log to stdout all data streamed through TCP connections

2 releases

0.1.1 Jan 11, 2023
0.1.0 Jan 11, 2023

#52 in #tcp-connection

Download history 1/week @ 2024-02-14 9/week @ 2024-02-21 9/week @ 2024-02-28 10/week @ 2024-03-27 43/week @ 2024-04-03 5/week @ 2024-04-10

58 downloads per month

MIT license

12KB
139 lines

tcp-snooper

Log to stdout all data streamed through TCP connections

Install

Install and run with cargo

cargo install tcp-snooper
tcp-snooper --help

Pull and run with docker

docker run ghcr.io/dapplion/tcp-snooper --help

Usage

terminal 1: Target

python3 -m http.server 8000

terminal 2: TCP snooper pointing to target at 127.0.0.1:8000 and listening at port 5000

tcp-snooper 127.0.0.1:5000 127.0.0.1:8000

terminal 3: Consumer connects to snooper at 127.0.0.1:5000 instead of original target at 127.0.0.1:8000

curl 127.0.0.1:5000

Can print data as UTF8 by default or as a hex with --encoding hex

Dependencies

~11–25MB
~339K SLoC