Skip to content

Commit f94e1e0

Browse files
committed
Remove proxy
1 parent db60eab commit f94e1e0

9 files changed

+93
-392
lines changed

lib/bad_proxies.py

-24
This file was deleted.

lib/browser.py

+16-28
Original file line numberDiff line numberDiff line change
@@ -2,47 +2,35 @@
22
# Author: Mohamed
33
# Description: Browser
44

5-
from time import time
5+
import requests
6+
from time import time
67
from requests import Session
7-
from .const import header, fetch_time, debug
88

99

1010
class Browser(object):
1111

12-
def __init__(self, link, proxy):
13-
self.link = link
14-
self.proxy = proxy
15-
self.is_active = True
16-
self.start_time = None
17-
self.is_vulner = False
18-
self.browser = self.br()
19-
self.is_attempted = False
20-
21-
def br(self):
22-
session = Session()
23-
session.headers.update(header)
24-
session.proxies.update(self.proxy.addr)
25-
return session
12+
def __init__(self, link):
13+
self.link = link
14+
self.is_active = True
15+
self.start_time = None
16+
self.is_vulner = False
17+
self.is_attempted = False
2618

2719
def get_content(self):
28-
resp = None
2920
url = self.link + '\''
30-
3121
try:
32-
resp = self.browser.get(url, timeout=fetch_time).text
22+
return requests.get(url).text
3323
except:
34-
pass
35-
36-
return resp
37-
24+
pass
25+
3826
def attempt(self):
3927
self.start_time = time()
4028
content = self.get_content()
41-
29+
4230
if content:
43-
self.is_attempted = True
44-
31+
self.is_attempted = True
32+
4533
if 'Invalid SQL' in content or 'error' in content:
46-
self.is_vulner = True
34+
self.is_vulner = True
4735

48-
self.is_active = False
36+
self.is_active = False

lib/const.py

+8-19
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,18 @@
33
# Author: Mohamed
44
# Description: Constants
55

6-
# Browser
7-
header = {
8-
'accept-language': 'en-US,en;q=0.9',
9-
'accept-encoding': 'gzip, deflate, br',
10-
'accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8',
11-
'user-agent': 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)'
12-
}
13-
146
# Limits
15-
fetch_time = (5, 10)
16-
max_bad_proxies = 64
17-
max_time_to_wait = 10
18-
max_bots_per_proxy = 64
7+
max_time_to_wait = 15
198
max_active_browsers = 256
209

2110
# Misc
2211
debug = False
2312
version = '1.0'
2413
sql_log = 'sql_vuln.txt'
2514

26-
# Art
15+
# Art
2716
banners = [
28-
'''
17+
'''
2918
██████ █████ ██▓ ██████ ▄████▄ ▄▄▄ ███▄ █ ███▄ █ ▓█████ ██▀███
3019
▒██ ▒ ▒██▓ ██▒▓██▒ ▒██ ▒ ▒██▀ ▀█ ▒████▄ ██ ▀█ █ ██ ▀█ █ ▓█ ▀ ▓██ ▒ ██▒
3120
░ ▓██▄ ▒██▒ ██░▒██░ ░ ▓██▄ ▒▓█ ▄ ▒██ ▀█▄ ▓██ ▀█ ██▒▓██ ▀█ ██▒▒███ ▓██ ░▄█ ▒
@@ -39,7 +28,7 @@
3928
{}
4029
''',
4130

42-
'''
31+
'''
4332
4433
███████╗ ██████╗ ██╗ ███████╗ ██████╗ █████╗ ███╗ ██╗███╗ ██╗███████╗██████╗
4534
██╔════╝██╔═══██╗██║ ██╔════╝██╔════╝██╔══██╗████╗ ██║████╗ ██║██╔════╝██╔══██╗
@@ -50,7 +39,7 @@
5039
{}
5140
''',
5241

53-
'''
42+
'''
5443
5544
▄████████ ████████▄ ▄█ ▄████████ ▄████████ ▄████████ ███▄▄▄▄ ███▄▄▄▄ ▄████████ ▄████████
5645
███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███▀▀▀██▄ ███▀▀▀██▄ ███ ███ ███ ███
@@ -64,7 +53,7 @@
6453
{}
6554
''',
6655

67-
'''
56+
'''
6857
▄▀▀▀▀▄ ▄▀▀▀▀▄ ▄▀▀▀▀▄ ▄▀▀▀▀▄ ▄▀▄▄▄▄ ▄▀▀█▄ ▄▀▀▄ ▀▄ ▄▀▀▄ ▀▄ ▄▀▀█▄▄▄▄ ▄▀▀▄▀▀▀▄
6958
█ █ ▐ █ █ █ █ █ █ ▐ █ █ ▌ ▐ ▄▀ ▀▄ █ █ █ █ █ █ █ █ ▐ ▄▀ ▐ █ █ █
7059
▀▄ █ █ ▐ █ ▀▄ ▐ █ █▄▄▄█ ▐ █ ▀█ ▐ █ ▀█ █▄▄▄▄▄ ▐ █▀▀█▀
@@ -75,7 +64,7 @@
7564
{}
7665
''',
7766

78-
'''
67+
'''
7968
▄▄▄▄▄ ▄▄ █ █ ▄▄▄▄▄ ▄█▄ ██ ▄ ▄ ▄███▄ █▄▄▄▄
8069
█ ▀▄ █ █ █ █ ▀▄ █▀ ▀▄ █ █ █ █ █▀ ▀ █ ▄▀
8170
▄ ▀▀▀▀▄ ▀▀▀█ █ ▄ ▀▀▀▀▄ █ ▀ █▄▄█ ██ █ ██ █ ██▄▄ █▀▀▌
@@ -85,4 +74,4 @@
8574
8675
{}
8776
'''
88-
]
77+
]

lib/proxy.py

-26
This file was deleted.

lib/proxy_list.py

-18
This file was deleted.

lib/proxy_manager.py

-42
This file was deleted.

lib/scraper.py

-109
This file was deleted.

0 commit comments

Comments
 (0)