摘要: 心血来潮想整理一下RSA来着,忽然想到la佬的这篇就当收藏了,la佬勿怪qaq! 常用工具 分解大素数 factordb (http://www.factordb.com) yafu(p,q相差过大或过小yafu可分解成功) sage (divisors(n))(小素数) Pollard’s p−1 阅读全文
posted @ 2021-11-11 23:52 404p3rs0n 阅读(1664) 评论(0) 推荐(2) 编辑
摘要: mostlycommom task.py: from Crypto.Util.number import bytes_to_long, getPrime f = open('flag.txt', 'rb') flag = f.read() f.close() m = bytes_to_long(fl 阅读全文
posted @ 2021-11-08 18:21 404p3rs0n 阅读(232) 评论(0) 推荐(0) 编辑
摘要: dssssa1 附件下载得到的encode脚本: from Crypto.Util.number import * import random from gmpy2 import * from hashlib import sha1 from secret import flag m = bytes 阅读全文
posted @ 2021-11-05 18:16 404p3rs0n 阅读(678) 评论(0) 推荐(0) 编辑
摘要: emmmmm,暴打出题人,预赛和决赛就只会签到QAQ!!! Web 远古特性 <?php // Present from glzjin :) highlight_file(__FILE__); $file = $_GET['file']; if(preg_match('/^hint\/hint.tx 阅读全文
posted @ 2021-11-01 17:32 404p3rs0n 阅读(402) 评论(0) 推荐(0) 编辑
摘要: 二进制幂数解码 a="8842101220480224404014224202480122" #分隔 a=a.split("0") print(a) flag='' #遍历 for i in a: list=[] sum=0 for j in range(len(i)): sum +=int(i[j 阅读全文
posted @ 2021-10-25 17:52 404p3rs0n 阅读(438) 评论(0) 推荐(0) 编辑
摘要: 密文直输版 ciphertxt = '1212 1230 1201 1213 1323 1012 1233 1311 1302 1202 1201 1303 1211 301 302 303 1331' c = ciphertxt.split(' ') flag = '' for i in c: t 阅读全文
posted @ 2021-10-25 17:50 404p3rs0n 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 题目链接 多少离怀起清夜,人间重望一回圆。 Weird Γ(x).py: # -*- coding:utf-8 -*- #Author: Lazzaro from Crypto.Util.number import getPrime,isPrime from math import gamma im 阅读全文
posted @ 2021-10-20 19:39 404p3rs0n 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 题目链接 加密脚本Baby(Don't)Cry.py: # -*- coding:utf-8 -*- #Author: Lazzaro from itertools import * from random import * from string import * def encrypt(m, a 阅读全文
posted @ 2021-10-19 18:10 404p3rs0n 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 下载附件得到内容 fsskryenvkm~jl{ejs}jwflzsnpgmifq{{j{|suhzrjppnx|qvixt~whu 自动钥匙⊕ 明文全大写,得到后转小写,并以_连接单词。 题目hint: 某古典密码 经此古典密码加密后,密文还是大写 该古典密码的密钥形式:keyword+plain 阅读全文
posted @ 2021-10-18 18:41 404p3rs0n 阅读(161) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2021-10-16 17:31 404p3rs0n 阅读(0) 评论(0) 推荐(0) 编辑