{"id":81520,"date":"2023-10-28T18:13:06","date_gmt":"2023-10-28T10:13:06","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=81520"},"modified":"2023-10-28T18:13:06","modified_gmt":"2023-10-28T10:13:06","slug":"wireshark-datatag","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/wireshark-datatag.html","title":{"rendered":"\u5982\u4f55\u5728Wireshark\u786e\u5b9a\u6570\u636e\u96c6\uff1f"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u6570\u636e\u5305\u8fc7\u6ee4\u53ef\u8ba9\u4f60\u4e13\u6ce8\u4e8e\u4f60\u611f\u5174\u8da3\u7684\u786e\u5b9a\u6570\u636e\u96c6\u3002\u5982\u4f60\u6240\u89c1\uff0cWireshark \u9ed8\u8ba4\u4f1a\u6293\u53d6\u6240\u6709<\/em>\u6570\u636e\u5305\u3002\u8fd9\u53ef\u80fd\u4f1a\u59a8\u788d\u4f60\u5bfb\u627e\u5177\u4f53\u7684\u6570\u636e\u3002 Wireshark \u63d0\u4f9b\u4e86\u4e24\u4e2a\u529f\u80fd\u5f3a\u5927\u7684\u8fc7\u6ee4\u5de5\u200b\u200b\u5177\uff0c\u8ba9\u4f60\u7b80\u5355\u800c\u65e0\u75db\u5730\u83b7\u5f97\u7cbe\u786e\u7684\u6570\u636e\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\"\"<\/p>\n

Wireshark \u53ef\u4ee5\u901a\u8fc7\u4e24\u79cd\u65b9\u5f0f\u8fc7\u6ee4\u6570\u636e\u5305\u3002\u5b83\u53ef\u4ee5\u901a\u8fc7\u53ea\u6536\u96c6\u67d0\u4e9b\u6570\u636e\u5305\u6765\u8fc7\u6ee4\uff0c\u6216\u8005\u5728\u6293\u53d6\u6570\u636e\u5305\u540e\u8fdb\u884c\u8fc7\u6ee4\u3002\u5f53\u7136\uff0c\u8fd9\u4e9b\u53ef\u4ee5\u5f7c\u6b64\u7ed3\u5408\u4f7f\u7528\uff0c\u5e76\u4e14\u5b83\u4eec\u5404\u81ea\u7684\u7528\u5904\u53d6\u51b3\u4e8e\u6536\u96c6\u7684\u6570\u636e\u548c\u4fe1\u606f\u7684\u591a\u5c11\u3002<\/p>\n

\u5e03\u5c14\u8868\u8fbe\u5f0f\u548c\u6bd4\u8f83\u8fd0\u7b97\u7b26<\/strong><\/div>\n

Wireshark \u6709\u5f88\u591a\u5f88\u68d2\u7684\u5185\u7f6e\u8fc7\u6ee4\u5668\u3002\u5f53\u5f00\u59cb\u8f93\u5165\u4efb\u4f55\u4e00\u4e2a\u8fc7\u6ee4\u5668\u5b57\u6bb5\u65f6\uff0c\u4f60\u5c06\u770b\u5230\u5b83\u4eec\u4f1a\u81ea\u52a8\u8865\u5b8c\u3002\u8fd9\u4e9b\u8fc7\u6ee4\u5668\u5927\u591a\u6570\u5bf9\u5e94\u4e8e\u7528\u6237\u5bf9\u6570\u636e\u5305\u7684\u5e38\u89c1\u5206\u7ec4\u65b9\u5f0f\uff0c\u6bd4\u5982\u4ec5\u8fc7\u6ee4 HTTP \u8bf7\u6c42\u5c31\u662f\u4e00\u4e2a\u5f88\u597d\u7684\u4f8b\u5b50\u3002<\/p>\n

\u5bf9\u4e8e\u5176\u4ed6\u7684\uff0cWireshark \u4f7f\u7528\u5e03\u5c14\u8868\u8fbe\u5f0f\u548c\/\u6216\u6bd4\u8f83\u8fd0\u7b97\u7b26\u3002\u5982\u679c\u4f60\u66fe\u7ecf\u505a\u8fc7\u4efb\u4f55\u7f16\u7a0b\uff0c\u4f60\u5e94\u8be5\u719f\u6089\u5e03\u5c14\u8868\u8fbe\u5f0f\u3002\u4ed6\u4eec\u662f\u4f7f\u7528\u00a0and\u3001or\u3001not\u00a0\u6765\u9a8c\u8bc1\u58f0\u660e\u6216\u8868\u8fbe\u5f0f\u7684\u771f\u5047\u3002\u6bd4\u8f83\u8fd0\u7b97\u7b26\u8981\u7b80\u5355\u5f97\u591a\uff0c\u5b83\u4eec\u53ea\u662f\u786e\u5b9a\u4e24\u4ef6\u6216\u66f4\u591a\u4ef6\u4e8b\u60c5\u662f\u5426\u5f7c\u6b64\u76f8\u7b49\u3001\u5927\u4e8e\u6216\u5c0f\u4e8e\u3002<\/p>\n

\u8fc7\u6ee4\u6293\u5305<\/strong><\/div>\n

\u5728\u6df1\u5165\u81ea\u5b9a\u4e49\u6293\u5305\u8fc7\u6ee4\u5668\u4e4b\u524d\uff0c\u8bf7\u5148\u67e5\u770b Wireshark \u5df2\u7ecf\u5185\u7f6e\u7684\u5185\u5bb9\u3002\u5355\u51fb\u9876\u90e8\u83dc\u5355\u4e0a\u7684 \u201cCapture\u201d \u9009\u9879\u5361\uff0c\u7136\u540e\u70b9\u51fb \u201cOptions\u201d\u3002\u53ef\u7528\u63a5\u53e3\u4e0b\u9762\u662f\u53ef\u4ee5\u7f16\u5199\u6293\u5305\u8fc7\u6ee4\u5668\u7684\u884c\u3002\u76f4\u63a5\u79fb\u5230\u5de6\u8fb9\u4e00\u4e2a\u6807\u6709 \u201cCapture Filter\u201d \u7684\u6309\u94ae\u4e0a\u3002\u70b9\u51fb\u5b83\uff0c\u4f60\u5c06\u770b\u5230\u4e00\u4e2a\u65b0\u7684\u5bf9\u8bdd\u6846\uff0c\u5176\u4e2d\u5305\u542b\u5185\u7f6e\u7684\u6293\u5305\u8fc7\u6ee4\u5668\u5217\u8868\u3002\u770b\u770b\u91cc\u9762\u6709\u4e9b\u4ec0\u4e48\u3002<\/p>\n

\"\"<\/p>\n

Wireshark dialog for creating a capture filter<\/em><\/p>\n

\u5728\u5bf9\u8bdd\u6846\u7684\u5e95\u90e8\uff0c\u6709\u4e00\u4e2a\u7528\u4e8e\u521b\u5efa\u5e76\u4fdd\u5b58\u6293\u5305\u8fc7\u6ee4\u5668\u7684\u8868\u5355\u3002\u6309\u5de6\u8fb9\u7684 \u201cNew\u201d \u6309\u94ae\u3002\u5b83\u5c06\u521b\u5efa\u4e00\u4e2a\u586b\u5145\u6709\u9ed8\u8ba4\u6570\u636e\u7684\u65b0\u7684\u6293\u5305\u8fc7\u6ee4\u5668\u3002\u8981\u4fdd\u5b58\u65b0\u7684\u8fc7\u6ee4\u5668\uff0c\u53ea\u9700\u5c06\u5b9e\u9645\u9700\u8981\u7684\u540d\u79f0\u548c\u8868\u8fbe\u5f0f\u66ff\u6362\u539f\u6765\u7684\u9ed8\u8ba4\u503c\uff0c\u7136\u540e\u5355\u51fb\u201cOk\u201d\u3002\u8fc7\u6ee4\u5668\u5c06\u88ab\u4fdd\u5b58\u5e76\u5e94\u7528\u3002\u4f7f\u7528\u6b64\u5de5\u5177\uff0c\u4f60\u53ef\u4ee5\u7f16\u5199\u5e76\u4fdd\u5b58\u591a\u4e2a\u4e0d\u540c\u7684\u8fc7\u6ee4\u5668\uff0c\u4ee5\u4fbf\u5b83\u4eec\u5c06\u6765\u53ef\u4ee5\u518d\u6b21\u4f7f\u7528\u3002<\/p>\n

\u6293\u5305\u6709\u81ea\u5df1\u7684\u8fc7\u6ee4\u8bed\u6cd5\u3002\u5bf9\u4e8e\u6bd4\u8f83\uff0c\u5b83\u4e0d\u4f7f\u7528\u7b49\u4e8e\u53f7\uff0c\u5e76\u4f7f\u7528\u00a0>\u00a0\u548c\u00a0<\u00a0\u6765\u7528\u4e8e\u5927\u4e8e\u6216\u5c0f\u4e8e\u3002\u5bf9\u4e8e\u5e03\u5c14\u503c\u6765\u8bf4\uff0c\u5b83\u4f7f\u7528\u00a0and\u3001or\u00a0\u548c\u00a0not\u3002<\/p>\n

\u4f8b\u5982\uff0c\u5982\u679c\u4f60\u53ea\u60f3\u76d1\u542c 80 \u7aef\u53e3\u7684\u6d41\u91cf\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528\u8fd9\u6837\u7684\u8868\u8fbe\u5f0f\uff1aport 80\u3002\u5982\u679c\u4f60\u53ea\u60f3\u4ece\u7279\u5b9a\u7684 IP \u76d1\u542c\u7aef\u53e3 80\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528\u00a0port 80 and host 192.168.1.20\u3002\u5982\u4f60\u6240\u89c1\uff0c\u6293\u5305\u8fc7\u6ee4\u5668\u6709\u7279\u5b9a\u7684\u5173\u952e\u5b57\u3002\u8fd9\u4e9b\u5173\u952e\u5b57\u7528\u4e8e\u544a\u8bc9 Wireshark \u5982\u4f55\u76d1\u63a7\u6570\u636e\u5305\u4ee5\u53ca\u54ea\u4e00\u4e2a\u6570\u636e\u662f\u8981\u627e\u7684\u3002\u4f8b\u5982\uff0chost\u00a0\u7528\u4e8e\u67e5\u770b\u6765\u81ea IP \u7684\u6240\u6709\u6d41\u91cf\u3002src\u00a0\u7528\u4e8e\u67e5\u770b\u6e90\u81ea\u8be5 IP \u7684\u6d41\u91cf\u3002\u4e0e\u4e4b\u76f8\u53cd\uff0cdst\u00a0\u53ea\u76d1\u542c\u76ee\u6807\u5230\u8fd9\u4e2a IP \u7684\u6d41\u91cf\u3002\u8981\u67e5\u770b\u4e00\u7ec4 IP \u6216\u7f51\u7edc\u4e0a\u7684\u6d41\u91cf\uff0c\u8bf7\u4f7f\u7528\u00a0net\u3002<\/p>\n

\u8fc7\u6ee4\u7ed3\u679c<\/strong><\/div>\n

\u754c\u9762\u7684\u5e95\u90e8\u83dc\u5355\u680f\u662f\u4e13\u95e8\u7528\u4e8e\u8fc7\u6ee4\u7ed3\u679c\u7684\u83dc\u5355\u680f\u3002\u6b64\u8fc7\u6ee4\u5668\u4e0d\u4f1a\u66f4\u6539 Wireshark \u6536\u96c6\u7684\u6570\u636e\uff0c\u5b83\u53ea\u5141\u8bb8\u4f60\u66f4\u8f7b\u677e\u5730\u5bf9\u5176\u8fdb\u884c\u6392\u5e8f\u3002\u6709\u4e00\u4e2a\u6587\u672c\u5b57\u6bb5\u7528\u4e8e\u8f93\u5165\u65b0\u7684\u8fc7\u6ee4\u5668\u8868\u8fbe\u5f0f\uff0c\u5e76\u5e26\u6709\u4e00\u4e2a\u4e0b\u62c9\u7bad\u5934\u4ee5\u67e5\u770b\u4ee5\u524d\u8f93\u5165\u7684\u8fc7\u6ee4\u5668\u3002\u65c1\u8fb9\u662f\u4e00\u4e2a\u6807\u4e3a \u201cExpression\u201d \u7684\u6309\u94ae\uff0c\u53e6\u5916\u8fd8\u6709\u4e00\u4e9b\u7528\u4e8e\u6e05\u9664\u548c\u4fdd\u5b58\u5f53\u524d\u8868\u8fbe\u5f0f\u7684\u6309\u94ae\u3002<\/p>\n

\u70b9\u51fb \u201cExpression\u201d \u6309\u94ae\u3002\u4f60\u5c06\u770b\u5230\u4e00\u4e2a\u5c0f\u7a97\u53e3\uff0c\u5176\u4e2d\u5305\u542b\u591a\u4e2a\u9009\u9879\u3002\u5de6\u8fb9\u4e00\u680f\u6709\u5927\u91cf\u7684\u6761\u76ee\uff0c\u6bcf\u4e2a\u90fd\u6709\u9644\u52a0\u7684\u6298\u53e0\u5b50\u5217\u8868\u3002\u4f60\u53ef\u4ee5\u7528\u8fd9\u4e9b\u6765\u8fc7\u6ee4\u6240\u6709\u4e0d\u540c\u7684\u534f\u8bae\u3001\u5b57\u6bb5\u548c\u4fe1\u606f\u3002\u4f60\u4e0d\u53ef\u80fd\u770b\u5b8c\u6240\u6709\uff0c\u6240\u4ee5\u6700\u597d\u662f\u5927\u6982\u770b\u4e0b\u3002\u4f60\u5e94\u8be5\u6ce8\u610f\u5230\u4e86\u4e00\u4e9b\u719f\u6089\u7684\u9009\u9879\uff0c\u5982 HTTP\u3001SSL \u548c TCP\u3002<\/p>\n

\"\"<\/p>\n

Wireshark dailog for creating a results filter<\/em><\/p>\n

\u5b50\u5217\u8868\u5305\u542b\u53ef\u4ee5\u8fc7\u6ee4\u7684\u4e0d\u540c\u90e8\u5206\u548c\u8bf7\u6c42\u65b9\u6cd5\u3002\u4f60\u53ef\u4ee5\u770b\u5230\u901a\u8fc7 GET \u548c POST \u8bf7\u6c42\u8fc7\u6ee4 HTTP \u8bf7\u6c42\u3002<\/p>\n

\u4f60\u8fd8\u53ef\u4ee5\u5728\u4e2d\u95f4\u770b\u5230\u8fd0\u7b97\u7b26\u5217\u8868\u3002\u901a\u8fc7\u4ece\u6bcf\u5217\u4e2d\u9009\u62e9\u6761\u76ee\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528\u6b64\u7a97\u53e3\u521b\u5efa\u8fc7\u6ee4\u5668\uff0c\u800c\u4e0d\u7528\u8bb0\u4f4f Wireshark \u53ef\u4ee5\u8fc7\u6ee4\u7684\u6bcf\u4e2a\u6761\u76ee\u3002\u5bf9\u4e8e\u8fc7\u6ee4\u7ed3\u679c\uff0c\u6bd4\u8f83\u8fd0\u7b97\u7b26\u4f7f\u7528\u4e00\u7ec4\u7279\u5b9a\u7684\u7b26\u53f7\u3002\u00a0==\u00a0\u7528\u4e8e\u786e\u5b9a\u662f\u5426\u76f8\u7b49\u3002>\u00a0\u7528\u4e8e\u786e\u5b9a\u4e00\u4ef6\u4e1c\u897f\u662f\u5426\u5927\u4e8e\u53e6\u4e00\u4e2a\u4e1c\u897f\uff0c<\u00a0\u627e\u51fa\u662f\u5426\u5c0f\u4e00\u4e9b\u3002\u00a0>=\u00a0\u548c\u00a0<=\u00a0\u5206\u522b\u7528\u4e8e\u5927\u4e8e\u7b49\u4e8e\u548c\u5c0f\u4e8e\u7b49\u4e8e\u3002\u5b83\u4eec\u53ef\u7528\u4e8e\u786e\u5b9a\u6570\u636e\u5305\u662f\u5426\u5305\u542b\u6b63\u786e\u7684\u503c\u6216\u6309\u5927\u5c0f\u8fc7\u6ee4\u3002\u4f7f\u7528\u00a0==\u00a0\u4ec5\u8fc7\u6ee4 HTTP GET \u8bf7\u6c42\u7684\u793a\u4f8b\u5982\u4e0b\uff1ahttp.request.method == \"GET\"\u3002<\/p>\n

\u5e03\u5c14\u8fd0\u7b97\u7b26\u57fa\u4e8e\u591a\u4e2a\u6761\u4ef6\u5c06\u5c0f\u7684\u8868\u8fbe\u5f0f\u4e32\u5230\u4e00\u8d77\u3002\u4e0d\u50cf\u662f\u6293\u5305\u6240\u4f7f\u7528\u7684\u5355\u8bcd\uff0c\u5b83\u4f7f\u7528\u4e09\u4e2a\u57fa\u672c\u7684\u7b26\u53f7\u6765\u505a\u5230\u8fd9\u4e00\u70b9\u3002&&\u00a0\u4ee3\u8868 \u201c\u4e0e\u201d\u3002\u5f53\u4f7f\u7528\u65f6\uff0c&&\u00a0\u4e24\u8fb9\u7684\u4e24\u4e2a\u8bed\u53e5\u90fd\u5fc5\u987b\u4e3a\u771f\u503c\u624d\u884c\uff0c\u4ee5\u4fbf Wireshark \u6765\u8fc7\u6ee4\u8fd9\u4e9b\u5305\u3002||\u00a0\u8868\u793a \u201c\u6216\u201d\u3002\u53ea\u8981\u4e24\u4e2a\u8868\u8fbe\u5f0f\u4efb\u4f55\u4e00\u4e2a\u4e3a\u771f\u503c\uff0c\u5b83\u5c31\u4f1a\u88ab\u8fc7\u6ee4\u3002\u5982\u679c\u4f60\u6b63\u5728\u67e5\u627e\u6240\u6709\u7684 GET \u548c POST \u8bf7\u6c42\uff0c\u4f60\u53ef\u4ee5\u8fd9\u6837\u4f7f\u7528\u00a0||\uff1a(http.request.method == \"GET\") || (http.request.method == \"POST\")\u3002!\u662f \u201c\u975e\u201d \u8fd0\u7b97\u7b26\u3002\u5b83\u4f1a\u5bfb\u627e\u9664\u4e86\u6307\u5b9a\u7684\u4e1c\u897f\u4e4b\u5916\u7684\u6240\u6709\u4e1c\u897f\u3002\u4f8b\u5982\uff0c!http\u00a0\u5c06\u5c55\u793a\u9664\u4e86 HTTP \u8bf7\u6c42\u4e4b\u5916\u7684\u6240\u6709\u4e1c\u897f\u3002<\/p>\n

\u603b\u7ed3\u601d\u8003<\/strong><\/div>\n

\u8fc7\u6ee4 Wireshark \u53ef\u4ee5\u8ba9\u4f60\u6709\u6548\u76d1\u63a7\u7f51\u7edc\u6d41\u91cf\u3002\u719f\u6089\u53ef\u4ee5\u4f7f\u7528\u7684\u9009\u9879\u5e76\u4e60\u60ef\u4f60\u53ef\u4ee5\u521b\u5efa\u8fc7\u6ee4\u5668\u7684\u5f3a\u5927\u8868\u8fbe\u5f0f\u9700\u8981\u4e00\u4e9b\u65f6\u95f4\u3002\u7136\u800c\u4e00\u65e6\u4f60\u5b66\u4f1a\u4e86\uff0c\u4f60\u5c06\u80fd\u591f\u5feb\u901f\u6536\u96c6\u548c\u67e5\u627e\u4f60\u8981\u7684\u7f51\u7edc\u6570\u636e\uff0c\u800c\u65e0\u9700\u68b3\u7406\u957f\u957f\u7684\u6570\u636e\u5305\u6216\u8fdb\u884c\u5927\u91cf\u7684\u5de5\u4f5c\u3002<\/p>\n


\n

via:\u00a0https:\/\/linuxconfig.org\/filtering-packets-in-wireshark-on-kali-linux<\/a><\/p>\n

\u4f5c\u8005\uff1aNick Congleton<\/a>\u00a0\u8bd1\u8005\uff1ageekpi<\/a>\u00a0\u6821\u5bf9\uff1awxy<\/a><\/p>\n

\u672c\u6587\u7531\u00a0LCTT<\/a>\u00a0\u539f\u521b\u7f16\u8bd1\uff0cLinux\u4e2d\u56fd<\/a>\u00a0\u8363\u8a89\u63a8\u51fa<\/p>\n

\n

\u539f\u6587\u6765\u81ea\uff1ahttps:\/\/linux.cn\/article-8793-1.html<\/a><\/p>\n

\u672c\u6587\u5730\u5740\uff1ahttp:\/\/lrxjmw.cn\/wireshark-datatag.html<\/a>\u7f16\u8f91\uff1a\u674e\u5e05\uff0c\u5ba1\u6838\u5458\uff1a\u9004\u589e\u5b9d<\/span><\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"

\u5bfc\u8bfb \u6570\u636e\u5305\u8fc7\u6ee4\u53ef\u8ba9\u4f60\u4e13\u6ce8\u4e8e\u4f60\u611f\u5174\u8da3\u7684\u786e\u5b9a\u6570\u636e\u96c6\u3002\u5982\u4f60\u6240\u89c1\uff0cWireshark \u9ed8\u8ba4\u4f1a\u6293\u53d6\u6240\u6709\u6570\u636e\u5305\u3002\u8fd9\u53ef\u80fd\u4f1a […]<\/p>\n","protected":false},"author":63,"featured_media":81521,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-81520","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/81520","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/63"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=81520"}],"version-history":[{"count":12,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/81520\/revisions"}],"predecessor-version":[{"id":81599,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/81520\/revisions\/81599"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/81521"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=81520"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=81520"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=81520"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}