wireshark的基本使用,过滤请求,过滤数据,追踪数据

dump出来文件

sudo tcpdump -i any -s 0 -w ./full_capture22.pcap 'tcp port 8080'

wireshark 过滤条件

http.request and http contains "/api/serve/predict"

frame contains "输入数据中缺少以下变量"

frame contains ""code":500"

(frame contains ":500") && (json.path_with_value == " 400: 发生错误")

#成功抓取

sudo tcpdump -i any -A -s 0 -l 'tcp port 8080' | grep --line-buffered -E "(POST|GET|HTTP/|Cookie:|Set-Cookie:|/api/torchserve/predict)"

sudo tcpdump -i any -A -s 0 -l 'tcp port 8080' | grep --line-buffered -E "(POST|GET|HTTP/|Cookie:|Set-Cookie:|TE1111B)"

sudo tcpdump -i any -A -s 0 -l 'tcp port 8080' | grep --line-buffered -E "(POST|GET|HTTP/|Cookie:|Set-Cookie:|TE1111B|HTTP/1.1 200)"

筛选出来后右键-追踪流-HTTP-stream 就可以看到http的请求参数和返回参数了

相关推荐
废墟乌托邦4 分钟前
实验10 路由器的基本配置 实验报告
网络·智能路由器
初听于你5 分钟前
IP地址与路由器地址
linux·运维·服务器·网络·tcp/ip·计算机网络·智能路由器
《七》跷5 分钟前
VLAN实验
网络·智能路由器
ME101012 分钟前
计算机三级网络技术知识点全面总结
网络·计算机网络
brucelee18612 分钟前
Window访问 小米路由器的共享文件夹 设置
网络·智能路由器
Lxyand113 分钟前
OSPF 全网最详解(理论及配置)
网络
funnycoffee12319 分钟前
遵循 TCP/IP 四层模型,详细描述一台终端访问 www.taobao.com 的完整过程
网络·网络协议·tcp/ip
我的xiaodoujiao29 分钟前
使用 Python 语言 从 0 到 1 搭建完整 Web UI自动化测试学习系列 41--自定义定制化展示 Allure 测试报告内容
python·学习·测试工具·pytest
谢怜821 小时前
计算机网络第二章物理层
网络·计算机网络