A tool that builds on both requests and Torrequests to include a VPN and randomized headers
Project description
HiddenRequest
A tool to combine TorRequest, an extension of Python Software Foundation's Requests, RandomHeaders, and ProtonVPN with some useful processes to hide traffic.
Install
pip install hiddenrequest
Dependencies
Tor and ProtonVPN installed on your local machine.
Setup
Tor via homebrew:
brew install tor
For linux use the debian repo Tor. Once installed, edit /etc/tor/torrc and uncomment the line ControlPort 9051 to allow your application to control tor.
ProtonVPN CLI via directions here: ProtonVPNOnce installed, follow the setup steps for protonvpn init.
Next, open your sudo file to allow you to run ProtonVPN passwordless:
sudo visudo
Below %sudo ALL=(ALL:ALL) ALL add "username ALL=(ALL) NOPASSWD:/usr/local/bin/protonvpn", replacing username with your own username.
Usage
import HiddenRequest
with HiddenRequest() as hr:
r = hr.get('https://www.google.com')
Hidden Request automatically configures your VPN and will verify that your traffic is hidden. You can verify no IP or DNS leakage yourself using:
bool = HiddenRequest().verify_hidden()
Includes randomized headers using RandomHeaders.
with HiddenRequest() as hr:
my_header_data = {"Content-Type":"image.jpeg"}
my_header_data.append(hr.random_header)
r = hr.get('https://www.google.com', headers = my_header_data)
HiddenRequest also inherits TorRequest methods like reset_identity.
with HiddenRequest() as hr:
# Your own machines IP that you want to hide
original_data = hr.original_ip_data
# Your new IP from a Tor relay
first_data = hr.public_ip_data
hr.reset_identity()
# Another Tor relay IP
new_data = hr.public_ip_data
Testing
pytest --pyargs HiddenRequest
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file HiddenRequest-0.0.4.tar.gz.
File metadata
- Download URL: HiddenRequest-0.0.4.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d197cf0643059761b598b4df6d4cd0d003679653c4a822ffffe7ed9144cb7133
|
|
| MD5 |
993c276e3b9b2fce22e74e239ef57d3f
|
|
| BLAKE2b-256 |
46751eab63f17f42d8d91b1594b3ed2357e61e929476e5a5021b1a6e5a16ed5c
|
File details
Details for the file HiddenRequest-0.0.4-py3-none-any.whl.
File metadata
- Download URL: HiddenRequest-0.0.4-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eac15a005ff11ecabab23f45a639f09da1133aa73fed7dcb14ed856dc8a51ad9
|
|
| MD5 |
2b72e992950d07194a96048aad39cc1a
|
|
| BLAKE2b-256 |
5d7d485995d71dada338c0b19273aedfdacc83f2e1ddb275d726e6a586779f48
|