当前位置:网站首页>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}
边栏推荐
- Using graylog alarm function to realize the regular work reminder of nail group robots
- ES6 drill down - Async functions and symbol types
- Cartoon: what is MapReduce?
- [echart] resize lodash 实现窗口缩放时图表自适应
- Data access - entityframework integration
- Flet教程之 12 Stack 重叠组建图文混合 基础入门(教程含源码)
- Win11提示无法安全下载软件怎么办?Win11无法安全下载软件
- Detailed explanation of use scenarios and functions of polar coordinate sector diagram
- HiEngine:可媲美本地的云原生内存数据库引擎
- [js] skill simplification if empty judgment
猜你喜欢

Migrate /home partition
![[brush title] goose factory shirt problem](/img/c8/44496c767a778101cf3982bd911933.png)
[brush title] goose factory shirt problem
Intel 13th generation Raptor Lake processor information exposure: more cores, larger cache

效果编辑器新版上线!3D渲染、加标注、设置动画,这次一个编辑器就够了

How was the middle table destroyed?

数据访问 - EntityFramework集成

【刷题篇】有效的数独

數據訪問 - EntityFramework集成

ES6 drill down - ES6 generator function

二叉树相关OJ题
随机推荐
一些認知的思考
自己要有自己的坚持
Batch update in the project
Use of set tag in SQL
Record a 'very strange' troubleshooting process of cloud security group rules
[brush title] goose factory shirt problem
普洛斯数据中心发布DC Brain系统,科技赋能智慧化运营管理
"21 days proficient in typescript-3" - install and build a typescript development environment md
解决CMakeList find_package找不到Qt5,找不到ECM
详解SQL中Groupings Sets 语句的功能和底层实现逻辑
List uses stream flow to add according to the number of certain attributes of the element
ES6 deep - ES6 class class
Relationship between objects and classes
Apple 已弃用 NavigationView,使用 NavigationStack 和 NavigationSplitView 实现 SwiftUI 导航
国泰君安网上开户安全吗
CISP-PTE之PHP伪协议总结
Detailed explanation of use scenarios and functions of polar coordinate sector diagram
Facing new challenges and becoming a better self -- attacking technology er
scratch五彩糖葫芦 电子学会图形化编程scratch等级考试三级真题和答案解析2022年6月
Using graylog alarm function to realize the regular work reminder of nail group robots