当前位置:网站首页>Jarvis OJ shell流量分析
Jarvis OJ shell流量分析
2022-07-05 16:06:00 【[mzq]】
shell流量分析
题目附件 : https://dn.jarvisoj.com/challengefiles/+_+.rar.977e2c637dc492fb9a7cf7595c852044
使用strings 查找关键字 ctf 发现里面有一个python加解密脚本

用wireshark分析 tcp流中有加密解密的python2 脚本

还找到一串base64加密字符串,尝试解密得到乱码

猜测解密后用python 脚本解密

from Crypto import Random
from Crypto.Cipher import AES
import sys
import base64
def decrypt(encrypted, passphrase):
IV = encrypted[:16]
aes = AES.new(passphrase, AES.MODE_CBC, IV)
return aes.decrypt(encrypted[16:])
def encrypt(message, passphrase):
IV = message[:16]
length = 16
count = len(message)
padding = length - (count % length)
message = message + '\0' * padding
aes = AES.new(passphrase, AES.MODE_CBC, IV)
return aes.encrypt(message)
IV = 'YUFHJKVWEASDGQDH'
message = IV + 'flag is hctf{xxxxxxxxxxxxxxx}'
#print len(message)
#example = encrypt(message, 'Qq4wdrhhyEWe4qBF')
#print example
example = "mbZoEMrhAO0WWeugNjqNw3U6Tt2C+rwpgpbdWRZgfQI3MAh0sZ9qjnziUKkV90XhAOkIs/OXoYVw5uQDjVvgNA=="
example = base64.b64decode(example)
example = decrypt(example, 'Qq4wdrhhyEWe4qBF')
print example
flag is hctf{
n0w_U_w111_n0t_f1nd_me}
边栏推荐
- Win11如何给应用换图标?Win11给应用换图标的方法
- Binary tree related OJ problems
- 数据访问 - EntityFramework集成
- The difference between abstract classes and interfaces
- Fleet tutorial 09 basic introduction to navigationrail (tutorial includes source code)
- 2020-2022 two-year anniversary of creation
- [echart] resize lodash to realize chart adaptation when window is zoomed
- 10分钟帮你搞定Zabbix监控平台告警推送到钉钉群
- Record a 'very strange' troubleshooting process of cloud security group rules
- OneForAll安装使用
猜你喜欢
随机推荐
The difference between abstract classes and interfaces
[js] skill simplification if empty judgment
Summary of methods for finding intersection of ordered linked list sets
为季前卡牌游戏 MotoGP Ignition Champions 做好准备!
Query the latest record in SQL
The database of the server is not connected to 200310060 "unknown error" [the service is up, the firewall is off, the port is on, and the netlent port is not connected]
Record a 'very strange' troubleshooting process of cloud security group rules
HiEngine:可媲美本地的云原生内存数据库引擎
解决CMakeList find_package找不到Qt5,找不到ECM
Pits encountered in the use of boolean type in development
践行自主可控3.0,真正开创中国人自己的开源事业
[es6] add if judgment or ternary operator judgment in the template string
ES6 deep - ES6 class class
新春限定丨“牛年忘烦”礼包等你来领~
给自己打打气
【 brosser le titre 】 chemise culturelle de l'usine d'oies
Data access - entityframework integration
How to use FRP intranet penetration +teamviewer to quickly connect to the intranet host at home when mobile office
Global Data Center released DC brain system, enabling intelligent operation and management through science and technology
Cheer yourself up








