当前位置:网站首页>[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_}
边栏推荐
- Leetcode sword finger offer brush questions - day 20
- Tencent's one-day life
- 外包幹了三年,廢了...
- 科技云报道:从Robot到Cobot,人机共融正在开创一个时代
- 考研失败,卷不进大厂,感觉没戏了
- Music | cat and mouse -- classic not only plot
- A concurrent rule verification implementation
- MIPS uclibc cross compile ffmpeg, support g711a encoding and decoding
- 2022-07-06:以下go语言代码是否会panic?A:会;B:不会。 package main import “C“ func main() { var ch chan struct
- Route jump in wechat applet
猜你喜欢

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

JSON introduction and JS parsing JSON

Detailed explanation of neo4j installation process

聊聊异步编程的 7 种实现方式

深度学习花书+机器学习西瓜书电子版我找到了

毕设-基于SSM大学生兼职平台系统

MobaXterm

URP - shaders and materials - simple lit

Interviewer: what development models do you know?

About some details of final, I have something to say - learn about final CSDN creation clock out from the memory model
随机推荐
4、 High performance go language release optimization and landing practice youth training camp notes
外包干了三年,废了...
MobaXterm
[2022 CISCN]初赛 web题目复现
Software acceptance test
C language (high-level) data storage + Practice
Solve could not find or load the QT platform plugin "xcb" in "
【Unity】物体做圆周运动的几个思路
Wechat applet full stack development practice Chapter 3 Introduction and use of APIs commonly used in wechat applet development -- 3.10 tabbar component (I) how to open and use the default tabbar comp
1141_ SiCp learning notes_ Functions abstracted as black boxes
Interviewer: what development models do you know?
resource 创建包方式
微信小程序中使用wx.showToast()进行界面交互
Initial experience of teambiion network disk (Alibaba cloud network disk)
leetcode:105. 从前序与中序遍历序列构造二叉树
3、 High quality programming and performance tuning practical youth training camp notes
Summary of customer value model (RFM) technology for data analysis
考研失败,卷不进大厂,感觉没戏了
抽丝剥茧C语言(高阶)数据的储存+练习
一、Go知识查缺补漏+实战课程笔记 | 青训营笔记