当前位置:网站首页>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}
边栏推荐
- Cartoon: what is the eight queens problem?
- [brush questions] effective Sudoku
- Sentinel-流量防卫兵
- [js] skill simplification if empty judgment
- What is the difference between EDI license and ICP business license
- Benji Bananas 会员通行证持有人第二季奖励活动更新一览
- tf.sequence_mask函数讲解案例
- Summary of PHP pseudo protocol of cisp-pte
- Pspnet | semantic segmentation and scene analysis
- Clear restore the scene 31 years ago, volcanic engine ultra clear repair beyond classic concert
猜你喜欢
SQL injection of cisp-pte (Application of secondary injection)
Hiengine: comparable to the local cloud native memory database engine
Binary tree related OJ problems
"21 days proficient in typescript-3" - install and build a typescript development environment md
《21天精通TypeScript-3》-安装搭建TypeScript开发环境.md
Jarvis OJ 简单网管协议
[brush title] goose factory shirt problem
Flet教程之 11 Row组件在水平数组中显示其子项的控件 基础入门(教程含源码)
How was the middle table destroyed?
今日睡眠质量记录79分
随机推荐
sqlserver 做cdc 要对数据库性能有什么要求么
【刷題篇】鹅廠文化衫問題
JSON转MAP前后数据校验 -- 自定义UDF
Jarvis OJ shell流量分析
Global Data Center released DC brain system, enabling intelligent operation and management through science and technology
公司自用的国产API管理神器
Explain in detail the functions and underlying implementation logic of the groups sets statement in SQL
Seaborn绘制11个柱状图
Scratch colorful candied haws Electronic Society graphical programming scratch grade examination level 3 true questions and answers analysis June 2022
Win11提示无法安全下载软件怎么办?Win11无法安全下载软件
Data verification before and after JSON to map -- custom UDF
Intel 13th generation Raptor Lake processor information exposure: more cores, larger cache
[61dctf]fm
Get ready for the pre-season card game MotoGP ignition champions!
【漏洞预警】CVE-2022-26134 Confluence 远程代码执行漏洞POC验证与修复过程
Android 隐私沙盒开发者预览版 3: 隐私安全和个性化体验全都要
【深度学习】深度学习如何影响运筹学?
解决CMakeList find_package找不到Qt5,找不到ECM
给自己打打气
Can you help me see what the problem is? [ERROR] Could not execute SQL stateme