当前位置:网站首页>[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_}
边栏推荐
- Blue Bridge Cup Netizen age (violence)
- 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
- Outsourcing for three years, abandoned
- Causes and solutions of oom (memory overflow)
- How to reduce inventory with high concurrency on the Internet
- Several important steps to light up the display
- 为什么要了解现货黄金走势?
- Solve could not find or load the QT platform plugin "xcb" in "
- Procedure in PostgreSQL supports transaction syntax (instance & Analysis)
- After the interview, the interviewer roast in the circle of friends
猜你喜欢

抽絲剝繭C語言(高階)數據的儲存+練習

Sqlmap tutorial (IV) practical skills three: bypass the firewall

Detailed explanation of neo4j installation process

Jenkins远程构建项目超时的问题

外包干了四年,废了...

ROS2规划系统plansys2简单的例子

面试官:你都了解哪些开发模型?

JSON introduction and JS parsing JSON

07_ Handout on the essence and practical skills of text measurement and geometric transformation

1141_ SiCp learning notes_ Functions abstracted as black boxes
随机推荐
Detailed explanation of neo4j installation process
[semantic segmentation] - multi-scale attention
外包干了四年,废了...
在线直播系统源码,使用ValueAnimator实现view放大缩小动画效果
1142_ SiCp learning notes_ Functions and processes created by functions_ Linear recursion and iteration
vus.SSR在asynData函数中请求数据的注意事项
My ideal software tester development status
Several important steps to light up the display
resource 创建包方式
MobaXterm
計算機服務中缺失MySQL服務
Differences between H5 architecture and native architecture
电商常规问题part1
I failed in the postgraduate entrance examination and couldn't get into the big factory. I feel like it's over
Advanced practice of C language (high level) pointer
面试官:你都了解哪些开发模型?
抽絲剝繭C語言(高階)數據的儲存+練習
How to reduce inventory with high concurrency on the Internet
About some details of final, I have something to say - learn about final CSDN creation clock out from the memory model
MySQL service is missing from computer service