Mitm proxy that defends against TLS and JS worker fingerprinting.
Project description
Python Usage
Usage
Hazetunnel is designed to run globally:
import hazetunnel
hazetunnel.launch()
...
requests.get(
url='https://tls.peet.ws/api/clean',
headers={
**HeaderGenerator().generate(browser='chrome'),
'x-mitm-payload': 'alert("hi");'
},
proxies={'https': hazetunnel.url()},
verify=hazetunnel.cert()
)
...
hazetunnel.kill()
Although, Hazetunnel may also run in a context manager:
from hazetunnel import HazeTunnel
...
with HazeTunnel as proxy:
requests.get(
url='https://tls.peet.ws/api/clean',
headers={
**HeaderGenerator().generate(browser='chrome'),
'x-mitm-payload': 'alert("hi");'
},
proxies={'https': proxy.url},
verify=proxy.cert
)
...
CLI
Download the latest version of the API:
python -m hazetunnel fetch
Remove all files before uninstalling
python -m hazetunnel remove
Run the MITM proxy:
python -m hazetunnel run -p 8080 --verbose
All commands
Usage: python -m hazetunnel [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
Commands:
fetch Fetch the latest version of hazetunnel-api
remove Remove all library files
run Run the MITM proxy
version Display the current version
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
hazetunnel-1.1.0.tar.gz
(6.7 kB
view hashes)
Built Distribution
Close
Hashes for hazetunnel-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 161ee11aef376d5758d5b5684431b40e09d31c400d506d50b0d4fa3e913dea46 |
|
MD5 | 884e326b29b04592636234535a14ae95 |
|
BLAKE2b-256 | 97f4d3561d05d08a0c2e807b9f04190abfeec3640a3ba39ae379a63c85e3c9f5 |