#norwack's private vuln scannr
#made for learning purposes
import os
import urllib2
import sys
def usage():
print "Usage: scannr.py <https://website.com/news.php?id=123>"
argc = len(sys.argv)
if argc < 1:
usage()
else:
link = sys.argv[1] + "'"
for site in urllib2.urlopen(link):
if 'error in your SQL' in site or 'mysql_fetch_' in site:
print "\nMight be vulnerable: ", link
import sys, urllib.request
def usage():
print("Usage: scannr.py <https://website.com/news.php?id=12>")
def main():
errors = ['error in your SQL', 'mysql_fetch_'] # list of errors - you can add to these to increase effectiveness
if len(sys.argv) < 1:
usage()
return 0
else:
try:
print("Scanning", sys.argv[1] + "...")
link = sys.argv[1] + "'"
site = urllib.request.urlopen(link).read().decode("utf-8")
counter = 0
for error in errors:
if error in site:
print(link, 'might be vulnerable'
return 0
else:
if counter >= len(errors):
print(link, 'is not vulnerable'
return 1
else:
counter += 1
except urllib.request.URLError:
print("Unable to open URL, you may have provided an invalid format")
return 2
except:
print("There has been an error scanning the website")
return 2
if (__name__ == "__main__"):
sys.exit(main())
#norwack's private vuln scannr
#made for learning purposes
import os
import urllib2
import sys
def usage():
print "Usage: scannr.py <https://website.com/news.php?id=123>"
argc = len(sys.argv)
if argc < 1:
usage()
else:
link = sys.argv[1] + "'"
for site in urllib2.urlopen(link):
if 'error in your SQL' in site or 'mysql_fetch_' in site:
print "\nMight be vulnerable: ", link
Copyright © 2026, NextGenUpdate.
All Rights Reserved.