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

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

HiddenRequest-0.0.3.tar.gz (5.5 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.3-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: HiddenRequest-0.0.3.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

Hashes for HiddenRequest-0.0.3.tar.gz
Algorithm Hash digest
SHA256 348b944bb00b4bd4595294460ea17aef9aa151bd28241c296cecb044cbb87b63
MD5 39b923dd893ee8d781795e773c817a34
BLAKE2b-256 980360c29bd0057a84966bebcf0fe95f89bd582f33569f9ca9c02bc863ddbd3b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: HiddenRequest-0.0.3-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

Hashes for HiddenRequest-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 95014302f75f723006e3f9fe03a34d8fe929403318954dbf64f7808927b2644e
MD5 675d1eb59591758b5fd5bb36a638e5da
BLAKE2b-256 0784a144cd48ccfff2ad2423da3c6002760fa740b0bf5ce9c256bcbc36a3558a

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