当前位置:网站首页>[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_}
边栏推荐
- Jenkins远程构建项目超时的问题
- [semantic segmentation] - multi-scale attention
- [cloud native] how to give full play to memory advantage of memory database
- Summary of customer value model (RFM) technology for data analysis
- Causes and solutions of oom (memory overflow)
- Convolutional neural network -- understanding of pooling
- Calculus key and difficult points record part integral + trigonometric function integral
- Project practice five fitting straight lines to obtain the center line
- Flexible layout (II)
- 07_ Handout on the essence and practical skills of text measurement and geometric transformation
猜你喜欢
随机推荐
Implementing data dictionary with JSP custom tag
How to reduce inventory with high concurrency on the Internet
242. Bipartite graph determination
1、 Go knowledge check and remedy + practical course notes youth training camp notes
gslx680触摸屏驱动源码码分析(gslX680.c)
Model application of time series analysis - stock price prediction
IPv4 exercises
1140_ SiCp learning notes_ Use Newton's method to solve the square root
Mobx knowledge point collection case (quick start)
JS plot flot application - simple curve
考研失败,卷不进大厂,感觉没戏了
Blue Bridge Cup Netizen age (violence)
基于Flask搭建个人网站
../ And/
Differences between H5 architecture and native architecture
Cloud backup project
知识点滴 - 关于苹果认证MFI
How do I get the last part of a string- How to get the last part of a string?
The annual salary of general test is 15W, and the annual salary of test and development is 30w+. What is the difference between the two?
1089: highest order of factorial







