当前位置:网站首页>[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_}
边栏推荐
猜你喜欢
Mutual conversion between InputStream, int, shot, long and byte arrays
外包干了四年,废了...
聊聊异步编程的 7 种实现方式
【Unity】物体做圆周运动的几个思路
Example of Pushlet using handle of Pushlet
毕设-基于SSM大学生兼职平台系统
【leetcode】1020. Number of enclaves
JSON introduction and JS parsing JSON
记一个并发规则验证实现
Outlier detection technology of time series data
随机推荐
三、高质量编程与性能调优实战 青训营笔记
Summary of customer value model (RFM) technology for data analysis
Rxjs - observable doesn't complete when an error occurs - rxjs - observable doesn't complete when an error occurs
KBU1510-ASEMI电源专用15A整流桥KBU1510
After 95, the CV engineer posted the payroll and made up this. It's really fragrant
1141_ SiCp learning notes_ Functions abstracted as black boxes
直播平台源码,可折叠式菜单栏
C language (high-level) data storage + Practice
测试周期被压缩?教你9个方法去应对
Invalid table alias or column reference`xxx`
Stockage et pratique des données en langage C (haut niveau)
微博发布案例
[performance pressure test] how to do a good job of performance pressure test?
JS get all date or time stamps between two time stamps
Advanced practice of C language (high level) pointer
记一个并发规则验证实现
二、并发、测试笔记 青训营笔记
JS plot flot application - simple curve
Tencent's one-day life
Leetcode-543. Diameter of Binary Tree