XSCTF决赛Crypto(part)
什么博不博客,不管了!上来二话不说,先甩个链接致敬那个被Qanux喷的高手:https://pqgcg6fs2k6.feishu.cn/wiki/Tpq7wVDAxin8BgkIc6xcYFmVnTE这是决赛Crypto的wp,HvAng写的,可以当个乐子看,毕竟他给朕供奉了飞霄和椒丘的镭射卡(doge)下面进入正题,今天搞了一下午搞明白一道6ES,题目描述:Great minds meet.题目如下:1234567891011121314151617181920212223242526272829from hashlib import sha256from random import choicesfrom Crypto.Cipher import AESfrom Crypto.Util.Padding import padfrom secret import flagdef Key_Gen(chars, length): key = [] for _ in range(6): ...
小嘟嘟的长城杯CTF
赛前忙着复习(真bushi),已经好几天没看crtpto了,进到nc之前还有点心虚。当我看到HvAng和Chimedal两个人一脸奸笑的时候就知道今天注定是非常逆天的了。 比赛开始了,留给小嘟嘟的时间不多了进到题目里面一看,第一道不会,第二道还好,别的队陆陆续续开始有血了之后也是着手去做了。题目代码如下:123456789101112131415161718192021222324252627282930313233343536373839404142from Crypto.Util.number import getPrime, bytes_to_longfrom random import randintimport osFLAG = os.getenv("FLAG").encode()flag1 = FLAG[:15]flag2 = FLAG[15:]def crypto1(): p = getPrime(1024) q = getPrime(1024) n = p * q e = 0x10001 ...
太baby了
HvAng真的太baby了昨天被一道模运算的crypto困住了,搞完感觉很简单,但是HvAng太baby了,因为他给我推了一道baby_hint,我搞了好久,你知道这对一个新手伤害多大吗?话不多说,直接展示题目123456789101112131415161718192021import gmpy2import libnumimport uuidfrom secret import flagm=libnum.s2n(flag)p=libnum.generate_prime(512)q=libnum.generate_prime(512)e=65537n=p*qhint1=pow(2023*p+2022*q,1919,n)hint2=pow(2022*p+2023*q,9191,n)c=pow(m,e,n)print("hint1=",hint1)print("hint2=",hint2)print("n=",n)print("c=",c)'''hint1=...
BlogBirth
Look Downflagflag{N0w_y0v_h4u3_s3en_y0vr_f4th3r’5_b109} What I mean is that when you come into contact with CTF or Sloth,you life is just that shit.Or you will not understand what I said above.