Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- 워 게임
- c언어
- PYTHON
- 변수
- 풀이
- 라이트 업
- Basic
- 라업
- 강의
- 리버싱
- 드림핵
- write up
- 2021
- web
- reversing
- 파이썬
- probgame
- reversing.kr
- ctf
- 시탭
- 해킹캠프
- 코드엔진
- vsCode
- 리버스 엔지니어링
- 라이트업
- 뭉뭉
- 히공
- hackingcamp
- write-up
- ShaktiCTF
Archives
목록암호학 (1)
히공

문제 #!/usr/bin/env python3 from os import urandom from random import randint from pwn import xor input_img = open("flag.png", "rb").read() outpout_img = open("flag.png.enc", "wb") key = urandom(8) + bytes([randint(0, 9)]) outpout_img.write(xor(input_img, key)) xor.py의 내용이다. from pwn import xor with open('flag.png.enc', 'rb') as f: read = f.read() png_signature = bytes.fromhex("89 50 4E 47 0D 0A 1..
write up/Hero CTF 2021
2021. 5. 6. 22:47