从 WireShark pcaps 完全重建 TCP 会话(HTML 页面),有什么工具可以实现这一点吗?
我想知道wireshark是否有办法重建完整的TCP会话(HTML页面)如果我们有wireshark pcaps,wireshark可以重建吗?或者是否有任何工具可以进行重建?从源流式传输的数据可以被压缩 (Gzip) 或未压缩,重建的最终结果应该是包含其所有内容的有效完整 HTML 页面。
I wonder if there is a way in wireshark to reconstruct a complete TCP Session (HTML page(s)) if we have wireshark pcaps, can wireshark do the reconstruction? or is there any tool around that can do the reconstruction? Data streamed from a source could be compressed(Gzip) or uncompressed and the end result of reconstruction should be a valid complete HTML page with all of its contents.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
如果您更喜欢命令行界面,也可以使用 Bro。只需使用
contents
脚本加载它:(您可以跳过可选的 BPF 过滤器表达式
-f port 80
。)这会提取完整的 TCP 流并将其写入形式:正如 Christian 提到的,重组是高度稳健的并经过彻底测试。
You can also use Bro if you prefer a command-line interface. Simply load it with the
contents
script:(You can skip the optional BPF filter expression
-f port 80
.) This extracts the full TCP stream and writes it to files of the form:As Christian mentioned, the reassembly is highly robust and has been tested thoroughly.
根据您拥有的 Wireshark 版本,您应该能够执行以下操作:
您是否还需要更多东西...这似乎可以进行 gzip 解压缩等...如果您正在运行 SSL,则无法工作(如果您可以获得适当的密钥,它可能能够使 SSL 解码工作,但这变得更棘手,我建议在这种情况下尝试 fiddler)
HTH
Depending on what version of Wireshark you have, you should be able to do something along the lines of:
Is there something more you need... this appears to do the gzip decompression etc... won't work if you're running SSL (it MIGHT be able to if you can get the appropiate keys to make the SSL decode work, but that gets trickier and I'd suggest trying fiddler in that case)
HTH
TCPTrace 有一个选项(-e):
TCPTrace has an option (-e) for this:
我建议 tcpflow,一个全功能的 tcp/ip 会话重建器。它速度非常快,可以处理非常大的会话,自动解压缩 gzip 压缩的连接,自动分解通过 HTTP 发送的 MIME 对象,创建其所做操作的 XML 文件,在 MacOS、Linux 和 Windows 等上运行。它是一个命令行工具。
I suggest tcpflow, a full-featured tcp/ip session reconstructor. It is very fast, will handle very large sessions, automatically decompresses gzip'ed connections, automatically breaks out MIME objects sent by HTTP, creates an XML file of what it's done, runs on MacOS, Linux and Windows, and more. It's a command-line tool.
使用 justniffer-grab-http-traffic 。它基于 justniffer,是一个优秀的工具用于重建 TCP 流。
Use justniffer-grab-http-traffic .It is based on justniffer and it is an excellent tool for rebuilding tcp streams.