10 2022 档案

摘要:下面先给出题目 import os from Crypto.Cipher import AES auth_major_key = os.urandom(16) from flag import secret BANNER = """ Login as admin to get the flag ! 阅读全文
posted @ 2022-10-23 10:26 m0feng 阅读(229) 评论(0) 推荐(0)
摘要:from secret import FLAG, ECDH_KEY_EXCHANGE from Crypto.Cipher import AES from hashlib import md5 from os import urandom iv = urandom(16) a = 14489 b = 阅读全文
posted @ 2022-10-23 10:26 m0feng 阅读(96) 评论(0) 推荐(0)
摘要:from Crypto.Util.number import * flag = b'xxxxxxxxxxxxxxxxxxxx' class my_prng_lcg: def __init__(self, seed, multiplier, increment, modulus): self.stat 阅读全文
posted @ 2022-10-16 20:06 m0feng 阅读(177) 评论(0) 推荐(0)
摘要:from Crypto.Util.number import * from somewhere_you_do_not_know import flag #flag格式为 flag{XXXX} def ezprime(n): p=getPrime(n) while p%4!=3: p=getPrime 阅读全文
posted @ 2022-10-16 18:36 m0feng 阅读(112) 评论(0) 推荐(0)
摘要:本题目的是使新生对rsa更加熟悉,一个题目内含五个小问。🏎️ 题干 assert len(flag) % 5 == 0 cnt = len(flag) // 5 flags = [flag[cnt*i:cnt*(i+1)] for i in range(5)] 我们根据题干不难发现,这一题的fla 阅读全文
posted @ 2022-10-14 18:59 m0feng 阅读(385) 评论(0) 推荐(0)