π 64se64 λλ¦Όν΅ μκ²μ λ¬Έμ νμ΄
1. λ¬Έμ μ λν μ€λͺ μμ§ (λ¬Έμ νμΌμ λ³λ λ€μ΄λ‘λ νμ X)
2. μλ² μμ± ν μλ΄λ λ§ν¬λ‘ μ μ
3. F12 λ¨μΆν€λ₯Ό ν΅ν΄ κ°λ°μ λꡬ μ€ν --> Sources νμμ μμ€ μ½λ νμΈ
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Welcome</title>
</head>
<body>
<h1>Welcome! π</h1>
<form method="POST">
<input type="hidden" name="64se64_encoding" value="IyEvdXNyL2Jpbi9lbnYgcHl0aG9uMwphc2M9WzY4LCA3MiwgMTIzLCA5OCwgMTAxLCA0OCwgNTIsIDU0LCA5OCwgNTUsIDUzLCA1MCwgNTAsIDk3LCA5NywgNTAsIDEwMSwgNTAsIDU2LCAxMDIsIDUwLCA1NSwgNTQsIDEwMSwgNDgsIDk5LCA1NywgNDksIDQ4LCA1MywgNTAsIDQ5LCAxMDIsIDUwLCA1MSwgOTcsIDQ4LCA1MywgNTYsIDU1LCA0OCwgNDgsIDUzLCA5NywgNTYsIDUxLCA1NSwgNTUsIDUxLCA1NSwgNDgsIDk3LCA0OSwgNDksIDEwMSwgNTMsIDEwMSwgNTIsIDEwMCwgOTksIDQ5LCA1MywgMTAyLCA5OCwgNTAsIDk3LCA5OCwgMTI1XQphcnI9WzAgZm9yIGkgaW4gcmFuZ2UoNjgpXQpmb3IgaSBpbiByYW5nZSgwLDY4KToKICAgIGFycltpXT1jaHIoYXNjW2ldKQpmbGFnPScnLmpvaW4oYXJyKQpwcmludChmbGFnKQ==">
</form>
</body>
</html>
4. value λ³μ μ base64λ‘ μΈμ½λ©λ λ¬Έμμ΄ ν΄λ μ μν μ€ν¬λ¦½νΈ μμ±
import base64
encoded_data = "IyEvdXNyL2Jpbi9lbnYgcHl0aG9uMwphc2M9WzY4LCA3MiwgMTIzLCA5OCwgMTAxLCA0OCwgNTIsIDU0LCA5OCwgNTUsIDUzLCA1MCwgNTAsIDk3LCA5NywgNTAsIDEwMSwgNTAsIDU2LCAxMDIsIDUwLCA1NSwgNTQsIDEwMSwgNDgsIDk5LCA1NywgNDksIDQ4LCA1MywgNTAsIDQ5LCAxMDIsIDUwLCA1MSwgOTcsIDQ4LCA1MywgNTYsIDU1LCA0OCwgNDgsIDUzLCA5NywgNTYsIDUxLCA1NSwgNTUsIDUxLCA1NSwgNDgsIDk3LCA0OSwgNDksIDEwMSwgNTMsIDEwMSwgNTIsIDEwMCwgOTksIDQ5LCA1MywgMTAyLCA5OCwgNTAsIDk3LCA5OCwgMTI1XQphcnI9WzAgZm9yIGkgaW4gcmFuZ2UoNjgpXQpmb3IgaSBpbiByYW5nZSgwLDY4KToKICAgIGFycltpXT1jaHIoYXNjW2ldKQpmbGFnPScnLmpvaW4oYXJyKQpwcmludChmbGFnKQ=="
decoded_data = base64.b64decode(encoded_data).decode('utf-8')
print(decoded_data)
5. Google Colabμμ μμ±ν μ½λ μ€ν --> λμ½λ κ²°κ³Ό μλ‘μ΄ Python μ½λ λ°κ²¬
#!/usr/bin/env python3
asc=[68, 72, 123, 98, 101, 48, 52, 54, 98, 55, 53, 50, 50, 97, 97, 50, 101, 50, 56, 102, 50, 55, 54, 101, 48, 99, 57, 49, 48, 53, 50, 49, 102, 50, 51, 97, 48, 53, 56, 55, 48, 48, 53, 97, 56, 51, 55, 55, 51, 55, 48, 97, 49, 49, 101, 53, 101, 52, 100, 99, 49, 53, 102, 98, 50, 97, 98, 125]
arr=[0 for i in range(68)]
for i in range(0,68):
arr[i]=chr(asc[i])
flag=''.join(arr)
print(flag)
6. μ»μ΄λΈ μ μ½λ μ€ν --> FLAG λ°κ²¬
#!/usr/bin/env python3
asc=[68, 72, 123, 98, 101, 48, 52, 54, 98, 55, 53, 50, 50, 97, 97, 50, 101, 50, 56, 102, 50, 55, 54, 101, 48, 99, 57, 49, 48, 53, 50, 49, 102, 50, 51, 97, 48, 53, 56, 55, 48, 48, 53, 97, 56, 51, 55, 55, 51, 55, 48, 97, 49, 49, 101, 53, 101, 52, 100, 99, 49, 53, 102, 98, 50, 97, 98, 125]
arr=[0 for i in range(68)]
for i in range(0,68):
arr[i]=chr(asc[i])
flag=''.join(arr)
print(flag)
'βοΈ Miscellaneous (Misc) > Dreamhack' μΉ΄ν κ³ λ¦¬μ λ€λ₯Έ κΈ
[Dreamhack] littlevsbig Write Up (0) | 2023.11.28 |
---|---|
[Dreamhack] dreamhack-tools-cyberchef Write Up (0) | 2023.11.27 |
[Dreamhack] Exercise: Welcome-Beginners λλ¦Όν΅ μκ²μ λ¬Έμ νμ΄ (0) | 2023.11.25 |
[Dreamhack] baby-linux λλ¦Όν΅ μκ²μ λ¬Έμ νμ΄ (0) | 2023.11.23 |
[Dreamhack] broken-png λλ¦Όν΅ μκ²μ λ¬Έμ νμ΄ (0) | 2023.08.20 |