Advertisement
panduprabs

Mass Scanner Vulnerabilty Web Sql Injection

Dec 18th, 2017
662
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.40 KB | None | 0 0
  1.     #!/bin/bash
  2.     # What Ever you re-code this
  3.     # Special Thanks
  4.     # Wingkocoli - Backbox Linux Indonesia
  5.     # I built this tool because bored with the Weekend
  6.     # Tools that may not be useful because
  7.     # It knows the vuln or not the website can be manually
  8.     # ./anakayam
  9.  
  10.     echo `clear`;
  11.     echo -e "\033[0m"
  12.     printf "  +=============================================+"'\n'
  13.     printf "  |      Mass Vuln Web SQL Injection Scanner    |"'\n'
  14.     printf "  |             Code By : ./anakayam            |"'\n'
  15.     printf "  |     Wingkocoli - Bacbkox Linux Indonesia    |"'\n'
  16.     printf "  +=============================================+"'\n''\n'
  17.  
  18.  
  19.     function check {
  20.         b="Using : -w [Your Mass Target]\nExample : basename -w target.txt\n  
  21.     "
  22.     echo -e $b
  23.     exit 1
  24.     }
  25.     [ "$1" ] || check;
  26.  
  27.  
  28.     while getopts w: OPT ;
  29.     do
  30.         #statements
  31.         case "$OPT" in
  32.             "w") masstarget="${OPTARG}" ;;
  33.         esac
  34.     done
  35.  
  36.  
  37.     [ $masstarget ] || check;
  38.  
  39.     printf '\n'"[*] Scanning target file => $masstarget"'\n''\n'
  40.  
  41.     for vuln in `cat $masstarget`
  42.      do
  43.         echo -e "\033[1;34m[*]\033[0m Scanning => $vuln"
  44.         page=$(curl -s $vuln"'")
  45.  
  46.         if [[ $page =~ "SQL" ]]; then
  47.             echo -e "\e[32m[+] $vuln => Vulneraibility SQl Injection\n"
  48.             echo $vuln >> vuln.txt
  49.         else
  50.             echo -e "\e[31m[-] $vuln => Not Vulneraibility"
  51.             echo -e "\033[0m"
  52.         fi
  53.     done
  54.     echo -e "\033[1;34m[!]Vulneraibility Web Success Saved in vuln.txt\n"
  55.     echo -e "\033[0m"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement