-
zh3r0-v2 - Alice Bob Dave
***收费WriteUP请购买后查看,VIP用户可免费查看***
-
1 金币
- Crypto
- 6天前
-
【Write Up】Crazy_Rsa_Tech
withopen('output.txt','r')asfile:exec(file.read())defexgcd(a,b):#ax+by=gcd(a,b)ifb==0:return[1,0,a]c=exgcd(b,a%b)return[c[1],c[0]-a//b*c[1],c[2]]defcrt(a,m):A=0;M=1foriinrange(len(a)):k1,k2,g=exgcd(M,...
- Crypto
- 24天前
-
【Write Up】Cycles
withopen('cycles.txt')asf:code=f.read()exec(code)p=Pct=ciphertextforainrange(p-1,(p-1)*(2**24),p-1):iflen(bin(a))>=1050:breakfromCryptodome.Util.numberimportlong_to_byteskey=long_to_bytes(a)[:16]fr...
- Crypto
- 24天前
-
【Write Up】Many Primes
withopen('output.txt','r')asf:exec(f.read())mod=1;k=nforiinrange(2,2**16):cnt=0whilek%i==0:k//=icnt+=1ifcnt>0:mod*=((i**cnt)-(i**(cnt-1)))print(f'{i}^{cnt}')print(f'mod={mod}')fromgmpy2importinvert...
- Crypto
- 24天前
-
【Write Up】pain
withopen('CROSSWD.TXT','r')asf1:dic=[word.strip()forwordinf1.readlines()]withopen('encrypted.txt','r')asf2:enc=f2.readline().strip().split()forwordinenc:now=dic.index(word)+1print(chr(now>>8),en...
- Crypto
- 24天前
-
【Write Up】Kendrick Lamar
根据图中信息,可以发现跟DNA碱基对的那个ACGT有关。把颜色转化成ACGT序列:CATGACGATTCATAGGCTACGTCTTAGTGAAGCTCTCTCAGCATAGATCACAGCCATATCATAATATACACG。然后甩到一个特定的转换网站:https://earthsciweb.org/js/bio/dna-writer/。得到:Translatebasesequencetotex...
- Crypto
- 24天前
-
【Write Up】Times
importsyssys.path.append(r'D:\3-Studies\3-CTF\Crypto_Tools')fromElliptic_Curve_Cryptographyimport*E=ECC(13,245,335135809459196851603485825030548860907)start_point=(14592775108451646097,237729200841118...
- Crypto
- 25天前
-
【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
- 25天前
-
【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
- 25天前
-
【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
- 25天前
-
Augustine's Way
***收费WriteUP请购买后查看,VIP用户可免费查看***
-
3 金币
- Crypto
- 1月前
-
babyRSA
***收费WriteUP请购买后查看,VIP用户可免费查看***
-
3 金币
- Crypto
- 2月前
-
simple xor
importbase64encrypted_str="XUBdTFdScw5XCVRGTglJXEpMSFpOQE5AVVxJBRpLT10aYBpIVwlbCVZATl1WTBpaTkBOQFVcSQdH:)"data=base64.b64decode(encrypted_str) xor_key=[58,41]#':'(58),')'(41)decrypted=b''foriinra...
- Crypto
- 2月前
-
HackINI -2023-The Mistery of Paillier 1题解
***收费WriteUP请购买后查看,VIP用户可免费查看***
-
1 金币
- Crypto
- 2月前
-
HackINI -2023-PCryptor题解
***收费WriteUP请购买后查看,VIP用户可免费查看***
-
1 金币
- Crypto
- 2月前
-
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
- 3月前
-
【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
- 3月前
-
【Write Up】crtrsa
fromCrypto.Util.numberimport*fromgmpy2import*e=295354426800286670387207655193095372257231712277786129929340705339180819922065528923598308898637263014182104911801575201741264214893411372317485523614288...
- Crypto
- 3月前
-
【Write Up】RSA5
fromgmpy2import*fromCrypto.Util.numberimport*n=158307578375429142391814474806884486236362186916188452580137711655290101749246194796158132723192108831610021920979976831387798531310286521988621973910776...
- Crypto
- 3月前
-
【Write Up】Easy RSA
fromCrypto.Util.numberimport*fromgmpy2import*e=65537defget_p():x=111244400217481271590920768614054548149815751447445088571785765729293214350029429985314209857710901672622568778059021353041122716410744...
- Crypto
- 3月前