当前位置:网站首页>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}
边栏推荐
- Pspnet | semantic segmentation and scene analysis
- Solve the Hanoi Tower problem [modified version]
- HiEngine:可媲美本地的云原生内存数据库引擎
- 漫画:什么是蓝绿部署?
- 求解汉诺塔问题【修改版】
- Single merchant v4.4 has the same original intention and strength!
- 利用GrayLog告警功能实现钉钉群机器人定时工作提醒
- Use of set tag in SQL
- Dare not buy thinking
- Seaborn draws 11 histograms
猜你喜欢

ES6 deep - ES6 class class

Seaborn绘制11个柱状图

Flet教程之 11 Row组件在水平数组中显示其子项的控件 基础入门(教程含源码)

The new version of effect editor is online! 3D rendering, labeling, and animation, this time an editor is enough

Research and development efficiency measurement index composition and efficiency measurement methodology

【组队 PK 赛】本周任务已开启 | 答题挑战,夯实商品详情知识

【学术相关】多位博士毕业去了三四流高校,目前惨不忍睹……

文件操作--I/O

今日睡眠质量记录79分

Data Lake (XIV): spark and iceberg integrated query operation
随机推荐
Win11提示无法安全下载软件怎么办?Win11无法安全下载软件
Transaction rollback exception
Desci: is decentralized science the new trend of Web3.0?
APICloud云调试解决方案
The difference between searching forward index and inverted index
单商户 V4.4,初心未变,实力依旧!
[es6] add if judgment or ternary operator judgment in the template string
CISP-PTE之PHP伪协议总结
[echart] resize lodash 实现窗口缩放时图表自适应
践行自主可控3.0,真正开创中国人自己的开源事业
sqlserver 做cdc 要对数据库性能有什么要求么
给自己打打气
Win11如何给应用换图标?Win11给应用换图标的方法
Clear restore the scene 31 years ago, volcanic engine ultra clear repair beyond classic concert
Flet教程之 11 Row组件在水平数组中显示其子项的控件 基础入门(教程含源码)
数据访问 - EntityFramework集成
搜索 正排索引 和 倒排索引 区别
Enter a command with the keyboard
2020-2022两周年创作纪念日
国泰君安网上开户安全吗