{"id":2535,"date":"2026-08-26T21:02:47","date_gmt":"2026-08-26T13:02:47","guid":{"rendered":"https:\/\/www.nanoexpress.com\/?p=2535"},"modified":"2026-08-26T21:07:12","modified_gmt":"2026-08-26T13:07:12","slug":"2535","status":"publish","type":"post","link":"https:\/\/www.nanoexpress.com\/?p=2535","title":{"rendered":"\u4e0a\u671f\u80fd\u6e90\u6df1\u5ea6\u884c\u60c5 Wireshark \u63d2\u4ef6"},"content":{"rendered":"<h1>\u4e0a\u671f\u80fd\u6e90\u6df1\u5ea6\u884c\u60c5 Wireshark \u63d2\u4ef6<\/h1>\n<p>\u57fa\u4e8e\u300a\u6df1\u5ea6\u884c\u60c5\u53d1\u5e03\u5e73\u53f0\u63a5\u53e3\u89c4\u8303 v1.00\u300b\u7684 Lua \u89e3\u6790\u63d2\u4ef6\uff0c\u652f\u6301 <strong>MDQP<\/strong>\uff08TCP \u5feb\u7167\u67e5\u8be2\uff09\u4e0e <strong>MIRP<\/strong>\uff08UDP \u589e\u91cf\u884c\u60c5\uff09\u3002<\/p>\n<hr \/>\n<h2>\u73af\u5883\u8981\u6c42<\/h2>\n<ul>\n<li><strong>Wireshark 4.6.x<\/strong>\uff08\u5df2\u5728 4.6.8 \u4e0a\u9a8c\u8bc1\uff1b\u9700\u652f\u6301 Lua \u63d2\u4ef6\uff09<\/li>\n<li>\u64cd\u4f5c\u7cfb\u7edf\uff1aWindows \/ macOS \/ Linux \u5747\u53ef<\/li>\n<li>\u65e0\u9700\u7f16\u8bd1\uff0c\u5355\u6587\u4ef6 <code>.lua<\/code> \u811a\u672c\uff0c\u590d\u5236\u5373\u53ef\u4f7f\u7528<\/li>\n<\/ul>\n<blockquote>\n<p><strong>\u8bf4\u660e\uff1a<\/strong> \u8bf7\u4f7f\u7528\u5b98\u65b9 Wireshark \u5b89\u88c5\u5305\u3002\u4fbf\u643a\u7248\u82e5\u672a\u542f\u7528 Lua\uff0c\u63d2\u4ef6\u5c06\u65e0\u6cd5\u52a0\u8f7d\u3002\u53ef\u5728\u83dc\u5355 <code>Help \u2192 About Wireshark<\/code> \u4e2d\u786e\u8ba4\u662f\u5426\u5305\u542b Lua \u652f\u6301\u3002<\/p>\n<\/blockquote>\n<hr \/>\n<h2>\u4e0b\u8f7d<\/h2>\n<table>\n<thead>\n<tr>\n<th>\u63d2\u4ef6<\/th>\n<th>\u4f20\u8f93<\/th>\n<th>\u8bf4\u660e<\/th>\n<th>\u4e0b\u8f7d<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><strong>MDQP Dissector<\/strong><\/td>\n<td>TCP<\/td>\n<td>\u89e3\u6790 MDQP \u884c\u60c5\u67e5\u8be2\u534f\u8bae\uff08\u5feb\u7167\u3001\u767b\u5f55\u3001\u589e\u91cf\u8865\u5305\u7b49\uff09<\/td>\n<td><a href=\"https:\/\/www.nanoexpress.com\/wp-content\/uploads\/2026\/08\/mirp_dissector.lua_.txt\">mdqp_dissector.lua<\/a><\/td>\n<\/tr>\n<tr>\n<td><strong>MIRP Dissector<\/strong><\/td>\n<td>UDP<\/td>\n<td>\u89e3\u6790 MIRP \u589e\u91cf\u884c\u60c5\uff0c\u542b PacketNo \/ ChangeNo \u8fde\u7eed\u6027\u68c0\u6d4b\u4e0e\u4e22\u5305\u9ad8\u4eae<\/td>\n<td><a href=\"https:\/\/www.nanoexpress.com\/wp-content\/uploads\/2026\/08\/mirp_dissector.lua_.txt\">mirp_dissector.lua<\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6ce8\uff1a\u7531\u4e8e\u7f51\u7ad9\u5b89\u5168\u8bbe\u7f6e\u65e0\u6cd5\u76f4\u63a5\u4e0b\u8f7d.lua\u6587\u4ef6\uff0c\u4e0b\u8f7d\u540e\u53bb\u6389.txt\u6269\u5c55\uff0c\u5c06\u6587\u4ef6\u91cd\u547d\u540d\u4e3a.lua\u6587\u4ef6,\u5982\u679c\u6d4f\u89c8\u5668\u76f4\u63a5\u6253\u5f00\u4e86\u8be5\u6587\u4ef6\uff0c\u8bf7\u590d\u5236\u6240\u6709\u5185\u5bb9\u5e76\u4fdd\u5b58\u4e3a.lua\u6587\u4ef6<\/p>\n<hr \/>\n<h2>\u5b89\u88c5\u4e0e\u52a0\u8f7d<\/h2>\n<h3>1. \u590d\u5236\u63d2\u4ef6\u6587\u4ef6<\/h3>\n<p>\u5c06\u4e0b\u8f7d\u7684 <code>.lua<\/code> \u6587\u4ef6\u653e\u5165 Wireshark \u4e2a\u4eba\u63d2\u4ef6\u76ee\u5f55\uff08\u4e24\u4e2a\u63d2\u4ef6\u53ef\u540c\u65f6\u5b89\u88c5\uff09\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th>\u7cfb\u7edf<\/th>\n<th>\u63d2\u4ef6\u76ee\u5f55<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Windows<\/td>\n<td><code>%APPDATA%\\Wireshark\\plugins\\<\/code><\/td>\n<\/tr>\n<tr>\n<td>macOS<\/td>\n<td><code>~\/.local\/lib\/wireshark\/plugins\/<\/code><\/td>\n<\/tr>\n<tr>\n<td>Linux<\/td>\n<td><code>~\/.local\/lib\/wireshark\/plugins\/<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4e5f\u53ef\u5728 Wireshark \u4e2d\u901a\u8fc7 <code>Help \u2192 About Wireshark \u2192 Folders<\/code> \u67e5\u770b <strong>Personal Lua Plugins<\/strong> \u8def\u5f84\u3002<\/p>\n<h3>2. \u52a0\u8f7d\u63d2\u4ef6<\/h3>\n<ol>\n<li>\u542f\u52a8\u6216\u91cd\u542f Wireshark<\/li>\n<li>\u83dc\u5355\u9009\u62e9 <code>Analyze \u2192 Reload Lua Plugins<\/code><\/li>\n<li>\u6253\u5f00\u6293\u5305\u6587\u4ef6\uff0c\u5728 <code>Edit \u2192 Preferences \u2192 Protocols<\/code> \u4e2d\u5e94\u80fd\u770b\u5230 <strong>MDQP<\/strong>\u3001<strong>MIRP<\/strong><\/li>\n<\/ol>\n<h3>3. \u624b\u52a8\u6307\u5b9a\u534f\u8bae\uff08\u53ef\u9009\uff09<\/h3>\n<p>\u82e5\u7aef\u53e3\u672a\u81ea\u52a8\u8bc6\u522b\uff0c\u5bf9\u76ee\u6807\u5305\u53f3\u952e \u2192 <code>Decode As\u2026<\/code> \u2192 \u9009\u62e9 <strong>MDQP<\/strong> \u6216 <strong>MIRP<\/strong>\u3002<\/p>\n<hr \/>\n<h2>MDQP \u914d\u7f6e\uff08TCP\uff09<\/h2>\n<p>\u8def\u5f84\uff1a<code>Edit \u2192 Preferences \u2192 Protocols \u2192 MDQP<\/code><\/p>\n<table>\n<thead>\n<tr>\n<th>\u9009\u9879<\/th>\n<th>\u9ed8\u8ba4\u503c<\/th>\n<th>\u8bf4\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>TCP ports<\/td>\n<td><code>33022<\/code><\/td>\n<td>MDQP \u670d\u52a1\u7aef\u53e3\uff0c\u6e90\u6216\u76ee\u7684\u7aef\u53e3\u5339\u914d\u5373\u53ef\uff1b\u652f\u6301\u9017\u53f7\u3001\u8303\u56f4\uff0c\u5982 <code>33022,33023<\/code><\/td>\n<\/tr>\n<tr>\n<td>Heuristic dissection<\/td>\n<td>\u5173<\/td>\n<td>\u626b\u63cf\u5168\u90e8 TCP \u6d41\u91cf\uff0c\u5927\u6587\u4ef6\u8f83\u6162\uff0c\u5efa\u8bae\u4fdd\u6301\u5173\u95ed\u5e76\u6307\u5b9a\u7aef\u53e3<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>TCP \u91cd\u7ec4\uff08\u5fc5\u5f00\uff09<\/h3>\n<p>MDQP \u62a5\u6587\u53ef\u80fd\u8de8\u591a\u4e2a TCP \u6bb5\uff0c\u8bf7\u786e\u8ba4\uff1a<\/p>\n<p><code>Edit \u2192 Preferences \u2192 Protocols \u2192 TCP<\/code><\/p>\n<ul>\n<li>\u52fe\u9009 <strong>Allow subdissector to reassemble TCP streams<\/strong><\/li>\n<\/ul>\n<h3>Info \u5217\u663e\u793a\u5b57\u6bb5<\/h3>\n<p>\u5b8c\u6574\u89e3\u6790\u540e Info \u5217\u5c55\u793a\uff1a<\/p>\n<p><code>SnapDate<\/code>\u3001<code>SnapTime<\/code>\u3001<code>SnapMillisec<\/code>\u3001<code>PacketNo<\/code>\u3001<code>InstrumentID<\/code>\u3001<code>InstrumentNo<\/code><\/p>\n<h3>\u663e\u793a\u8fc7\u6ee4\u5668\u793a\u4f8b<\/h3>\n<pre><code class=\"language-text\">mdqp\nmdqp.type_id == 0x32\ntcp.port == 33022 &amp;&amp; mdqp\nmdqp.contract.instrument_id == &quot;rb2510&quot;<\/code><\/pre>\n<hr \/>\n<h2>MIRP \u914d\u7f6e\uff08UDP\uff09<\/h2>\n<p>\u8def\u5f84\uff1a<code>Edit \u2192 Preferences \u2192 Protocols \u2192 MIRP<\/code><\/p>\n<table>\n<thead>\n<tr>\n<th>\u9009\u9879<\/th>\n<th>\u9ed8\u8ba4\u503c<\/th>\n<th>\u8bf4\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>UDP ports<\/td>\n<td><code>21000,25000<\/code><\/td>\n<td>\u589e\u91cf\u7ec4\u64ad\u7aef\u53e3\uff0c\u9017\u53f7\u6216\u8303\u56f4\uff0c\u5982 <code>21000,25000<\/code>\u3001<code>21000-21005<\/code><\/td>\n<\/tr>\n<tr>\n<td>Heuristic dissection<\/td>\n<td>\u5173<\/td>\n<td>\u5efa\u8bae\u5173\u95ed\uff0c\u4ec5\u7ed1\u5b9a\u5df2\u77e5\u7aef\u53e3\uff08\u6027\u80fd\u6700\u4f73\uff09<\/td>\n<\/tr>\n<tr>\n<td>Track PacketNo continuity<\/td>\n<td>\u5f00<\/td>\n<td>\u6309 TopicID + CenterChangeNo \u68c0\u6d4b PacketNo \u8df3\u53f7<\/td>\n<\/tr>\n<tr>\n<td>Track ChangeNo continuity<\/td>\n<td>\u5f00<\/td>\n<td>\u6309\u5408\u7ea6\u68c0\u6d4b ChangeNo \u8df3\u53f7<\/td>\n<\/tr>\n<tr>\n<td>Auto-install gap color rules<\/td>\n<td>\u5f00<\/td>\n<td>\u4e22\u5305\u5305\u9ed1\u5e95\u767d\u5b57\u9ad8\u4eae\uff08\u9700\u91cd\u542f Wireshark \u52a0\u8f7d\u7740\u8272\u89c4\u5219\uff09<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\u663e\u793a\u8fc7\u6ee4\u5668\u793a\u4f8b<\/h3>\n<pre><code class=\"language-text\">mirp\nmirp.topic_id == 100\nmirp.packet_status == 2\nmirp.gap_loss == 1\nmirp.contract.instrument_no == 20<\/code><\/pre>\n<h3>\u4e22\u5305\u6807\u8bb0\u9ed1\u8272\u9ad8\u4eae<\/h3>\n<p>\u8df3\u53f7\u540e\u9996\u5305\u8bbe\u7f6e <code>mirp.gap_loss == 1<\/code>\u3002\u7740\u8272\u89c4\u5219\u5199\u5165\uff1a<\/p>\n<p><code>%APPDATA%\\Wireshark\\colorfilters<\/code> \uff08Windows\uff09<a href=\"https:\/\/www.nanoexpress.com\/wp-content\/uploads\/2026\/08\/colorfilters.txt\">\u4e0b\u8f7d\u4fee\u6539\u597d\u7684\u6587\u4ef6<\/a><\/p>\n<p>\u4fee\u6539\u7740\u8272\u89c4\u5219\u540e\u9700<strong>\u91cd\u542f Wireshark<\/strong>\uff08Reload Lua \u4e0d\u4f1a\u5237\u65b0 colorfilters\uff09\u3002<\/p>\n<hr \/>\n<h2>\u5e38\u89c1\u95ee\u9898<\/h2>\n<h3>\u8fc7\u6ee4 <code>mdqp<\/code> \/ <code>mirp<\/code> \u6ca1\u6709\u7ed3\u679c\uff1f<\/h3>\n<p>\u663e\u793a\u8fc7\u6ee4\u5668\u53ea\u80fd\u5339\u914d<strong>\u5df2\u6210\u529f\u89e3\u6790<\/strong>\u7684\u5305\u3002\u8bf7\u5148\u7528 <code>tcp.port == 33022<\/code> \u6216 <code>udp.port == 21000<\/code> \u786e\u8ba4\u6709\u6d41\u91cf\uff0c\u518d Reload Lua\uff0c\u6216 Decode As \u624b\u52a8\u6307\u5b9a\u534f\u8bae\u3002<\/p>\n<h3>MDQP \u4ecd\u663e\u793a\u4e3a TCP\uff1f<\/h3>\n<ol>\n<li>\u786e\u8ba4 Preferences \u2192 MDQP \u2192 TCP ports \u5df2\u586b\u5199<\/li>\n<li>\u786e\u8ba4 TCP \u5df2\u5f00\u542f subdissector reassemble<\/li>\n<li>\u5bf9\u542b\u5b8c\u6574 payload \u7684\u5305\u5c1d\u8bd5 Decode As \u2192 MDQP<\/li>\n<\/ol>\n<h3>\u63d2\u4ef6\u52a0\u8f7d\u62a5\u9519\uff1f<\/h3>\n<p>\u67e5\u770b <code>Analyze \u2192 Reload Lua Plugins<\/code> \u4e0b\u65b9 Lua \u63a7\u5236\u53f0\u8f93\u51fa\uff1b\u8bf7\u4f7f\u7528 Wireshark <strong>4.6.x<\/strong>\uff0c\u65e7\u7248 API \u53ef\u80fd\u4e0d\u517c\u5bb9\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e0a\u671f\u80fd\u6e90\u6df1\u5ea6\u884c\u60c5 Wireshark \u63d2\u4ef6 \u57fa\u4e8e\u300a\u6df1\u5ea6\u884c\u60c5\u53d1\u5e03\u5e73\u53f0\u63a5\u53e3\u89c4\u8303 v1.00\u300b\u7684 Lua \u89e3\u6790\u63d2\u4ef6\uff0c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2535","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"blocksy_meta":[],"_links":{"self":[{"href":"https:\/\/www.nanoexpress.com\/index.php?rest_route=\/wp\/v2\/posts\/2535","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.nanoexpress.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.nanoexpress.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.nanoexpress.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.nanoexpress.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2535"}],"version-history":[{"count":3,"href":"https:\/\/www.nanoexpress.com\/index.php?rest_route=\/wp\/v2\/posts\/2535\/revisions"}],"predecessor-version":[{"id":2539,"href":"https:\/\/www.nanoexpress.com\/index.php?rest_route=\/wp\/v2\/posts\/2535\/revisions\/2539"}],"wp:attachment":[{"href":"https:\/\/www.nanoexpress.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2535"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.nanoexpress.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2535"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.nanoexpress.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2535"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}