-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
182 changed files
with
3,006 additions
and
2,594 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
|
||
root | ||
123456 | ||
password | ||
p@ssw0rd | ||
1qaz2wsx | ||
qwer!@#$ | ||
qwer1234 | ||
test | ||
toor | ||
1234 | ||
root123 | ||
P@ssw0rd!! | ||
qwa123 | ||
12345678 | ||
123qwe!@# | ||
123456789 | ||
123321 | ||
1314520 | ||
666666 | ||
fuckyou | ||
000000 | ||
1234567890 | ||
8888888 | ||
qwerty | ||
1qaz2wsx | ||
abc123 | ||
abc123456 | ||
1q2w3e4r | ||
123qwe | ||
159357 | ||
p@ssw0rd | ||
p@55w0rd | ||
password! | ||
p@ssw0rd! | ||
password1 | ||
r00t | ||
system | ||
111111 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
root | ||
admin | ||
guest | ||
anonymous | ||
test | ||
www | ||
web | ||
rsync | ||
db | ||
ftp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,6 @@ qwer1234 | |
|$|N|E|X|U|S|$| | ||
admin888 | ||
glassfish | ||
vulhub_default_password | ||
test | ||
neagrle | ||
toor | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,12 +6,9 @@ deployment | |
test | ||
www | ||
web | ||
rsync | ||
db | ||
wwwroot | ||
data | ||
tomcat | ||
ftp | ||
Admin | ||
Administrator | ||
administrator | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,118 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import aiohttp | ||
import configparser | ||
|
||
def get_conf(): | ||
|
||
"""" | ||
从配置文件中读取代理地址和超时时间 | ||
:param: | ||
:return tuple result: 代理地址和超时时间 | ||
""" | ||
|
||
config = configparser.ConfigParser() | ||
config.read('conf.ini') | ||
proxy = config.get('request', 'proxy') | ||
if not config.get('request', 'timeout'): | ||
timeout = 5 | ||
else: | ||
timeout = int(config.get('request', 'timeout')) | ||
if not proxy: | ||
proxies = None | ||
else: | ||
proxies = { | ||
'http': '%s' %(proxy), | ||
'https': '%s' %(proxy), | ||
} | ||
return proxies, timeout | ||
|
||
class request: | ||
|
||
""" | ||
封装aiohttp | ||
""" | ||
|
||
def __init__(self): | ||
pass | ||
|
||
@classmethod | ||
async def get(self, url, params = None, data = None, json = None, headers = None, proxy = None, cookies = None, verify_ssl = False, allow_redirects = False): | ||
result = get_conf() | ||
proxy = result[0] | ||
timeout = result[1] | ||
async with aiohttp.ClientSession() as session: | ||
async with session.get(url, params = params, data = data, json = json, headers = headers, proxy = proxy, cookies = cookies, timeout = timeout, verify_ssl = verify_ssl, allow_redirects = allow_redirects) as response: | ||
result = await response.text() | ||
return response | ||
|
||
@classmethod | ||
async def post(self, url, params = None, data = None, json = None, headers = None, proxy = None, cookies = None, verify_ssl = False, allow_redirects = False): | ||
result = get_conf() | ||
proxy = result[0] | ||
timeout = result[1] | ||
async with aiohttp.ClientSession() as session: | ||
async with session.post(url, params = params, data = data, json = json, headers = headers, proxy = proxy, cookies = cookies, timeout = timeout, verify_ssl = verify_ssl, allow_redirects = allow_redirects) as response: | ||
await response.text() | ||
return response | ||
|
||
@classmethod | ||
async def put(self, url, params = None, data = None, json = None, headers = None, proxy = None, cookies = None, verify_ssl = False, allow_redirects = False): | ||
result = get_conf() | ||
proxy = result[0] | ||
timeout = result[1] | ||
async with aiohttp.ClientSession() as session: | ||
async with session.put(url, params = params, data = data, json = json, headers = headers, proxy = proxy, cookies = cookies, timeout = timeout, verify_ssl = verify_ssl, allow_redirects = allow_redirects) as response: | ||
await response.text() | ||
return response | ||
|
||
@classmethod | ||
async def head(self, url, params = None, data = None, json = None, headers = None, proxy = None, cookies = None, verify_ssl = False, allow_redirects = False): | ||
result = get_conf() | ||
proxy = result[0] | ||
timeout = result[1] | ||
async with aiohttp.ClientSession() as session: | ||
async with session.head(url, params = params, data = data, json = json, headers = headers, proxy = proxy, cookies = cookies, timeout = timeout, verify_ssl = verify_ssl, allow_redirects = allow_redirects) as response: | ||
await response.text() | ||
return response | ||
|
||
@classmethod | ||
async def patch(self, url, params = None, data = None, json = None, headers = None, proxy = None, cookies = None, verify_ssl = False, allow_redirects = False): | ||
result = get_conf() | ||
proxy = result[0] | ||
timeout = result[1] | ||
async with aiohttp.ClientSession() as session: | ||
async with session.patch(url, params = params, data = data, json = json, headers = headers, proxy = proxy, cookies = cookies, timeout = timeout, verify_ssl = verify_ssl, allow_redirects = allow_redirects) as response: | ||
await response.text() | ||
return response | ||
|
||
@classmethod | ||
async def options(self, url, params = None, data = None, json = None, headers = None, proxy = None, cookies = None, verify_ssl = False, allow_redirects = False): | ||
result = get_conf() | ||
proxy = result[0] | ||
timeout = result[1] | ||
async with aiohttp.ClientSession() as session: | ||
async with session.options(url, params = params, data = data, json = json, headers = headers, proxy = proxy, cookies = cookies, timeout = timeout, verify_ssl = verify_ssl, allow_redirects = allow_redirects) as response: | ||
await response.text() | ||
return response | ||
|
||
@classmethod | ||
async def delete(self, url, params = None, data = None, json = None, headers = None, proxy = None, cookies = None, verify_ssl = False, allow_redirects = False): | ||
result = get_conf() | ||
proxy = result[0] | ||
timeout = result[1] | ||
async with aiohttp.ClientSession() as session: | ||
async with session.delete(url, params = params, data = data, json = json, headers = headers, proxy = proxy, cookies = cookies, timeout = timeout, verify_ssl = verify_ssl, allow_redirects = allow_redirects) as response: | ||
await response.text() | ||
return response | ||
|
||
@classmethod | ||
async def request(self, method, url, params = None, data = None, json = None, headers = None, proxy = None, cookies = None, verify_ssl = False, allow_redirects = False): | ||
result = get_conf() | ||
proxy = result[0] | ||
timeout = result[1] | ||
async with aiohttp.ClientSession() as session: | ||
async with session.request(url, params = params, data = data, json = json, headers = headers, proxy = proxy, cookies = cookies, timeout = timeout, verify_ssl = verify_ssl, allow_redirects = allow_redirects) as response: | ||
await response.text() | ||
return response |
File renamed without changes.
Oops, something went wrong.