当前位置:网站首页>[guess-ctf2019] fake compressed packets
[guess-ctf2019] fake compressed packets
2022-07-07 07:43:00 【[mzq]】
[GUET-CTF2019] Fake compressed packets
Title address : https://buuoj.cn/challenges#[GUET-CTF2019]%E8%99%9A%E5%81%87%E7%9A%84%E5%8E%8B%E7%BC%A9%E5%8C%85
Unzip the fake package and get a txt When the file is opened rsa Calculation questions
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)
The answer is equal to 5, The zip code is
The answer is 5
And then use crc Script repair that one png The width and height of the picture , Get a hint ^5
Analyze the true and false document data ^5 , obtain docx file
import struct
data = open('./ True or false ',"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)))
Modify the font color to get flag
FLAG{_th2_7ru8_2iP_}
边栏推荐
- 【数学笔记】弧度
- [ANSYS] learning experience of APDL finite element analysis
- 【斯坦福计网CS144项目】Lab3: TCPSender
- 【leetcode】1020. Number of enclaves
- @component(““)
- Idea add class annotation template and method template
- pytorch 参数初始化
- C language (high-level) data storage + Practice
- IO流 file
- Initial experience of teambiion network disk (Alibaba cloud network disk)
猜你喜欢
MobaXterm
ASEMI整流桥RS210参数,RS210规格,RS210封装
@component(““)
Implementing data dictionary with JSP custom tag
记一个并发规则验证实现
1140_ SiCp learning notes_ Use Newton's method to solve the square root
外包幹了三年,廢了...
My ideal software tester development status
【leetcode】1020. Number of enclaves
How can a 35 year old programmer build a technological moat?
随机推荐
【斯坦福计网CS144项目】Lab3: TCPSender
Model application of time series analysis - stock price prediction
[performance pressure test] how to do a good job of performance pressure test?
Six methods of flattening arrays with JS
[ANSYS] learning experience of APDL finite element analysis
1141_ SiCp learning notes_ Functions abstracted as black boxes
IO流 file
The metauniverse of the platofarm farm continues to expand, with Dao governance as the core
L'externalisation a duré trois ans.
leanote私有云笔记搭建
为什么要了解现货黄金走势?
Music | cat and mouse -- classic not only plot
vus. Precautions for SSR requesting data in asyndata function
[semantic segmentation] - multi-scale attention
What is the difference between TCP and UDP?
JS plot flot application - simple curve
[P2P] local packet capturing
3、 High quality programming and performance tuning practical youth training camp notes
nacos
The configuration that needs to be modified when switching between high and low versions of MySQL 5-8 (take aicode as an example here)