initial push
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user