当前位置:网站首页>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}
边栏推荐
- Starkware: to build ZK "universe"
- 数据访问 - EntityFramework集成
- yarn 常用命令
- Query the latest record in SQL
- Google Earth Engine(GEE)——Kernel核函数简单介绍以及灰度共生矩阵
- [echart] resize lodash to realize chart adaptation when window is zoomed
- How to set the WiFi password of the router on the computer
- The difference between abstract classes and interfaces
- 记一次'非常诡异'的云安全组规则问题排查过程
- 数据湖(十四):Spark与Iceberg整合查询操作
猜你喜欢

Use of RLOCK lock

【刷题篇】有效的数独

Seaborn draws 11 histograms

How to set the WiFi password of the router on the computer

CISP-PTE之PHP伪协议总结
![[brush title] goose factory shirt problem](/img/c8/44496c767a778101cf3982bd911933.png)
[brush title] goose factory shirt problem

Detailed explanation of use scenarios and functions of polar coordinate sector diagram

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

Parameter type setting error during batch update in project SQL

Clear restore the scene 31 years ago, volcanic engine ultra clear repair beyond classic concert
随机推荐
效果编辑器新版上线!3D渲染、加标注、设置动画,这次一个编辑器就够了
APICloud云调试解决方案
CISP-PTE之SQL注入(二次注入的应用)
Apiccloud cloud debugging solution
单商户 V4.4,初心未变,实力依旧!
Seaborn绘制11个柱状图
[deep learning] [original] let yolov6-0.1.0 support the txt reading dataset mode of yolov5
记一次'非常诡异'的云安全组规则问题排查过程
为季前卡牌游戏 MotoGP Ignition Champions 做好准备!
The difference between searching forward index and inverted index
漫画:什么是分布式事务?
企业级备份软件Veritas NetBackup(NBU) 8.1.1服务端的安装部署
Use of set tag in SQL
Single merchant v4.4 has the same original intention and strength!
漫画:什么是蓝绿部署?
单商户 V4.4,初心未变,实力依旧!
一键安装脚本实现快速部署GrayLog Server 4.2.10单机版
怎样在电脑上设置路由器的WiFi密码
How to use FRP intranet penetration +teamviewer to quickly connect to the intranet host at home when mobile office
文件操作--I/O