鹤城杯 2021 流量分析

看分组也知道考http流量

是布尔盲注

过滤器筛选http流量

将流量包过滤分离 http

bash 复制代码
tshark -r timu.pcapng -Y "http" -T json    > 1.json

这个时候取 http.request.uri 进一步分离

http.request.uri字段是我们需要的数据
tshark -r timu.pcapng -Y "http" -T json -e http.request.uri > 2.json

按字典依次取出数据即可

编写脚本处理即可

python 复制代码
import json
import re
with open('./2.json') as f:
    data=json.load(f)

a=[]
for i in data:
    try:
        a.append(i['_source']['layers']['http.request.uri'][0])
    except:
        continue
re1=re.compile(r",(\d+),1\)\)=(\d+)")
output={}
for i in a:
    output[re1.search(i)[1]]=re1.search(i)[2]
flag=""
for i in output:
    flag+=chr(int(output[i]))
    print(flag)

flag{w1reshARK_ez_1sntit}

相关推荐
三七吃山漆1 天前
攻防世界——Web_php_wrong_nginx_config
开发语言·nginx·安全·web安全·网络安全·php·ctf
unable code3 天前
攻防世界-Misc-Wire1
网络安全·ctf·misc·1024程序员节
JM丫3 天前
buuctf-ciscn_2019_es_2(栈迁移)
ctf
unable code4 天前
攻防世界-Misc-Miscellaneous-200
网络安全·ctf·misc
unable code4 天前
攻防世界-Misc-4-1
网络安全·ctf·misc·1024程序员节
unable code5 天前
攻防世界-Misc-2-1
网络安全·ctf·misc
Aerelin6 天前
《静态分析:GUI程序的明码比较》
逆向·ctf
名字不相符6 天前
BUUCTF题目列表Misc题目(个人记录与学习)(第二页)
学习·misc·buuctf·萌新
Aerelin6 天前
Windows GUI 逆向分析题(CrackMe)
逆向·ctf
逻极7 天前
Python MySQL防SQL注入实战:从字符串拼接的坑到参数化查询的救赎
python·mysql·安全·sql注入