• 2024-12-01浅聊以下C++友元函数
    目录一、创建友元二、友元函数的特点         1、一个函数可以是多个类的友元函数        2、友元类中的成员函数都可以是另⼀个类的友元函数         3、友元类的关系是单向的        4、友元类关系不能传递 一、创建友元  
  • 2023-05-06Crypto|[NCTF2019]babyRSA
    task.pyfromCrypto.Util.numberimport*fromflagimportflagdefnextPrime(n):n+=2ifn&1else1whilenotisPrime(n):n+=2returnnp=getPrime(1024)q=nextPrime(p)n=p*qe=0x10001d=inverse(e,(p-1)*(q-1))
  • 2022-12-02[RoarCTF2019]babyRSA
    题目脚本代码:importsympyimportrandomdefmyGetPrime():A=getPrime(513)print(A)B=A-random.randint(1e3,1e5)print(B)returnsympy.nextPrime((B
  • 2022-08-30babyRSA GWCTF 2019
    InvolvedKnowledgeRSAAdjacentElementDescriptionencrypt.pyimporthashlibimportsympyfromCrypto.Util.numberimport*flag='GWHT{******}'secret='