proxyfor
A simple and portable proxy for capturing HTTP and HTTPS traffic.
Installation
With cargo
cargo install proxyfor
Binaries on macOS, Linux, Windows
Download from Github Releases, unzip and add proxyfor to your $PATH.
Usage
Proxy Mode
The client sets the proxy to http://localhost:8080
for proxyfor to capture the http(s) traffic.
Forward Mode
This mode is suitable for scenarios where a proxy cannot be set.
The client directly requests http://localhost:8080
, and proxyfor forwards the request to https://httpbin.org
.
CLI
Usage: proxyfor [OPTIONS] [URL]
Arguments:
[URL] Forward url
Options:
-l, --listen <ADDR> Listening ip and port address [default: 0.0.0.0:8080]
-f, --filters <REGEX> Only inspect http(s) traffic whose `{method} {uri}` matches the regex
-m, --mime-filters <VALUE> Only inspect http(s) traffic whose content-type matches the value
-h, --help Print help
-V, --version Print version
Change the ip and port.
Use -f/--filters
to filter traffic by title ({method} {uri}
).
Use -m/--mime-filters
to filter traffic by content-type.
Pipe it to a markdown file, then analyze the captured traffic using your favorite editor/IDE with folding, navigation, search capabilities.
Certificates
proxyfor can decrypt encrypted traffic on the fly, as long as the client trusts proxyfor’s built-in certificate authority. Usually this means that the proxyfor CA certificate has to be installed on the client device.
By far the easiest way to install the proxyfor CA certificate is to use the built-in certificate installation app. To do this, start proxyfor and configure your target device with the correct proxy settings. Now start a browser on the device, and visit the magic domain proxyfor.local.
License
Copyright (c) 2024-∞ proxyfor-developers.
proxyfor is made available under the terms of either the MIT License or the Apache License 2.0, at your option.
See the LICENSE-APACHE and LICENSE-MIT files for license details.