当前位置:网站首页>Jarvis OJ shell traffic analysis
Jarvis OJ shell traffic analysis
2022-07-05 16:46:00 【[mzq]】
shell Flow analysis
Title Attachment : https://dn.jarvisoj.com/challengefiles/+_+.rar.977e2c637dc492fb9a7cf7595c852044
Use strings Find keywords ctf I found one of them python Encryption and decryption script

use wireshark analysis tcp There are encrypted and decrypted in the stream python2 Script

Also found a string base64 Encrypted string , Try to decrypt and get garbled code

Guess after decryption python Script decryption

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}
边栏推荐
猜你喜欢

2020-2022 two-year anniversary of creation

If you can't afford a real cat, you can use code to suck cats -unity particles to draw cats

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

Domestic API management artifact used by the company

Get ready for the pre-season card game MotoGP ignition champions!

迁移/home分区
![[61dctf]fm](/img/22/3e4e3f1679a27d8b905684bb709905.png)
[61dctf]fm

详解SQL中Groupings Sets 语句的功能和底层实现逻辑

Single merchant v4.4 has the same original intention and strength!

Starkware: to build ZK "universe"
随机推荐
HiEngine:可媲美本地的云原生内存数据库引擎
Pspnet | semantic segmentation and scene analysis
漫画:什么是MapReduce?
[es6] add if judgment or ternary operator judgment in the template string
2020-2022两周年创作纪念日
公司自用的国产API管理神器
搜索 正排索引 和 倒排索引 区别
【组队 PK 赛】本周任务已开启 | 答题挑战,夯实商品详情知识
单商户 V4.4,初心未变,实力依旧!
數據訪問 - EntityFramework集成
树莓派4b安装Pytorch1.11
Data Lake (XIV): spark and iceberg integrated query operation
Enterprise backup software Veritas NetBackup (NBU) 8.1.1 installation and deployment of server
Single merchant v4.4 has the same original intention and strength!
The difference between searching forward index and inverted index
数据访问 - EntityFramework集成
Reduce the cost by 40%! Container practice of redis multi tenant cluster
不敢买的思考
Android privacy sandbox developer preview 3: privacy, security and personalized experience
帮忙看看是什么问题可以吗?[ERROR] Could not execute SQL stateme