Jump to content
YOUR-AD-HERE
HOSTING
TOOLS
992Proxy

Locked SQLiV Scanner


sQuo

Recommended Posts

 

SQLiV Scanner

by Duubz

 

[HIDE-THANKS]

 

[LENGUAJE=python]

import sys,os,time

 

ver = sys.version_info

 

if ver[0] > 2: import urllib.request as request

else: import urllib2 as request

 

 

class sqli(object):

def scan(website):

vulns = 0

types = ['mysql_fetch_']

try:

tar = request.urlopen(website).read().decode()

for vuln in types:

if vuln in tar:

print(website + ' is vulnerable.')

vuln += 1

else:

print(website + ' is not vulnerable.')

time.sleep(5)

os.system('CLS')

load.prompt()

except:

print('Error scanning website.')

time.sleep(5)

os.system('CLS')

load.prompt()

 

if vulns > 0:

print(website + ' has ' + str(int(vulns)) + ' vulnerabilies.')

else:

return

 

def test(website):

urlException = request.URLError

if '.php?' not in website:

print('Unable to scan for SQLi if no string or query is provided.')

time.sleep(5)

os.system('CLS')

load.prompt()

else:

try:

request.urlopen(website)

print('Scanning website.')

sqli.scan(website)

except urlException:

print('Unable to open URL.')

time.sleep(5)

os.system('CLS')

load.prompt()

 

def exe(website):

sqli.test(website)

 

class load(object):

def prompt():

website = input('Target: ')

print('Testing URL.')

sqli.test(website)

 

if __name__ == '__main__':

load.prompt()

[/LENGUAJE]

 

[/HIDE-THANKS]

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.