Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dapplion/tcp-snooper
Log to stdout all data streamed through TCP connections
https://github.com/dapplion/tcp-snooper
Last synced: about 20 hours ago
JSON representation
Log to stdout all data streamed through TCP connections
- Host: GitHub
- URL: https://github.com/dapplion/tcp-snooper
- Owner: dapplion
- Created: 2023-01-11T04:07:17.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-01-12T01:10:29.000Z (almost 2 years ago)
- Last Synced: 2024-12-28T06:47:39.820Z (10 days ago)
- Language: Rust
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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`