Advertisement
Ak8D

SQLiCheck v1.2

Sep 14th, 2012
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.87 KB | None | 0 0
  1. import urllib2, urllib, re, threading
  2.  
  3. class checkSite(threading.Thread):
  4.     def __init__(self, site):
  5.         threading.Thread.__init__(self)
  6.         self.site = site
  7.     def run(self):
  8.         try:
  9.             g = urllib.urlopen(self.site+"'").read()
  10.             m = re.findall('<b>Warning</b>: ', g)
  11.             if len(m) == 0:
  12.                 print '[-] %s is not vulnerable :c' % self.site
  13.             else:
  14.                 print '[+] %s is vulnerable!' % self.site
  15.         except IOError, e:
  16.             print '[!] An error occured within %s' % self
  17.  
  18.  
  19.  
  20. print '[!] Welcome to SQLiCheck v1.2 by Sanitized@HF!'
  21. print '[!] List must be in same directory as this file!'
  22. sites = raw_input("[?] Please enter the list to check: ")
  23. f = open(sites)
  24.  
  25. while True:
  26.     l = f.readline()
  27.     cs = checkSite(l)
  28.     cs.start()
  29.     cs.join()
  30.     if not l:
  31.         break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement