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.1.tar.gz (4.3 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.1-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: HiddenRequest-0.0.1.tar.gz
  • Upload date:
  • Size: 4.3 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.1.tar.gz
Algorithm Hash digest
SHA256 6f095b81bcb64dece7894d216a6d1d99e1d0a8f6b065d94e1be1ba54b464fce0
MD5 f7a2b7206a74eca0e6a01b76e21c4340
BLAKE2b-256 7f2f95f3fc3e9f298c8c71656def7f7499ba0d905a83fa20e865590edcb12b8c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: HiddenRequest-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.2 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b58817a3d3e890a196e17822a65004d9621dfc2caf9c7b7a0b2c1bf9fccc89ab
MD5 575f1c7b8e54ca07ca57493b59f0b2b2
BLAKE2b-256 052e99409c6fa905f2388a0e65d73dd42cb05d9309063df2c2fac022caca8faf

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