Skip to main content

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

from HiddenRequest import tests

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

HiddenRequest-0.0.2.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

HiddenRequest-0.0.2-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file HiddenRequest-0.0.2.tar.gz.

File metadata

  • Download URL: HiddenRequest-0.0.2.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for HiddenRequest-0.0.2.tar.gz
Algorithm Hash digest
SHA256 7cfdbaf00b058fcbfb7201cfe6802165fac2d3e9f98f95cc9ab256d9af1802ba
MD5 40f0d2ab790878ae4fdcc020383f71f6
BLAKE2b-256 4d7c3afe972759742ce490db2f4b3441f6cf79185fe6c11ee5a30d73f4d78aba

See more details on using hashes here.

File details

Details for the file HiddenRequest-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: HiddenRequest-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for HiddenRequest-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 981bb889a18547d32dc10a7cdbe1e49c67deb474b633291a4288449ecc7a96d4
MD5 46205fc828f90c614a54627eaa93691b
BLAKE2b-256 e544c32358eb48b73c501add277e23925391f83e05cd200cfc5ee9e416703fa4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page