当前位置:网站首页>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}
边栏推荐
- Useful plug-ins for vscode
- Get the ID of the record just inserted from laravel
- We believe that the development of consumer Internet will still be limited to the Internet industry itself
- 724. 寻找数组的中心下标
- 【QT】制作MyComboBox点击事件
- [matlab] communication signal modulation general function - low pass filter
- Simulink与Arduino串口通信
- Flink1.13 basic SQL syntax (II) join operation
- C语言简易学生管理系统(含源码)
- 【雕爷学编程】Arduino动手做(105)---压电陶瓷振动模块
猜你喜欢

VB.net 简单的处理图片,黑白(类库——7)

2022年T电梯修理操作证考试题库及模拟考试
![[paper summary] zero shot semantic segmentation](/img/78/ee64118d86a7e43ec4d1cb97191fbe.jpg)
[paper summary] zero shot semantic segmentation

Daily question brushing record (12)

724. 寻找数组的中心下标

Simulink与Arduino串口通信

Flutter ‘/usr/lib/libswiftCore. dylib‘ (no such file)

Simulink and Arduino serial port communication

Two sides of the evening: tell me about the bloom filter and cuckoo filter? Application scenario? I'm confused..

A summary of the 8544 problem that SolidWorks Standard cannot obtain a license
随机推荐
[paper summary] zero shot semantic segmentation
Zhongke Panyun - 2022 Guangxi reverse analysis ideas
ping端口神器psping
Unity is connected to the weather system
Redis realizes ranking function
Capturing and sorting out external Fiddler -- Conversation bar and filter
(4) Canal multi instance use
JS string splicing enhancement
空洞卷积、可变形卷积、可变形ROI Pooling
Easy change
flink1.13 sql基础语法(一)DDL、DML
With the advent of the IP era, how can E-sports hotels take advantage of the "east wind" of games?
[matlab] communication signal modulation general function - low pass filter
Zhongke Panyun - data analysis and forensics packet flag
FreeRTOS 中 RISC-V-Qemu-virt_GCC 的 锁机制 分析
Enterprise level log analysis system elk (if things backfire, there must be other arrangements)
Zkevm (12) state proof of appliedzkp
[matlab] matlab simulates digital bandpass transmission system ask, PSK, FSK system
【QT】定时器
Simulated small root pile