Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import urllib2, urllib, re, threading
- class checkSite(threading.Thread):
- def __init__(self, site):
- threading.Thread.__init__(self)
- self.site = site
- def run(self):
- try:
- g = urllib.urlopen(self.site+"'").read()
- m = re.findall('<b>Warning</b>: ', g)
- if len(m) == 0:
- print '[-] %s is not vulnerable :c' % self.site
- else:
- print '[+] %s is vulnerable!' % self.site
- except IOError, e:
- print '[!] An error occured within %s' % self
- print '[!] Welcome to SQLiCheck v1.2 by Sanitized@HF!'
- print '[!] List must be in same directory as this file!'
- sites = raw_input("[?] Please enter the list to check: ")
- f = open(sites)
- while True:
- l = f.readline()
- cs = checkSite(l)
- cs.start()
- cs.join()
- if not l:
- break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement