일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- dreamhack
- CTF
- crypto
- got overwrite
- ctf player
- KAIST
- WEB
- pwnable
- Wargame
- deayzl
- cryptography
- 2022 Fall GoN Open Qual CTF
- Buffer Overflow
- h4cking game
- 웹해킹
- reversing
- christmas ctf
- Wreckctf
- TeamH4C
- webhacking
- writeup
- 워게임
- System Hacking
- Gon
- python
- webhacking.kr
- hack
- 해킹
- hacking game
- hacking
Archives
- Today
- Total
목록algorithm (1)
deayzl's blog

#!/usr/bin/python3 import random CHARSET = "ABCDEFGHIJKLMNOPQRSTUVWXYZ_/" def key_gen(): tmp = list(CHARSET) random.shuffle(tmp) p = "".join(tmp) k1, k2 = random.sample(range(1, 10), 2) k3_len = random.randint(5, 10) k3 = tuple(random.randrange(1, 10) for _ in range(k3_len)) p_li = list(p) p_li.append(p_li[k1]) p_li.append(p_li[k2]) p_li[k1] = " " p_li[k2] = " " p = "".join(p_li) return (p, k1, ..
CTF writeup/GoN Open Qual CTF
2022. 8. 31. 21:00