Skip to content
Wireshark Wiki 中文翻译整理专题首页原始页面

X11

X11 是 X Window System 协议的第 11 版。

历史

自 1987 年 9 月以来,X11 一直是该协议版本。

协议依赖

  • TCP:X11 使用 TCP 作为其传输协议。X11 的知名 TCP 端口为 6000-6063:通常使用的端口号是 6000 加上服务器/显示编号。Wireshark 只会在端口 6000-6002 上自动将流量解析为 X11。除此之外,你需要使用 Decode-As。

示例流量

No. Time Source Destination Protocol Length Info 8 0.001470 192.168.1.2 192.168.1.24 X11 558 Initial connection replyFrame 8: 558 bytes on wire (4464 bits), 558 bytes captured (4464 bits)Ethernet II, Src: HewlettP_27:85:92 (00:22:64:27:85:92), Dst: Raspberr_65:2d:99 (b8:27:eb:65:2d:99)Internet Protocol Version 4, Src: 192.168.1.2, Dst: 192.168.1.24Transmission Control Protocol, Src Port: 6003 (6003), Dst Port: 57369 (57369), Seq: 9, Ack: 49, Len: 492[2 Reassembled TCP Segments (500 bytes): #6(8), #8(492)]X11, Reply, Initial connection reply success: 1 unused protocol-major-version: 11 protocol-minor-version: 0 replylength: 123 release-number: 11501000 resource-id-base: 0x00200000 resource-id-mask: 0x001fffff motion-buffer-size: 256 length-of-vendor: 20 maximum-request-length: 65535 number-of-screens-in-roots: 1 number-of-formats-in-pixmap-formats: 7 image-byte-order: 0x00 (LSBFirst) bitmap-format-bit-order: 0x00 (LSBFirst) bitmap-format-scanline-unit: 32 bitmap-format-scanline-pad: 32 min-keycode: 8 max-keycode: 255 unused vendor: The X.Org Foundation pixmap-format screen

Wireshark

X11 dissector 功能相当完善。该 dissector 的许多部分是根据 mesa 和 xcbproto 源码自动生成的,这意味着随着协议扩展被加入协议,它们会自动获得支持。

首选项设置

X11 dissector 唯一的首选项是是否重组 TCP 段。

示例捕获文件

SampleCaptures 页面上有许多 X11 示例捕获。

显示过滤器

完整的 X11 显示过滤器字段列表可在显示过滤器参考中找到

只显示基于 X11 的流量:

 x11

捕获过滤器

捕获时不能直接过滤 X11 协议。不过,如果你知道使用的 TCP 端口(见上文),可以按该端口进行过滤。

外部链接

  • Wikipedia 有许多关于 X windowing system 和 X protocol 的深入页面。

讨论

https://wiki.wireshark.org/X11 导入,时间为 2020-08-11 23:27:46 UTC

相关 Wireshark Wiki 页面

网络分析技术档案