当前位置:网站首页>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}
边栏推荐
- 详解SQL中Groupings Sets 语句的功能和底层实现逻辑
- How to set the WiFi password of the router on the computer
- Dare not buy thinking
- Can you help me see what the problem is? [ERROR] Could not execute SQL stateme
- Today's sleep quality record 79 points
- 深潜Kotlin协程(二十一):Flow 生命周期函数
- [echart] resize lodash 实现窗口缩放时图表自适应
- [echart] resize lodash to realize chart adaptation when window is zoomed
- You should have your own persistence
- 关于new Map( )还有哪些是你不知道的
猜你喜欢

Pspnet | semantic segmentation and scene analysis

服务器的数据库连不上了2003,10060“Unknown error“【服务已起、防火墙已关、端口已开、netlent 端口不通】

"21 days proficient in typescript-3" - install and build a typescript development environment md

Flet教程之 09 NavigationRail 基础入门(教程含源码)
英特尔第13代Raptor Lake处理器信息曝光:更多核心 更大缓存

Jarvis OJ 远程登录协议

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

scratch五彩糖葫芦 电子学会图形化编程scratch等级考试三级真题和答案解析2022年6月

Today's sleep quality record 79 points

數據訪問 - EntityFramework集成
随机推荐
普洛斯数据中心发布DC Brain系统,科技赋能智慧化运营管理
英特尔第13代Raptor Lake处理器信息曝光:更多核心 更大缓存
數據訪問 - EntityFramework集成
Seaborn绘制11个柱状图
tf. sequence_ Mask function explanation case
PHP strict mode
"21 days proficient in typescript-3" - install and build a typescript development environment md
File operation --i/o
How to install MySQL
SQL injection of cisp-pte (Application of secondary injection)
Bs-xx-042 implementation of personnel management system based on SSM
Jarvis OJ Flag
Cartoon: what is MapReduce?
Solution of vant tabbar blocking content
关于new Map( )还有哪些是你不知道的
公司自用的国产API管理神器
How to uninstall MySQL cleanly
Fleet tutorial 09 basic introduction to navigationrail (tutorial includes source code)
Google Earth Engine(GEE)——Kernel核函数简单介绍以及灰度共生矩阵
Sentinel flow guard