当前位置:网站首页>BUUCTF-Dangerous RSA
BUUCTF-Dangerous RSA
2022-07-27 21:07:00 【[email protected]】
1.题目代码:
#n: 0x52d483c27cd806550fbe0e37a61af2e7cf5e0efb723dfc81174c918a27627779b21fa3c851e9e94188eaee3d5cd6f752406a43fbecb53e80836ff1e185d3ccd7782ea846c2e91a7b0808986666e0bdadbfb7bdd65670a589a4d2478e9adcafe97c6ee23614bcb2ecc23580f4d2e3cc1ecfec25c50da4bc754dde6c8bfd8d1fc16956c74d8e9196046a01dc9f3024e11461c294f29d7421140732fedacac97b8fe50999117d27943c953f18c4ff4f8c258d839764078d4b6ef6e8591e0ff5563b31a39e6374d0d41c8c46921c25e5904a817ef8e39e5c9b71225a83269693e0b7e3218fc5e5a1e8412ba16e588b3d6ac536dce39fcdfce81eec79979ea6872793L
#e: 0x3
#c:0x10652cdfaa6b63f6d7bd1109da08181e500e5643f5b240a9024bfa84d5f2cac9310562978347bb232d63e7289283871efab83d84ff5a7b64a94a79d34cfbd4ef121723ba1f663e514f83f6f01492b4e13e1bb4296d96ea5a353d3bf2edd2f449c03c4a3e995237985a596908adc741f32365
so,how to get the message?2.复现:
import gmpy2
import libnum
import random
import hashlib
n=0x52d483c27cd806550fbe0e37a61af2e7cf5e0efb723dfc81174c918a27627779b21fa3c851e9e94188eaee3d5cd6f752406a43fbecb53e80836ff1e185d3ccd7782ea846c2e91a7b0808986666e0bdadbfb7bdd65670a589a4d2478e9adcafe97c6ee23614bcb2ecc23580f4d2e3cc1ecfec25c50da4bc754dde6c8bfd8d1fc16956c74d8e9196046a01dc9f3024e11461c294f29d7421140732fedacac97b8fe50999117d27943c953f18c4ff4f8c258d839764078d4b6ef6e8591e0ff5563b31a39e6374d0d41c8c46921c25e5904a817ef8e39e5c9b71225a83269693e0b7e3218fc5e5a1e8412ba16e588b3d6ac536dce39fcdfce81eec79979ea6872793
e=0x3
c=0x10652cdfaa6b63f6d7bd1109da08181e500e5643f5b240a9024bfa84d5f2cac9310562978347bb232d63e7289283871efab83d84ff5a7b64a94a79d34cfbd4ef121723ba1f663e514f83f6f01492b4e13e1bb4296d96ea5a353d3bf2edd2f449c03c4a3e995237985a596908adc741f32365
m=gmpy2.iroot(c,e)
print(m)
#(mpz(13040004482819713819817340524563023159919305047824600478799740488797710355579494486728991357), True)
print(libnum.n2s(13040004482819713819817340524563023159919305047824600478799740488797710355579494486728991357))
#b'flag{25df8caf006ee5db94d48144c33b2c3b}'版权声明
本文为[[email protected]]所创,转载请带上原文链接,感谢
https://blog.csdn.net/qq_61774705/article/details/124674124
边栏推荐
- Error:svn: E155010: ‘/Users/.../Desktop/wrokspace/xxx‘ is scheduled for addition, but is missing
- CaEGCN: Cross-Attention Fusion based Enhanced Graph Convolutional Network for Clustering 2021
- This is the most concise guide to tcpdump in history. It's enough to read this one
- Figure basic knowledge code
- NDK series (6): let's talk about the way and time to register JNI functions
- Introduction to several common usage scenarios of message queue
- 疫情之下,台积电一季度增长超预期,7nm占比35%!二季度或创新高
- The print version of imeta | international standard ISSN is officially confirmed, and the application for dual ISSN is completed
- Nail alarm tool
- Socket interaction process of three handshakes
猜你喜欢

【12月海口】2022年第六届船舶,海洋与海事工程国际会议(NAOME 2022)

给网站套上Cloudflare(以腾讯云为例)

TCP的粘包拆包问题+解决方案

数据管理的重点
![[December Haikou] the 6th International Conference on ships, marine and Maritime Engineering in 2022 (naome 2022)](/img/a4/041268aadd5d8ff493b52ead9c5e79.png)
[December Haikou] the 6th International Conference on ships, marine and Maritime Engineering in 2022 (naome 2022)

NDK series (6): let's talk about the way and time to register JNI functions

Common Taylor expansion

基于原生js实现今日新闻网站

JUC工具包学习

The technology of applet container is very promising, which can greatly improve the efficiency of mobile R & D
随机推荐
Remotely debug idea, configure remote debug, and add JVM startup parameter -xdebug in the program of remote server
TOGAF10标准读书会首场活动圆满举办,精彩时刻回顾!
进制转换方法
硬布线控制器的特点:
The total investment is 60billion! Foxconn semiconductor high-end package test project officially settled in Qingdao
Figure basic knowledge code
Explain the idempotence of distributed system in detail
加速IGBT国产化!比亚迪半导体将独立上市,市值或达300亿元!
史上最简明的 Tcpdump 入门指南,看这一篇就够了
QT with OpenGL(Shadow Mapping)(平行光篇)
J9数字科普:Sui网络的双共识是如何工作的?
In 2019, the world's top ten semiconductor manufacturers: Intel returned to the first place, and apple rose sharply against the trend
给网站套上Cloudflare(以腾讯云为例)
sort排序
主数据管理理论与实践
2022 summer vacation daily question (5)
Nail alarm tool
Join hands with Changjiang storage, jiangbolong launches the world's smallest expansion card
NDK 系列(6):说一下注册 JNI 函数的方式和时机
smartRefresh嵌套多个RecycleView滑动冲突及布局显示不全