当前位置:网站首页>[GUET-CTF2019]虚假的压缩包
[GUET-CTF2019]虚假的压缩包
2022-07-07 04:13:00 【[mzq]】
[GUET-CTF2019]虚假的压缩包
题目地址 : https://buuoj.cn/challenges#[GUET-CTF2019]%E8%99%9A%E5%81%87%E7%9A%84%E5%8E%8B%E7%BC%A9%E5%8C%85
解压那个虚假的压缩包得到一个txt文件打开时一道rsa计算题

import gmpy2
p = 11
q = 3
n = 33
e = 3
c = 26
phi_n = (p-1)*(q-1)
d = gmpy2.invert(e,phi_n)
m = pow(c,d,n)
print(m)
解得答案等于5,压缩包密码是
答案是5
然后用crc脚本修复那张png图片的宽高,得到提示 ^5

把亦真亦假文件数据进行^5 ,得到docx文件
import struct
data = open('./亦真亦假',"r").read()
with open('flag.zip',"wb") as f:
hex_data = ""
for i in data:
hex_data += (hex(int(i,16)^5)[2:])
print(hex_data)
f.write(struct.pack("B",int(hex_data,16)))
修改字体颜色得到flag

FLAG{_th2_7ru8_2iP_}
边栏推荐
- Make a bat file for cleaning system garbage
- Mutual conversion between InputStream, int, shot, long and byte arrays
- How do I get the last part of a string- How to get the last part of a string?
- Role of virtual machine
- My ideal software tester development status
- JS get all date or time stamps between two time stamps
- Blue Bridge Cup Netizen age (violence)
- Dynamics CRM server deployment - restore database prompt: the database is in use
- Solve could not find or load the QT platform plugin "xcb" in "
- 1090: integer power (multi instance test)
猜你喜欢

【数学笔记】弧度

After 95, the CV engineer posted the payroll and made up this. It's really fragrant

MySQL service is missing from computer service

Simple example of ros2 planning system plansys2

面试结束后,被面试官在朋友圈吐槽了......

1140_ SiCp learning notes_ Use Newton's method to solve the square root

Initial experience of teambiion network disk (Alibaba cloud network disk)

I failed in the postgraduate entrance examination and couldn't get into the big factory. I feel like it's over

Redis data migration

4、 High performance go language release optimization and landing practice youth training camp notes
随机推荐
[semantic segmentation] - multi-scale attention
How to reduce inventory with high concurrency on the Internet
深度学习花书+机器学习西瓜书电子版我找到了
I failed in the postgraduate entrance examination and couldn't get into the big factory. I feel like it's over
Differences between H5 architecture and native architecture
面试官:你都了解哪些开发模型?
Example of Pushlet using handle of Pushlet
URP - shaders and materials - simple lit
KBU1510-ASEMI电源专用15A整流桥KBU1510
ASEMI整流桥RS210参数,RS210规格,RS210封装
1142_ SiCp learning notes_ Functions and processes created by functions_ Linear recursion and iteration
[Linux] process control and parent-child processes
Jenkins远程构建项目超时的问题
1、 Go knowledge check and remedy + practical course notes youth training camp notes
A concurrent rule verification implementation
Make a bat file for cleaning system garbage
测试周期被压缩?教你9个方法去应对
JSON introduction and JS parsing JSON
[2022 ACTF]web题目复现
L'étape avancée du pointeur de langage C (haut de gamme) pour l'enroulement des cocons