摘要:
心血来潮想整理一下RSA来着,忽然想到la佬的这篇就当收藏了,la佬勿怪qaq! 常用工具 分解大素数 factordb (http://www.factordb.com) yafu(p,q相差过大或过小yafu可分解成功) sage (divisors(n))(小素数) Pollard’s p−1 阅读全文
摘要:
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 阅读全文
摘要:
dssssa1 附件下载得到的encode脚本: from Crypto.Util.number import * import random from gmpy2 import * from hashlib import sha1 from secret import flag m = bytes 阅读全文
摘要:
emmmmm,暴打出题人,预赛和决赛就只会签到QAQ!!! Web 远古特性 <?php // Present from glzjin :) highlight_file(__FILE__); $file = $_GET['file']; if(preg_match('/^hint\/hint.tx 阅读全文
摘要:
二进制幂数解码 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 阅读全文
摘要:
密文直输版 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 阅读全文
摘要:
题目链接 多少离怀起清夜,人间重望一回圆。 Weird Γ(x).py: # -*- coding:utf-8 -*- #Author: Lazzaro from Crypto.Util.number import getPrime,isPrime from math import gamma im 阅读全文
摘要:
题目链接 加密脚本Baby(Don't)Cry.py: # -*- coding:utf-8 -*- #Author: Lazzaro from itertools import * from random import * from string import * def encrypt(m, a 阅读全文
摘要:
下载附件得到内容 fsskryenvkm~jl{ejs}jwflzsnpgmifq{{j{|suhzrjppnx|qvixt~whu 自动钥匙⊕ 明文全大写,得到后转小写,并以_连接单词。 题目hint: 某古典密码 经此古典密码加密后,密文还是大写 该古典密码的密钥形式:keyword+plain 阅读全文