当前位置:网站首页>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
边栏推荐
- 总投资600亿!富士康半导体高端封测项目正式落户青岛
- The first activity of togaf10 standard reading club was successfully held, and the wonderful moments were reviewed!
- CaEGCN: Cross-Attention Fusion based Enhanced Graph Convolutional Network for Clustering 2021
- 2022夏暑假每日一题(五)
- [NCTF2019]babyRSA1
- 疫情之下,台积电一季度增长超预期,7nm占比35%!二季度或创新高
- 2022/7/26
- 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
- 西门子PLC能否实时无线采集多处从站模拟量数据?
- 15million per day! BYD masks won a US $1billion order in California
猜你喜欢

File & recursion 14.1

Interviewer: let's talk about the specific process of network data transmission

TOGAF10标准读书会首场活动圆满举办,精彩时刻回顾!

Redis 哈希Hash底层数据结构

2022夏暑假每日一题(五)

Nature review: preferential effects in the formation of microbial communities

基于mediapipe的姿态识别和简单行为识别

The technology of applet container is very promising, which can greatly improve the efficiency of mobile R & D
![[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)
![[RoarCTF2019]babyRSA威尔逊定理](/img/c1/52e79b6e40390374d48783725311ba.gif)
[RoarCTF2019]babyRSA威尔逊定理
随机推荐
2022 summer vacation daily question (5)
Using the optical fingerprint scheme under the huiding screen, Samsung Galaxy a71 5g is listed
Redis的分布式锁
Your list is too laggy? These four optimizations can make your list silky smooth
[ACTF新生赛2020]crypto-aes
Realization of gobang man-machine combat
Under the epidemic, TSMC's growth in the first quarter exceeded expectations, with 7Nm accounting for 35%! Second quarter or record high
Explain the idempotence of distributed system in detail
虚拟存储器与Cache的比较
Can Siemens PLC collect analog data of multiple slave stations in real time and wirelessly?
29.学习Highcharts 使用百分比的堆叠柱形图
2022/7/24-7/25
C#委托用法--控制台项目,通过委托实现事件
技术认证 | 图扑软件携手华为云再创合作共赢新局面
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: un
Comparison between virtual memory and cache
The total investment is 60billion! Foxconn semiconductor high-end package test project officially settled in Qingdao
The txt file named according to the sequence number is renamed from the back to the front
JUC toolkit learning
Design and implementation of spark offline development framework