RServer
A asynchronous library/app for intercepting/sniffing TCP requests, modifying headers and responses.
Install
To Install RServer, Please use the following command :
cargo install rserver
Example
How to use the RServer to intercept/sniff TCP requests. RServer currently runs on 8080 port by default.
To run RServer, use the folowing command :
rserver
Please set the browser/system proxy as host 127.0.0.1 and port 8080 (default port of RServer) to use Rserver for intercepting all requests.
If you directly want to test RServer installation without doing the above step, please run the below command :
https_proxy=127.0.0.1:8080 curl https://www.google.com
Usage
rserver [OPTIONS]
FLAGS:
--help Prints help information
-V, --version Prints version information
OPTIONS:
--enable-proxy <enable-proxy> Enable proxy flag [default: false]
-h, --host <host> Server host [default: 127.0.0.1]
-p, --port <port> Server port [default: 8080]
--proxy-host <proxy-host> Proxy host
--proxy-port <proxy-port> Proxy port
To use rsever Rust library , please see the below example :
use Config;
use Server;
async
Changelog
- Asynchronous server.
- Add HTTPS / CONNECT method support.
- Minor bug fixes & other improvements.
- Modular code
Internal API
How to read the stream data and return stream data & its length.
/// Read the stream data and return stream data & its length
To-Do
- Modifying/replacing Request Headers
- Modifying/replacing Reponse Headers