-
【Write Up】Do Math!
byuctf{th3_g00d_m4th_1snt_th4t_h4rd}fromCrypto.Util.numberimport*p=getPrime(2048)q=getPrime(2048)e=0x10001n=p*qd=pow(e,-1,(p-1)*(q-1))msg="byuctf{th3_g00d_m4th_1snt_th4t_h4rd}"m=bytes_to_long(msg.enco...
- Crypto
- 3月前
-
【Write Up】Are S A?
withopen('cne.txt','r')asf:exec(f.read())importsyssys.path.append(r'D:\3-Studies\3-CTF\Crypto_Tools')fromPollard_Rhoimportpollard_rhomod=n-1fromgmpy2importinvert,powmodd=invert(e,mod)m=powmod(c,d,n)fr...
- Crypto
- 3月前
-
【Write Up】babyrsa
fromgmpy2importpowmod,iroot,invertfromCryptodome.Util.numberimportlong_to_byteswithopen('output.txt','r')asf:code=f.read()exec(code)'''n=p*qs=pow(557*p-127*q,n-p-q,n)Eular:a^phi(n)=1(modn)phi(n)=(p-1)...
- Crypto
- 3月前
-
【Write Up】apbq rsa i
fromgmpy2importgcd,invert,powmodwithopen('output.txt','r')asf:code=f.read()exec(code)'''(hints[0]=a1*p+b1*q)*a2(1)(hints[1]=a2*p+b2*q)*a1(2)(1)-(2):hints[0]*a2-hints[1]*a1=b1*a2*q-b2*a1*q=(b1*a2-b2*a1...
- Crypto
- 3月前
-
easy_hash
easy_hash这个题我看了一下肥肠简单但是难点就是你会不会写python这里我也是不会python(写c++的)(只会一点点python)看output发现有md5要用python代码把这些md5的结果连起来代码如下:importhashlibimportstringmd5_list={}forcinstring.printable:#string.printable“应该”是全部的字符把?m...
- Crypto
- 4月前
-
小学五年级Easy_Rsa解题
***收费WriteUP请购买后查看,VIP用户可免费查看***
-
3 金币
- Crypto
- 4月前
-
Augustine's Way
***收费WriteUP请购买后查看,VIP用户可免费查看***
-
3 金币
- Crypto
- 4月前
-
babyRSA
***收费WriteUP请购买后查看,VIP用户可免费查看***
-
3 金币
- Crypto
- 4月前
-
小学五年级Easy_Rsa
***收费WriteUP请购买后查看,VIP用户可免费查看***
-
2 金币
- Crypto
- 4月前
-
小学五年级Easy_Rsa-writeup
***收费WriteUP请购买后查看,VIP用户可免费查看***
-
2 金币
- Crypto
- 5月前
-
simple xor
importbase64encrypted_str="XUBdTFdScw5XCVRGTglJXEpMSFpOQE5AVVxJBRpLT10aYBpIVwlbCVZATl1WTBpaTkBOQFVcSQdH:)"data=base64.b64decode(encrypted_str) xor_key=[58,41]#':'(58),')'(41)decrypted=b''foriinra...
- Crypto
- 5月前
-
HackINI -2023-The Mistery of Paillier 1题解
***收费WriteUP请购买后查看,VIP用户可免费查看***
-
1 金币
- Crypto
- 5月前
-
HackINI -2023-PCryptor题解
***收费WriteUP请购买后查看,VIP用户可免费查看***
-
1 金币
- Crypto
- 5月前
-
lz77
***收费WriteUP请购买后查看,VIP用户可免费查看***
-
3 金币
- Crypto
- 5月前
-
lz77writeup
***收费WriteUP请购买后查看,VIP用户可免费查看***
-
3 金币
- Crypto
- 5月前
-
HackINI -2023-OTPx题解
首先向目标服务发送命令2p=remote("49.232.142.230",10320)p.sendlineafter(b">>",b"2")p.recvuntil(b"encryptedflagis:")enc_flag_hex=p.recvline().decode().strip()print(enc_flag_hex)获取对应的密文b'a\xf2\xbd\r\xe2\x96m\...
- Crypto
- 5月前
-
【Write Up】Whispers_of_the_Ancients
只有大小写字母会按照某个key进行移位操作。直接把原文丢进去逐个位置试一下即可。#xprotfetwq{t1e3L3p3_c4$w_ApdBc0}#shellmates{v1g3N3r3_e4$y_CryTp0}---这一行是试出来的flaga=ord('c')-(ord('n')-ord('a'))ifa<ord('a'):a+=26print(chr(a))
- Crypto
- 6月前
-
【Write Up】crtrsa
fromCrypto.Util.numberimport*fromgmpy2import*e=295354426800286670387207655193095372257231712277786129929340705339180819922065528923598308898637263014182104911801575201741264214893411372317485523614288...
- Crypto
- 6月前
-
【Write Up】RSA5
fromgmpy2import*fromCrypto.Util.numberimport*n=158307578375429142391814474806884486236362186916188452580137711655290101749246194796158132723192108831610021920979976831387798531310286521988621973910776...
- Crypto
- 6月前
-
【Write Up】Easy RSA
fromCrypto.Util.numberimport*fromgmpy2import*e=65537defget_p():x=111244400217481271590920768614054548149815751447445088571785765729293214350029429985314209857710901672622568778059021353041122716410744...
- Crypto
- 6月前