当前位置:网站首页>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}
边栏推荐
- Yarn common commands
- 深潜Kotlin协程(二十一):Flow 生命周期函数
- 漫画:什么是八皇后问题?
- Clear restore the scene 31 years ago, volcanic engine ultra clear repair beyond classic concert
- Reduce the cost by 40%! Container practice of redis multi tenant cluster
- Spring Festival Limited "forget trouble in the year of the ox" gift bag waiting for you to pick it up~
- DenseNet
- StarkWare:欲构建ZK“宇宙”
- 2020-2022两周年创作纪念日
- 【 brosser le titre 】 chemise culturelle de l'usine d'oies
猜你喜欢
Seaborn draws 11 histograms
Spring Festival Limited "forget trouble in the year of the ox" gift bag waiting for you to pick it up~
Fleet tutorial 09 basic introduction to navigationrail (tutorial includes source code)
服务器的数据库连不上了2003,10060“Unknown error“【服务已起、防火墙已关、端口已开、netlent 端口不通】
Binary tree related OJ problems
scratch五彩糖葫芦 电子学会图形化编程scratch等级考试三级真题和答案解析2022年6月
Solve cmakelist find_ Package cannot find Qt5, ECM cannot be found
Seaborn绘制11个柱状图
单商户 V4.4,初心未变,实力依旧!
Win11 prompt: what if the software cannot be downloaded safely? Win11 cannot download software safely
随机推荐
Pspnet | semantic segmentation and scene analysis
[es6] add if judgment or ternary operator judgment in the template string
ES6 drill down - ES6 generator function
Cs231n notes (bottom) - applicable to 0 Foundation
一些认知的思考
Oneforall installation and use
How to set the WiFi password of the router on the computer
"21 days proficient in typescript-3" - install and build a typescript development environment md
【学术相关】多位博士毕业去了三四流高校,目前惨不忍睹……
Summary of methods for finding intersection of ordered linked list sets
Solve the Hanoi Tower problem [modified version]
How does win11 change icons for applications? Win11 method of changing icons for applications
怎样在电脑上设置路由器的WiFi密码
Explain in detail the functions and underlying implementation logic of the groups sets statement in SQL
The difference between searching forward index and inverted index
The memory of a Zhang
给自己打打气
Solve cmakelist find_ Package cannot find Qt5, ECM cannot be found
Do sqlserver have any requirements for database performance when doing CDC
极坐标扇图使用场景与功能详解