OTS not TORified thanks to proxychains-ng, better TORification

This commit is contained in:
kexkey
2019-11-12 16:46:43 -05:00
committed by kexkey
parent b640650f30
commit e98362b16b
6 changed files with 52 additions and 26 deletions

View File

@@ -56,11 +56,11 @@ curl_it() {
local response
local rnd=$(dd if=/dev/urandom bs=5 count=1 | xxd -pc 5)
if [ "${torbypass}" = "true" ] || [ ! -f "curlcfg" ]; then
if [ "${torbypass}" = "true" ] || [ -z "${TOR_HOST}" ]; then
# If we want to bypass tor or the config file doesn't exist
torbypass=""
else
torbypass="-K curlcfg"
torbypass="--socks5-hostname ${TOR_HOST}:${TOR_PORT}"
fi
if [ -n "${data}" ]; then