![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
he110_Z
这个作者很懒,什么都没留下…
展开
-
CTF-BUUCTF-CRPTO-[WUSTCTF2020]B@se
1题目密文:MyLkTaP3FaA7KOWjTmKkVjWjVzKjdeNvTnAjoH9iZOIvTeHbvD==JASGBWcQPRXEFLbCDIlmnHUVKTYZdMovwipatNOefghq56rs****kxyz012789+/oh holy shit, something is missing...2,两个==号和标题,可以看出base64的变种,自定义加密字符,爆破缺少的字符。从网上找了个base64解密的脚本,修改一下进行爆破:#!/usr/bin/env py原创 2020-06-03 00:21:22 · 762 阅读 · 0 评论 -
CTF-BUUCTF-CRPTO-[ACTF新生赛2020]crypto-classic0
1、题目3个文件cipher:Ygvdmq[lYate[elghqvakl}压缩文件:howtoencrypt.zip有密码hint.txt哼,压缩包的密码?这是小Z童鞋的生日吧==2、AZPR 19700000-20000000 生日爆破 压缩文件,密码:19990306,得到classic0.c文件,内容是#include<stdio.h>char flag[25] = ***int main(){ int i; for(i=0;i...原创 2020-06-02 23:03:36 · 1962 阅读 · 0 评论 -
CTF-I春秋第二届春秋欢乐赛-CRYPTO-RSA256
#CTF试题 地址:https://www.ichunqiu.com/battalion?t=1&r=611072下载后有四个文件3、text打开public.key-----BEGIN PUBLIC KEY-----MDwwDQYJKoZIhvcNAQEBBQADKwAwKAIhANmelSKWptlg38JQSrpUW5RC1gp7npMK/0UceOxV1VXrAgMBAA...原创 2020-06-01 22:13:19 · 943 阅读 · 0 评论 -
CTF-BUUCTF-CRPTO-EasyProgram
1、题目有两个文件附件.txt ,不知道是什么语言,但是也以看懂get buf unsign s[256]get buf t[256]we have key:whoamiwe have flag:????????????????????????????????for i:0 to 256 set s[i]:ifor i:0 to 256 set t[i]:key[(i)mod(key.lenth)]for i:0 to 256 set j:(j+s[i]+原创 2020-06-01 18:16:17 · 691 阅读 · 0 评论 -
CTF-BUUCTF-CRPTO-[GWCTF 2019]BabyRSA
1,题目有两个文件secret和encrypt.py两个文件:secret:给出N,m1,m2encrpt.py:import hashlibimport sympyfrom Crypto.Util.number import *flag = 'GWHT{******}'secret = '******'assert(len(flag) == 38)half = len(flag) / 2flag1 = flag[:half]flag2 = flag[half:]s原创 2020-05-30 22:31:16 · 846 阅读 · 0 评论 -
CTF-BUUCTF-CRPTO-[HDCTF2019]bbbbbbrsa
1、题目有两个文件from base64 import b64encode as b32encodefrom gmpy2 import invert,gcd,irootfrom Crypto.Util.number import *from binascii import a2b_hex,b2a_heximport randomflag = "******************************"nbit = 128p = getPrime(nbit)q = getPri原创 2020-05-28 16:46:54 · 1650 阅读 · 0 评论 -
CTF-BUUCTF-CRPTO-[BJDCTF 2nd]rsa1 1
1、打开靶机:node3.buuoj.cn:27130(每次都不一样)出现e=15119633多刷新几次:(每次刷出的方程给的值都不一样)e=16503007p^2+q^2=1911464283219808177952126412151626860473576693324160912978330067861644940438472552718017787941762515475570191606656137016936484263842256318862690212431515589436.原创 2020-05-27 17:47:07 · 983 阅读 · 0 评论 -
CTF-BUUCTF-CRPTO-RSAROLL
1、n=92019713,yafu分解,或这么小的n,代码跑也是很快。得出p=49891q=184432、根据题意,Only number and a-z,可以知道,每个密文是一个字符,python跑一下。代码如下#!/usr/bin/env python# -*- coding:utf-8 -*-import gmpy2import rsa#{920139713,19}n=920139713e=19c=[704796792,752211152,274704164,.原创 2020-05-26 17:20:29 · 560 阅读 · 2 评论