当前位置:网站首页>BUU-Crypto-[HDCTF2019]basic rsa
BUU-Crypto-[HDCTF2019]basic rsa
2022-07-04 05:26:00 【Seven pansy ink year】
[HDCTF2019]basic rsa
Title Description : Got flag Please wrap it flag{} Submit .
The problem solving steps : Open the attachment python file
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
The title gives p,q,e,c,c Namely # The number after :
27565231154623519221597938803435789010285480123476977081867877272451638645710 了 , Equivalent to known p,q,e,c,n, seek M that will do
exp as follows :
import gmpy2
import libnum
p = 262248800182277040650192055439906580479
q = 262854994239322828547925595487519915551
e = 65533
n = p * q
c = 27565231154623519221597938803435789010285480123476977081867877272451638645710
phi = (p - 1) * (q - 1)
d = gmpy2.invert(e, phi)
M = pow(c, d, n)
print libnum.n2s(M)
Run to get results flag
flag:flag{B4by_Rs4}
边栏推荐
- [matlab] general function of communication signal modulation Fourier transform
- A summary of the 8544 problem that SolidWorks Standard cannot obtain a license
- Ping port artifact psping
- Talk about the SQL server version of DTM sub transaction barrier function
- [technology development -25]: integration technology of radio and television network, Internet, telecommunication network and power grid
- JS string splicing
- Flask
- Simple g++ and GDB debugging
- Zhongke Panyun - data analysis and forensics packet flag
- 中科磐云—数据分析与取证数据包flag
猜你喜欢

LabVIEW错误对话框的出现

Integer type of C language
![[high concurrency, high performance and high availability of massive data MySQL practice-7] - memory data drop disk](/img/b9/cf4db4f8a5d2ef3fb344258f0e30f5.jpg)
[high concurrency, high performance and high availability of massive data MySQL practice-7] - memory data drop disk
![[technology development -25]: integration technology of radio and television network, Internet, telecommunication network and power grid](/img/87/e0469e280365ed0261e2b551ebd888.png)
[technology development -25]: integration technology of radio and television network, Internet, telecommunication network and power grid

Simulink and Arduino serial port communication

Capturing and sorting out external Fiddler -- Conversation bar and filter

What is MQ?

Flask

LM小型可编程控制器软件(基于CoDeSys)笔记二十二:错误4268/4052

NTFS security permissions
随机推荐
Character types of C language
National vocational college skills competition (secondary vocational group) network security competition questions - Analysis
Useful plug-ins for vscode
Simulated small root pile
IP时代来临,电竞酒店如何借好游戏的“东风”?
Simulink与Arduino串口通信
总线的基本概念
When using flash to store parameters, the code area of flash is erased, which leads to the interrupt of entering hardware error
Zhongke panyun-d module analysis and scoring standard
Daily question brushing record (12)
练习-冒泡排序
2022 t elevator repair operation certificate examination question bank and simulation examination
Flink1.13 basic SQL syntax (II) join operation
Rollup各组件作用
SQL performance optimization skills
Encryption and decryption
724. 寻找数组的中心下标
远程桌面客户端 RDP
Fault analysis | mongodb 5.0 reports an error, and the legal instruction solves it
RSA加密应用常见缺陷的原理与实践