-
Notifications
You must be signed in to change notification settings - Fork 4
/
main.py
executable file
·57 lines (50 loc) · 2.01 KB
/
main.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
import argparse
import os
from sqldork.SQLDork import SQLDork
def barner():
if(os.name == 'nt'):
os.system('clear')
else:
os.system('clear')
print("""
::: :::::::: :::::::: ::: ::::::::: ::::::::
:+: :+: :+: :+: :+: :+: :+: :+: :+: :+: :+:
+:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+
+#++:++#++: +#++:++#++ +#+ +:+ +#+ +#+ +:+ +#++:++#++
+#+ +#+ +#+ +#+ # +#+ +#+ +#+ +#+ +#+
#+# #+# #+# #+# #+# +#+ #+# #+# #+# #+# #+#
### ### ######## ###### ### ########## ######### ########
Author : Kocak
Version : 1.0
""")
if __name__ == '__main__':
barner()
parser = argparse.ArgumentParser(prog='python main.py', usage='%(prog)s [options]')
parser.add_argument('--dork',nargs='?', dest='dork', help='SQL injection dork')
parser.add_argument('--page',nargs='?', dest='page', help='number of google page')
# parser.add_argument('--output',nargs='?', dest='output', help='output result')
# parser.add_argument('--output', nargs='?', dest='output', help='output file txt')
parser.add_argument('--random-agent', dest='user_agent', action='store_true', help='random user agent')
par = parser.parse_args()
# Default value
random_dork = False
random_agent = False
dork = ''
page = 0
output = 'txt'
if not par:
parser.print_help()
if not par.dork:
parser.print_help()
# elif str(par.dork) == 'random':
# random_dork = True
else:
dork = par.dork
if par.page is not None:
page = par.page
# if parser.output is not None:
# output = parser.output
if par.user_agent:
random_agent = True
if par.dork:
SQLDork(dork,random_agent,page,output,random_dork)