当前位置:网站首页>BUU-Crypto-[GUET-CTF2019]BabyRSA
BUU-Crypto-[GUET-CTF2019]BabyRSA
2022-07-04 05:26:00 【Seven pansy ink year】
[GUET-CTF2019]BabyRSA
Title Description : Got flag Please wrap it flag{} Submit .
The problem solving steps : Open attachment to find data
p+q : 0x1232fecb92adead91613e7d9ae5e36fe6bb765317d6ed38ad890b4073539a6231a6620584cea5730b5af83a3e80cf30141282c97be4400e33307573af6b25e2ea
(p+1)(q+1) : 0x5248becef1d925d45705a7302700d6a0ffe5877fddf9451a9c1181c4d82365806085fd86fbaab08b6fc66a967b2566d743c626547203b34ea3fdb1bc06dd3bb765fd8b919e3bd2cb15bc175c9498f9d9a0e216c2dde64d81255fa4c05a1ee619fc1fc505285a239e7bc655ec6605d9693078b800ee80931a7a0c84f33c851740
e : 0xe6b1bee47bd63f615c7d0a43c529d219
d : 0x2dde7fbaed477f6d62838d55b0d0964868cf6efb2c282a5f13e6008ce7317a24cb57aec49ef0d738919f47cdcd9677cd52ac2293ec5938aa198f962678b5cd0da344453f521a69b2ac03647cdd8339f4e38cec452d54e60698833d67f9315c02ddaa4c79ebaa902c605d7bda32ce970541b2d9a17d62b52df813b2fb0c5ab1a5
enc_flag : 0x50ae00623211ba6089ddfae21e204ab616f6c9d294e913550af3d66e85d0c0693ed53ed55c46d8cca1d7c2ad44839030df26b70f22a8567171a759b76fe5f07b3c5a6ec89117ed0a36c0950956b9cde880c575737f779143f921d745ac3bb0e379c05d9a3cc6bf0bea8aa91e4d5e752c7eb46b2e023edbc07d24a7c460a34a9a
Known topics are given in the attachment p+q,(p+1)(q+1),e,d,c, Can pass p+q,(p+1)(q+1) Find out n,n=pq, namely n=(p+1)(q+1)-(p+q)-1, Here we are , obtain n,e,d,c, seek M
exp as follows :
import gmpy2
import libnum
a = 0x1232fecb92adead91613e7d9ae5e36fe6bb765317d6ed38ad890b4073539a6231a6620584cea5730b5af83a3e80cf30141282c97be4400e33307573af6b25e2ea
b = 0x5248becef1d925d45705a7302700d6a0ffe5877fddf9451a9c1181c4d82365806085fd86fbaab08b6fc66a967b2566d743c626547203b34ea3fdb1bc06dd3bb765fd8b919e3bd2cb15bc175c9498f9d9a0e216c2dde64d81255fa4c05a1ee619fc1fc505285a239e7bc655ec6605d9693078b800ee80931a7a0c84f33c851740
e = 0xe6b1bee47bd63f615c7d0a43c529d219
d = 0x2dde7fbaed477f6d62838d55b0d0964868cf6efb2c282a5f13e6008ce7317a24cb57aec49ef0d738919f47cdcd9677cd52ac2293ec5938aa198f962678b5cd0da344453f521a69b2ac03647cdd8339f4e38cec452d54e60698833d67f9315c02ddaa4c79ebaa902c605d7bda32ce970541b2d9a17d62b52df813b2fb0c5ab1a5
enc_flag = 0x50ae00623211ba6089ddfae21e204ab616f6c9d294e913550af3d66e85d0c0693ed53ed55c46d8cca1d7c2ad44839030df26b70f22a8567171a759b76fe5f07b3c5a6ec89117ed0a36c0950956b9cde880c575737f779143f921d745ac3bb0e379c05d9a3cc6bf0bea8aa91e4d5e752c7eb46b2e023edbc07d24a7c460a34a9a
n = b-a-1
M = pow(enc_flag, d, n)
print libnum.n2s(M)
Results of operation 
flag:flag{cc7490e-78ab-11e9-b422-8ba97e5da1fd}
边栏推荐
- 【QT】定时器
- A summary of the 8544 problem that SolidWorks Standard cannot obtain a license
- When using flash to store parameters, the code area of flash is erased, which leads to the interrupt of entering hardware error
- [technology development -25]: integration technology of radio and television network, Internet, telecommunication network and power grid
- 2022 a special equipment related management (elevator) examination questions simulation examination platform operation
- [matlab] matlab simulation - narrow band Gaussian white noise
- 724. 寻找数组的中心下标
- What is MQ?
- LM small programmable controller software (based on CoDeSys) note XXI: error 3703
- Customize a pager needed in your project
猜你喜欢

NTFS security permissions

Trie number dictionary tree

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

Download kicad on Alibaba cloud image station

【QT】制作MyComboBox点击事件

Evolution of system architecture: differences and connections between SOA and microservice architecture

空洞卷积、可变形卷积、可变形ROI Pooling

19.Frambuffer应用编程

Sécurité du réseau dans les écoles professionnelles secondaires - preuve de mémoire

Fault analysis | mongodb 5.0 reports an error, and the legal instruction solves it
随机推荐
2022年T电梯修理操作证考试题库及模拟考试
基于单片机的太阳能杀虫系统
Two sides of the evening: tell me about the bloom filter and cuckoo filter? Application scenario? I'm confused..
[matlab] matlab simulation of modulation system - power spectrum and coherent demodulation of AM modulated signal
Public inputs in appliedzkp zkevm (13)
Simple g++ and GDB debugging
1480. 一维数组的动态和
Daily question brushing record (12)
FreeRTOS 中 RISC-V-Qemu-virt_GCC 的 锁机制 分析
Analysis of classical pointer and array written test questions in C language
Enterprise level log analysis system elk (if things backfire, there must be other arrangements)
Flutter ‘/usr/lib/libswiftCore. dylib‘ (no such file)
Nodejs learning document
[matlab] matlab simulation - low pass Gaussian white noise
Headache delayed double deletion
JS string splicing enhancement
[technology development -25]: integration technology of radio and television network, Internet, telecommunication network and power grid
Useful plug-ins for vscode
TCP状态转换图
Unity is connected to the weather system