当前位置:网站首页>BUU-CTF basic rsa
BUU-CTF basic rsa
2022-07-27 21:07:00 【[email protected]】
1.题目代码:
import gmpy2
from Crypto.Util.number import *
from binascii import a2b_hex,b2a_hex
flag = "*****************"
p = 262248800182277040650192055439906580479
q = 262854994239322828547925595487519915551
e = 65533
n = p*q
c = pow(int(b2a_hex(flag),16),e,n)
print c
# 27565231154623519221597938803435789010285480123476977081867877272451638645710
2.复现
import gmpy2
import libnum
from Crypto.Util.number import *
from binascii import a2b_hex,b2a_hex
flag = "*****************"
p = 262248800182277040650192055439906580479
q = 262854994239322828547925595487519915551
c=27565231154623519221597938803435789010285480123476977081867877272451638645710
e = 65533
n = p*q
phi=(p-1)*(q-1)
d=gmpy2.invert(e,phi)
m=pow(c,d,n)
print(libnum.n2s(int(m)))
# flag{B4by_Rs4}版权声明
本文为[[email protected]]所创,转载请带上原文链接,感谢
https://blog.csdn.net/qq_61774705/article/details/124674090
边栏推荐
- The total investment is 60billion! Foxconn semiconductor high-end package test project officially settled in Qingdao
- 你的列表很卡?这4个优化能让你的列表丝般顺滑
- My annual salary is 1million, and I don't have clothes more than 100 yuan all over my body: saving money is the top self-discipline
- 实现按照序号命名的txt文件由后往前递补重命名文件
- Record the errors about formatc in R language
- Redis 哈希Hash底层数据结构
- 消息队列常见的几种使用场景介绍
- 面试官问线程安全的List,看完再也不怕了!
- Introduction to several common usage scenarios of message queue
- Explain the idempotence of distributed system in detail
猜你喜欢

Realize today's news website based on native JS

The first activity of togaf10 standard reading club was successfully held, and the wonderful moments were reviewed!

Nature review: preferential effects in the formation of microbial communities

29.学习Highcharts 使用百分比的堆叠柱形图

Is it really hard to understand? What level of cache is the recyclerview caching mechanism?

Spark 离线开发框架设计与实现

消息队列常见的几种使用场景介绍

Redis hash underlying data structure
![[RoarCTF2019]babyRSA威尔逊定理](/img/c1/52e79b6e40390374d48783725311ba.gif)
[RoarCTF2019]babyRSA威尔逊定理

Technical certification | Tupo software and Huawei cloud create a new situation of win-win cooperation
随机推荐
15million per day! BYD masks won a US $1billion order in California
Shuffle, partition and read of tfrecord
Solve 5g pain points, Meizu 17 smart 5g fast and stable technology release
[GWCTF 2019]BabyRSA1
In 2019, the world's top ten semiconductor manufacturers: Intel returned to the first place, and apple rose sharply against the trend
加速IGBT国产化!比亚迪半导体将独立上市,市值或达300亿元!
Can Siemens PLC collect analog data of multiple slave stations in real time and wirelessly?
JS array copy speed test 220320
苹果发布新款iPhone SE:搭载A13仿生处理器,售价3299元起
详解分布式系统的幂等
突发,微信重要通知
ZCMU--1720: 死亡如风,我要装逼
史上最简明的 Tcpdump 入门指南,看这一篇就够了
实现按照序号命名的txt文件由后往前递补重命名文件
Lua基础语法学习
如果我们是那晚负责修复 B 站崩了的开发人员
(十二)51单片机----用DS18B20浅测一下工(江)西的室外温度
Common Taylor expansion
新技术引领大中型企业营销新变革,用友BIP CRM重磅发布!
Redis hash underlying data structure