Skip to content

Instantly share code, notes, and snippets.

@michelep
Last active October 10, 2022 07:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michelep/a1f1bd9c7c5dd21f7d5646130bb87ca1 to your computer and use it in GitHub Desktop.
Save michelep/a1f1bd9c7c5dd21f7d5646130bb87ca1 to your computer and use it in GitHub Desktop.
Utility
CHECK TOR CONNECTION
===
curl --socks5 localhost:9050 --socks5-hostname localhost:9050 -s https://check.torproject.org/ | cat | grep -m 1 Congratulations | xargs
INSTALL PYTHON requirements.txt dependencies
===
pip3 install -r requirements.txt
DETECT PUBLIC IP
===
curl ipinfo.io/ip
wget -qO- ipinfo.io/ip
lynx -source ipinfo.io/ip
GENERATE CSR WITH OPENSSL - RSA
===
openssl req -nodes -newkey rsa:2048 -keyout PRIVATEKEY.key -out MYCSR.csr
GENERATE CRS WITH OPENSSL - EC
===
openssl genpkey -genparam -algorithm ec -pkeyopt ec_paramgen_curve:P-256 -out ECPARAM.pem
openssl req -nodes -newkey ec:ECPARAM.pem -keyout PRIVATEKEY.key -out MYCSR.csr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment