当前位置:网站首页>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}
边栏推荐
猜你喜欢

Reduce the cost by 40%! Container practice of redis multi tenant cluster

Pspnet | semantic segmentation and scene analysis

解决CMakeList find_package找不到Qt5,找不到ECM

CISP-PTE之PHP伪协议总结

Parameter type setting error during batch update in project SQL

Flet教程之 12 Stack 重叠组建图文混合 基础入门(教程含源码)

CISP-PTE之SQL注入(二次注入的应用)
英特尔第13代Raptor Lake处理器信息曝光:更多核心 更大缓存

Seaborn draws 11 histograms

迁移/home分区
随机推荐
清晰还原31年前现场,火山引擎超清修复Beyond经典演唱会
yarn 常用命令
[graduation season] as a sophomore majoring in planning, I have something to say
Cheer yourself up
[js] skill simplification if empty judgment
Quelques réflexions cognitives
Solve the Hanoi Tower problem [modified version]
Explain in detail the functions and underlying implementation logic of the groups sets statement in SQL
Query the latest record in SQL
Is it safe for Guotai Junan to open an account online
Reduce the cost by 40%! Container practice of redis multi tenant cluster
一些認知的思考
Exception com alibaba. fastjson. JSONException: not match : - =
One click installation script enables rapid deployment of graylog server 4.2.10 stand-alone version
2020-2022 two-year anniversary of creation
【组队 PK 赛】本周任务已开启 | 答题挑战,夯实商品详情知识
漫画:什么是服务熔断?
ES6 drill down - Async functions and symbol types
Intel 13th generation Raptor Lake processor information exposure: more cores, larger cache
一键安装脚本实现快速部署GrayLog Server 4.2.10单机版