initial push
This commit is contained in:
@@ -0,0 +1 @@
|
|||||||
|
*.tmp
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
SLRP=$PWD/.slrp
|
||||||
|
BIN=$SLRP/bin
|
||||||
|
while true
|
||||||
|
do
|
||||||
|
$BIN/mubeng -f "$SLRP/proxies.txt" --output "$SLRP/live.txt" --check 2>/dev/null;
|
||||||
|
done
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
SLRP=$PWD/.slrp
|
||||||
|
killall screen
|
||||||
|
rm -f $SLRP/proxies.txt
|
||||||
|
rm -f $SLRP/proxies.tmp
|
||||||
|
rm -f $SLRP/live.txt
|
||||||
|
rm -rf $SLRP/data
|
||||||
Binary file not shown.
@@ -0,0 +1,15 @@
|
|||||||
|
SLRP=$PWD/.slrp
|
||||||
|
PROXY_FILE=$SLRP/proxies.txt;
|
||||||
|
TEMP=$SLRP/proxies.tmp;
|
||||||
|
while true;
|
||||||
|
do
|
||||||
|
curl -s http://localhost:8089/api/pool | jq '.Records[] | .Proxy' | sed s/\"//g > $TEMP;
|
||||||
|
if [ ! -s $TEMP ]
|
||||||
|
then
|
||||||
|
echo "Nothing at the moment"; sleep 2;
|
||||||
|
else
|
||||||
|
cat $TEMP > $PROXY_FILE;
|
||||||
|
echo "updated- sleeping 2 seconds..."; sleep 2;
|
||||||
|
cat $PROXY_FILE;
|
||||||
|
fi
|
||||||
|
done;
|
||||||
Binary file not shown.
@@ -0,0 +1,14 @@
|
|||||||
|
app:
|
||||||
|
state: $HOME/.slrp/data
|
||||||
|
sync: 1m
|
||||||
|
log:
|
||||||
|
level: info
|
||||||
|
format: pretty
|
||||||
|
server:
|
||||||
|
addr: "127.0.0.1:8089"
|
||||||
|
read_timeout: 15s
|
||||||
|
mitm:
|
||||||
|
addr: "127.0.0.1:8090"
|
||||||
|
read_timeout: 15s
|
||||||
|
idle_timeout: 15s
|
||||||
|
write_timeout: 15s
|
||||||
@@ -0,0 +1,45 @@
|
|||||||
|
# CRACKHEAD PROXY
|
||||||
|
This is a hacked crackheaded bullshit amalgamation of a per-request proxy finder and rotator.
|
||||||
|
|
||||||
|
Scrapes the proxy lists included with [slrp](https://github.com/nfx/slrp) and multiplexes them through a local HTTP proxy with [mubeng](https://github.com/kitabisa/mubeng) because slrp alone was not working.
|
||||||
|
|
||||||
|
This was shitcoded while mentally impared. Expect issues.
|
||||||
|
|
||||||
|
## WARNINGS
|
||||||
|
* About half or so of proxies used will fail, use retries.
|
||||||
|
* Dont expect privacy on your requests, mitm is possible.
|
||||||
|
* Dont do crimes
|
||||||
|
|
||||||
|
## INSTALL
|
||||||
|
``
|
||||||
|
sudo apt install jq screen curl
|
||||||
|
cd ~
|
||||||
|
wget <releaseurl>
|
||||||
|
tar xvf <releasename>
|
||||||
|
``
|
||||||
|
## USE
|
||||||
|
``
|
||||||
|
cd ~/<releasename>
|
||||||
|
./run_d.sh
|
||||||
|
``
|
||||||
|
then run your app with the HTTP proxy `http://localhost:420`
|
||||||
|
## STOP
|
||||||
|
``
|
||||||
|
Ctrl+C
|
||||||
|
./kill.sh
|
||||||
|
``
|
||||||
|
## TEST
|
||||||
|
``
|
||||||
|
curl -D - --proxy-insecure -x http://localhost:420 -k https://canhazip.com
|
||||||
|
``
|
||||||
|
or
|
||||||
|
``
|
||||||
|
./test_proxy.sh
|
||||||
|
``
|
||||||
|
|
||||||
|
|
||||||
|
##PROJECTS USED
|
||||||
|
###Give them a hot look
|
||||||
|
* [slrp](https://github.com/nfx/slrp)
|
||||||
|
* [mubeng](https://github.com/kitabisa/mubeng)
|
||||||
|
* [jq](https://github.com/jqlang/jq)
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
SLRP_DIR=$PWD/.slrp
|
||||||
|
BIN=$SLRP_DIR/bin
|
||||||
|
PROXY_FILE=$SLRP_DIR/proxies.txt
|
||||||
|
LIVE=$SLRP_DIR/live.txt
|
||||||
|
DATA=$SLRP_DIR/data
|
||||||
|
SLRP=$BIN/slrp
|
||||||
|
PARSE_POOL=$BIN/parse_pool_json.sh
|
||||||
|
MUBENG=$BIN/mubeng
|
||||||
|
CHECK_LIVE=$BIN/check_for_live.sh
|
||||||
|
CLEAN=$BIN/clean.sh
|
||||||
|
|
||||||
|
echo Cleaning up first...
|
||||||
|
bash $CLEAN
|
||||||
|
echo Scanning for proxies, please wait 6 seconds...
|
||||||
|
screen -S slrp -d -m $SLRP
|
||||||
|
sleep 6;
|
||||||
|
echo Checking for live proxies and parsing the pool, please wait 90 seconds... #... current time `date +%r`
|
||||||
|
screen -S parse_pool -d -m $PARSE_POOL
|
||||||
|
screen -S mubeng_check_live -d -m $CHECK_LIVE
|
||||||
|
sleep 90
|
||||||
|
$MUBENG -t 6s -a localhost:420 -f $LIVE -w -v -r 1 -m random
|
||||||
|
echo proxy sever on, connect on http://localhost:420
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
while true;
|
||||||
|
do
|
||||||
|
curl -D - --proxy-insecure -x http://localhost:420 -k https://canhazip.com
|
||||||
|
echo "\n"
|
||||||
|
done
|
||||||
Reference in New Issue
Block a user