Security News
Introducing the Socket Python SDK
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
A tool that builds on both requests and Torrequests to include a VPN and randomized headers
A tool to combine TorRequest, an extension of Python Software Foundation's Requests, RandomHeaders, and ProtonVPN with some useful processes to hide traffic.
pip install hiddenrequest
Tor and ProtonVPN installed on your local machine.
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.
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
pytest --pyargs HiddenRequest
FAQs
A tool that builds on both requests and Torrequests to include a VPN and randomized headers
We found that HiddenRequest demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.
Security News
A new Rust RFC proposes "Trusted Publishing" for Crates.io, introducing short-lived access tokens via OIDC to improve security and reduce risks associated with long-lived API tokens.