网站首页 > 教程文章 正文
最近总没流量,有点灰心,原创不易!
1、在Wireshark中将非标准(8000,8080,8089)端口的流量解析为HTTP协议
打开Wireshark首选项:
点击顶部菜单栏的 Edit(编辑)
选择 Preferences(首选项)
在左侧面板中找到 Protocols(协议列表)
搜索或找到 HTTP 选项,点击进入配置界面
在HTTP设置中,找到 TCP Ports 字段
默认端口为 80,将其修改为 80,8080......(用英文逗号分隔多个端口)。
确保勾选 Reassemble HTTP headers... 和 Reassemble HTTP bodies... 以正确解析内容。
最后保存并应用设置
2、tshark命令行方式处理非标准端口
抓包时:
sudo tshark -i wg0 -f "tcp port 8000" -d tcp.port==8000,http -w /output.pcap
解析:
-i wg0:选择捕捉接口
-f “tcp port 8000” :捕获所有源或目标端口为8000的TCP流量(捉包过滤器)
-d tcp.port==8000,http:强制将8000端口的流量解析为 HTTP 协议。
-w /output.pcap:保存捕捉内容
读取已存在的包文件:
sudo tshark -r /output.pcap -Y "http.request.uri" -d tcp.port==8000,http
解析:
-r /output.pcap:读取包文件
-Y "http.request.uri":对包文件过滤,按http request uri信息过滤
如图所示:已经能够将8000端口内容按照http协议解析出其uri地址
注意事项:
加密流量:若8000、8080这些非标准端口使用HTTPS(SSL/TLS),需配置SSL解密才能解析HTTP内容。
通过以上步骤,Wireshark(tshark)会将8080端口这类非标准端口的TCP流量自动识别为HTTP协议解析。
猜你喜欢
- 2025-05-22 Spring Boot跨域问题终极解决方案:3种方法根治CORS报错
- 2025-05-22 详细介绍一下Spring Cloud GateWay中Router的使用?
- 2025-05-22 SpringBoot应用中使用拦截器实现路由转发
- 2025-05-22 谷歌浏览器HTTP不跳转HTTPS设置方法
- 2025-05-22 Java对接DeepSeek API:从零开始打造智能应用
- 2025-05-22 Python小案例70- URL和HTTP协议介绍及语法
- 2025-05-22 HTTPS通信原理及与HTTP的区别
- 2025-05-22 Python中的HTTP访问利器
- 2025-05-22 Spring MVC 底层原理深度解析:从请求到响应的全链路拆解
- 2025-05-22 揭秘HTTP:从诞生到现代的演进之旅
- 05-25干货 | 一步步部署 Flask 应用
- 05-25别再去找Docker命令了,你要的常用的全都在这
- 05-25如果您删除Windows11上的“Program Files”文件夹会发生什么?
- 05-25家用nas最常用的docker容器及部署方法
- 05-25你好 dotnet run file, 再见 csproj
- 05-25China committed to continuing contributions to global health: delegation
- 05-25Chinese, German experts urge cooperation during Eurasia relations seminar
- 05-25Peace of paramount importance for region
- 最近发表
-
- 干货 | 一步步部署 Flask 应用
- 别再去找Docker命令了,你要的常用的全都在这
- 如果您删除Windows11上的“Program Files”文件夹会发生什么?
- 家用nas最常用的docker容器及部署方法
- 你好 dotnet run file, 再见 csproj
- China committed to continuing contributions to global health: delegation
- Chinese, German experts urge cooperation during Eurasia relations seminar
- Peace of paramount importance for region
- after和in用法解析
- China's top diplomat to chair third China-Pacific Island countries foreign ministers' meeting
- 标签列表
-
- location.href (44)
- document.ready (36)
- git checkout -b (34)
- 跃点数 (35)
- 阿里云镜像地址 (33)
- qt qmessagebox (36)
- mybatis plus page (35)
- vue @scroll (38)
- 堆栈区别 (33)
- 什么是容器 (33)
- sha1 md5 (33)
- navicat导出数据 (34)
- 阿里云acp考试 (33)
- 阿里云 nacos (34)
- redhat官网下载镜像 (36)
- srs服务器 (33)
- pico开发者 (33)
- https的端口号 (34)
- vscode更改主题 (35)
- 阿里云资源池 (34)
- os.path.join (33)
- redis aof rdb 区别 (33)
- 302跳转 (33)
- http method (35)
- js array splice (33)