| ID: | 7834 |
|---|---|
| 标题: | [第七章 CTF之CRYPTO章]LFSR |
| 描述: | ``` seed = 0x00000000 # you need to solve this flag = 'n1book{%x}' % seed state = seed mask = 0b10000000000000000000000001010111 def lfsr(): global state, mask output = state & 1 now = state & mask new = 0 while now: new ^= now & 1 now >>= 1 state = (new << 31) | (state >> 1) return output for i in range(32): lfsr() print '%x' % state # 155a796b ``` 01CTFerbook.nu1l.com |
| 类型: | N1BOOK |
| 网站: | BUUCTF |
| 题目链接: | https://buuoj.cn/challenges#[第七章 CTF之CRYPTO章]LFSR |
| 赛事: | 第七章 CTF之CRYPTO章 |
| 年度: | None |
| Flag值: | n1book{5f3759df} |
| writeup: | https://blog.csdn.net/m0_66879478/article/details/135671090 |