| Crates.io | tcp-snooper |
| lib.rs | tcp-snooper |
| version | 0.1.1 |
| created_at | 2023-01-11 04:33:35.664937+00 |
| updated_at | 2023-01-11 11:13:22.055607+00 |
| description | Log to stdout all data streamed through TCP connections |
| homepage | |
| repository | https://github.com/dapplion/tcp-snooper |
| max_upload_size | |
| id | 756090 |
| size | 36,936 |
Log to stdout all data streamed through TCP connections
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
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