{"id":1026098,"date":"2024-12-31T10:39:47","date_gmt":"2024-12-31T02:39:47","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1026098.html"},"modified":"2024-12-31T10:39:49","modified_gmt":"2024-12-31T02:39:49","slug":"python%e6%8a%93%e5%8c%85%e4%b9%8b%e5%90%8e%e5%a6%82%e4%bd%95%e8%a7%a3%e6%9e%90%e5%8c%85","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1026098.html","title":{"rendered":"python\u6293\u5305\u4e4b\u540e\u5982\u4f55\u89e3\u6790\u5305"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2024\/12\/fb48cc0b-12eb-4a51-941a-082eb14daa73.webp?x-oss-process=image\/auto-orient,1\/format,webp\" alt=\"python\u6293\u5305\u4e4b\u540e\u5982\u4f55\u89e3\u6790\u5305\" \/><\/p>\n<p><p> <strong>Python\u6293\u5305\u4e4b\u540e\u5982\u4f55\u89e3\u6790\u5305<\/strong>\uff1a\u4f7f\u7528\u5408\u9002\u7684\u5e93\u3001\u89e3\u6790TCP\/IP\u5c42\u6570\u636e\u3001\u5206\u6790\u5e94\u7528\u5c42\u6570\u636e\u3001\u5904\u7406\u4e8c\u8fdb\u5236\u6570\u636e\u3001\u5904\u7406HTTP\/HTTPS\u6570\u636e\u3002<strong>\u5728\u89e3\u6790\u7f51\u7edc\u5305\u65f6\uff0c\u9009\u62e9\u5408\u9002\u7684\u5e93\u548c\u5de5\u5177\u975e\u5e38\u91cd\u8981<\/strong>\u3002\u5728Python\u4e2d\uff0c\u5e38\u89c1\u7684\u5e93\u6709Scapy\u3001Pyshark\u3001dpkt\u7b49\u3002\u8fd9\u91cc\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u4f7f\u7528\u8fd9\u4e9b\u5e93\u7684\u65b9\u6cd5\uff0c\u4ee5\u4fbf\u4f60\u80fd\u591f\u9ad8\u6548\u5730\u89e3\u6790\u7f51\u7edc\u5305\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u9009\u62e9\u5408\u9002\u7684\u5e93<\/h3>\n<\/p>\n<p><h4>1\u3001Scapy<\/h4>\n<\/p>\n<p><p>Scapy \u662f\u4e00\u4e2a\u529f\u80fd\u5f3a\u5927\u7684\u7f51\u7edc\u5305\u64cd\u4f5c\u5de5\u5177\uff0c\u9002\u7528\u4e8e\u5404\u79cd\u7f51\u7edc\u6d4b\u8bd5\u548c\u5206\u6790\u4efb\u52a1\u3002\u5b83\u4e0d\u4ec5\u53ef\u4ee5\u6293\u5305\uff0c\u8fd8\u80fd\u89e3\u6790\u548c\u751f\u6210\u7f51\u7edc\u5305\u3002Scapy \u652f\u6301\u591a\u79cd\u534f\u8bae\uff0c\u9002\u7528\u4e8e\u590d\u6742\u7684\u7f51\u7edc\u5206\u6790\u9700\u6c42\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from scapy.all import *<\/p>\n<h2><strong>\u8bfb\u53d6\u6293\u5305\u6587\u4ef6<\/strong><\/h2>\n<p>packets = rdpcap(&#39;example.pcap&#39;)<\/p>\n<h2><strong>\u904d\u5386\u6bcf\u4e2a\u5305<\/strong><\/h2>\n<p>for packet in packets:<\/p>\n<p>    # \u6253\u5370\u5305\u7684\u6982\u8981\u4fe1\u606f<\/p>\n<p>    print(packet.summary())<\/p>\n<p>    # \u6253\u5370\u5305\u7684\u8be6\u7ec6\u4fe1\u606f<\/p>\n<p>    packet.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001Pyshark<\/h4>\n<\/p>\n<p><p>Pyshark \u662f Wireshark \u7684 Python \u7ed1\u5b9a\uff0c\u53ef\u4ee5\u65b9\u4fbf\u5730\u8bfb\u53d6\u548c\u89e3\u6790 pcap \u6587\u4ef6\u3002\u5b83\u5177\u6709\u5f3a\u5927\u7684\u89e3\u6790\u80fd\u529b\uff0c\u652f\u6301\u591a\u79cd\u534f\u8bae\uff0c\u5e76\u4e14\u4f7f\u7528\u8d77\u6765\u76f8\u5bf9\u7b80\u5355\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pyshark<\/p>\n<h2><strong>\u8bfb\u53d6\u6293\u5305\u6587\u4ef6<\/strong><\/h2>\n<p>cap = pyshark.FileCapture(&#39;example.pcap&#39;)<\/p>\n<h2><strong>\u904d\u5386\u6bcf\u4e2a\u5305<\/strong><\/h2>\n<p>for packet in cap:<\/p>\n<p>    # \u6253\u5370\u5305\u7684\u6982\u8981\u4fe1\u606f<\/p>\n<p>    print(packet)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3\u3001dpkt<\/h4>\n<\/p>\n<p><p>dpkt \u662f\u53e6\u4e00\u4e2a\u7528\u4e8e\u89e3\u6790\u7f51\u7edc\u5305\u7684\u5e93\uff0c\u652f\u6301\u591a\u79cd\u534f\u8bae\u3002\u76f8\u8f83\u4e8e Scapy \u548c Pyshark\uff0cdpkt \u7684\u4f7f\u7528\u66f4\u4e3a\u4f4e\u7ea7\uff0c\u4f46\u5b83\u975e\u5e38\u9ad8\u6548\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import dpkt<\/p>\n<h2><strong>\u8bfb\u53d6\u6293\u5305\u6587\u4ef6<\/strong><\/h2>\n<p>with open(&#39;example.pcap&#39;, &#39;rb&#39;) as f:<\/p>\n<p>    pcap = dpkt.pcap.Reader(f)<\/p>\n<p>    # \u904d\u5386\u6bcf\u4e2a\u5305<\/p>\n<p>    for timestamp, buf in pcap:<\/p>\n<p>        eth = dpkt.ethernet.Ethernet(buf)<\/p>\n<p>        ip = eth.data<\/p>\n<p>        tcp = ip.data<\/p>\n<p>        print(f&#39;Timestamp: {timestamp}, Source IP: {ip.src}, Destination IP: {ip.dst}&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e8c\u3001\u89e3\u6790TCP\/IP\u5c42\u6570\u636e<\/h3>\n<\/p>\n<p><p>\u5728\u89e3\u6790\u7f51\u7edc\u5305\u65f6\uff0c\u7406\u89e3 TCP\/IP \u5c42\u7684\u6570\u636e\u7ed3\u6784\u662f\u975e\u5e38\u91cd\u8981\u7684\u3002\u7f51\u7edc\u5305\u901a\u5e38\u7531\u591a\u4e2a\u534f\u8bae\u5c42\u7ec4\u6210\uff0c\u6bcf\u4e00\u5c42\u90fd\u6709\u5176\u7279\u5b9a\u7684\u529f\u80fd\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u4ee5\u592a\u7f51\u5c42<\/h4>\n<\/p>\n<p><p>\u4ee5\u592a\u7f51\u5c42\u662f\u6700\u5e95\u5c42\u7684\u534f\u8bae\u5c42\uff0c\u8d1f\u8d23\u5728\u5c40\u57df\u7f51\u5185\u4f20\u8f93\u6570\u636e\u3002\u4ee5\u592a\u7f51\u5305\u7684\u5934\u90e8\u5305\u542b\u6e90\u5730\u5740\u3001\u76ee\u6807\u5730\u5740\u548c\u7c7b\u578b\u5b57\u6bb5\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">eth = dpkt.ethernet.Ethernet(buf)<\/p>\n<p>print(f&#39;Source MAC: {eth.src}, Destination MAC: {eth.dst}&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001IP\u5c42<\/h4>\n<\/p>\n<p><p>IP\u5c42\u8d1f\u8d23\u5c06\u6570\u636e\u5305\u4ece\u6e90\u5730\u5740\u4f20\u8f93\u5230\u76ee\u6807\u5730\u5740\u3002IP\u5305\u7684\u5934\u90e8\u5305\u542b\u6e90IP\u5730\u5740\u3001\u76ee\u6807IP\u5730\u5740\u548c\u5176\u4ed6\u63a7\u5236\u4fe1\u606f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">ip = eth.data<\/p>\n<p>print(f&#39;Source IP: {ip.src}, Destination IP: {ip.dst}&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3\u3001TCP\/UDP\u5c42<\/h4>\n<\/p>\n<p><p>TCP\u548cUDP\u662f\u4f20\u8f93\u5c42\u534f\u8bae\uff0c\u8d1f\u8d23\u5728\u7f51\u7edc\u8bbe\u5907\u4e4b\u95f4\u4f20\u8f93\u6570\u636e\u3002TCP\u5305\u548cUDP\u5305\u7684\u5934\u90e8\u5305\u542b\u6e90\u7aef\u53e3\u3001\u76ee\u6807\u7aef\u53e3\u548c\u5176\u4ed6\u63a7\u5236\u4fe1\u606f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">tcp = ip.data<\/p>\n<p>print(f&#39;Source Port: {tcp.sport}, Destination Port: {tcp.dport}&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u5206\u6790\u5e94\u7528\u5c42\u6570\u636e<\/h3>\n<\/p>\n<p><p>\u5e94\u7528\u5c42\u6570\u636e\u5305\u542b\u5b9e\u9645\u4f20\u8f93\u7684\u5185\u5bb9\uff0c\u5982HTTP\u8bf7\u6c42\u3001DNS\u67e5\u8be2\u7b49\u3002\u5728\u89e3\u6790\u5e94\u7528\u5c42\u6570\u636e\u65f6\uff0c\u9700\u8981\u6839\u636e\u5177\u4f53\u7684\u534f\u8bae\u8fdb\u884c\u89e3\u6790\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u89e3\u6790HTTP\u6570\u636e<\/h4>\n<\/p>\n<p><p>HTTP\u662f\u6700\u5e38\u89c1\u7684\u5e94\u7528\u5c42\u534f\u8bae\u4e4b\u4e00\uff0c\u7528\u4e8e\u5728\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668\u4e4b\u95f4\u4f20\u8f93\u7f51\u9875\u6570\u636e\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">if ip.p == dpkt.ip.IP_PROTO_TCP and tcp.dport == 80:<\/p>\n<p>    try:<\/p>\n<p>        http = dpkt.http.Request(tcp.data)<\/p>\n<p>        print(f&#39;HTTP Method: {http.method}, URL: {http.uri}&#39;)<\/p>\n<p>    except dpkt.dpkt.NeedData:<\/p>\n<p>        pass<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u89e3\u6790DNS\u6570\u636e<\/h4>\n<\/p>\n<p><p>DNS\u7528\u4e8e\u5c06\u57df\u540d\u89e3\u6790\u4e3aIP\u5730\u5740\u3002\u5728\u89e3\u6790DNS\u6570\u636e\u65f6\uff0c\u9700\u8981\u89e3\u6790DNS\u67e5\u8be2\u548c\u54cd\u5e94\u5305\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">if ip.p == dpkt.ip.IP_PROTO_UDP and udp.dport == 53:<\/p>\n<p>    dns = dpkt.dns.DNS(udp.data)<\/p>\n<p>    if dns.qr == dpkt.dns.DNS_Q:<\/p>\n<p>        for query in dns.qd:<\/p>\n<p>            print(f&#39;DNS Query: {query.name}&#39;)<\/p>\n<p>    elif dns.qr == dpkt.dns.DNS_R:<\/p>\n<p>        for answer in dns.an:<\/p>\n<p>            print(f&#39;DNS Answer: {answer.name}, IP: {answer.ip}&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u5904\u7406\u4e8c\u8fdb\u5236\u6570\u636e<\/h3>\n<\/p>\n<p><p>\u5728\u89e3\u6790\u7f51\u7edc\u5305\u65f6\uff0c\u5904\u7406\u4e8c\u8fdb\u5236\u6570\u636e\u662f\u4e00\u4e2a\u5173\u952e\u6b65\u9aa4\u3002\u7f51\u7edc\u5305\u901a\u5e38\u4ee5\u4e8c\u8fdb\u5236\u683c\u5f0f\u5b58\u50a8\uff0c\u9700\u8981\u5c06\u5176\u8f6c\u6362\u4e3a\u53ef\u8bfb\u683c\u5f0f\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u8f6c\u6362IP\u5730\u5740<\/h4>\n<\/p>\n<p><p>IP\u5730\u5740\u5728\u7f51\u7edc\u5305\u4e2d\u901a\u5e38\u4ee5\u4e8c\u8fdb\u5236\u683c\u5f0f\u5b58\u50a8\uff0c\u9700\u8981\u5c06\u5176\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\u683c\u5f0f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import socket<\/p>\n<p>import struct<\/p>\n<p>def inet_to_str(inet):<\/p>\n<p>    return socket.inet_ntoa(inet)<\/p>\n<p>ip = eth.data<\/p>\n<p>print(f&#39;Source IP: {inet_to_str(ip.src)}, Destination IP: {inet_to_str(ip.dst)}&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u8f6c\u6362MAC\u5730\u5740<\/h4>\n<\/p>\n<p><p>MAC\u5730\u5740\u5728\u7f51\u7edc\u5305\u4e2d\u4e5f\u662f\u4ee5\u4e8c\u8fdb\u5236\u683c\u5f0f\u5b58\u50a8\uff0c\u9700\u8981\u5c06\u5176\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\u683c\u5f0f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def mac_to_str(mac):<\/p>\n<p>    return &#39;:&#39;.join(&#39;%02x&#39; % b for b in mac)<\/p>\n<p>eth = dpkt.ethernet.Ethernet(buf)<\/p>\n<p>print(f&#39;Source MAC: {mac_to_str(eth.src)}, Destination MAC: {mac_to_str(eth.dst)}&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e94\u3001\u5904\u7406HTTP\/HTTPS\u6570\u636e<\/h3>\n<\/p>\n<p><p>HTTP\u6570\u636e\u901a\u5e38\u662f\u660e\u6587\u7684\uff0c\u53ef\u4ee5\u76f4\u63a5\u89e3\u6790\u548c\u8bfb\u53d6\u3002\u800cHTTPS\u6570\u636e\u662f\u52a0\u5bc6\u7684\uff0c\u9700\u8981\u7279\u6b8a\u5904\u7406\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u89e3\u6790HTTP\u8bf7\u6c42\u548c\u54cd\u5e94<\/h4>\n<\/p>\n<p><p>HTTP\u8bf7\u6c42\u548c\u54cd\u5e94\u5305\u542b\u5728TCP\u5305\u7684\u5e94\u7528\u5c42\u6570\u636e\u4e2d\uff0c\u53ef\u4ee5\u76f4\u63a5\u89e3\u6790\u548c\u8bfb\u53d6\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">if ip.p == dpkt.ip.IP_PROTO_TCP and tcp.dport == 80:<\/p>\n<p>    try:<\/p>\n<p>        http = dpkt.http.Request(tcp.data)<\/p>\n<p>        print(f&#39;HTTP Method: {http.method}, URL: {http.uri}&#39;)<\/p>\n<p>    except dpkt.dpkt.NeedData:<\/p>\n<p>        pass<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u89e3\u6790HTTPS\u6570\u636e<\/h4>\n<\/p>\n<p><p>HTTPS\u6570\u636e\u662f\u52a0\u5bc6\u7684\uff0c\u9700\u8981\u4f7f\u7528\u5408\u9002\u7684\u5de5\u5177\u8fdb\u884c\u89e3\u5bc6\u3002\u901a\u5e38\u9700\u8981\u63d0\u4f9b\u79c1\u94a5\u548c\u8bc1\u4e66\u6587\u4ef6\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import ssl<\/p>\n<p>context = ssl.create_default_context(ssl.Purpose.CLIENT_AUTH)<\/p>\n<p>context.load_cert_ch<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>n(certfile=&#39;server.crt&#39;, keyfile=&#39;server.key&#39;)<\/p>\n<h2><strong>\u4f7f\u7528\u89e3\u5bc6\u540e\u7684\u6570\u636e\u8fdb\u884c\u89e3\u6790<\/strong><\/h2>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u89e3\u6790\u7f51\u7edc\u5305\u9700\u8981\u7efc\u5408\u4f7f\u7528\u591a\u79cd\u5de5\u5177\u548c\u6280\u672f\u3002<strong>\u9009\u62e9\u5408\u9002\u7684\u5e93\u3001\u89e3\u6790TCP\/IP\u5c42\u6570\u636e\u3001\u5206\u6790\u5e94\u7528\u5c42\u6570\u636e\u3001\u5904\u7406\u4e8c\u8fdb\u5236\u6570\u636e\u3001\u5904\u7406HTTP\/HTTPS\u6570\u636e<\/strong>\u662f\u89e3\u6790\u7f51\u7edc\u5305\u7684\u5173\u952e\u6b65\u9aa4\u3002\u901a\u8fc7\u638c\u63e1\u8fd9\u4e9b\u6280\u672f\uff0c\u4f60\u5c06\u80fd\u591f\u9ad8\u6548\u5730\u89e3\u6790\u548c\u5206\u6790\u7f51\u7edc\u5305\uff0c\u83b7\u53d6\u6709\u4ef7\u503c\u7684\u4fe1\u606f\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u4f7f\u7528Python\u6293\u53d6\u7f51\u7edc\u5305\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u5e93\u5982Scapy\u3001Pyshark\u6216Tshark\u6765\u6293\u53d6\u7f51\u7edc\u5305\u3002Scapy\u662f\u4e00\u4e2a\u529f\u80fd\u5f3a\u5927\u7684\u7f51\u7edc\u5305\u5904\u7406\u5e93\uff0c\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u7f16\u5199\u7b80\u5355\u7684\u4ee3\u7801\u6765\u6355\u83b7\u548c\u5206\u6790\u6570\u636e\u5305\u3002\u800cPyshark\u662f\u4e00\u4e2a\u5c01\u88c5\u4e86Tshark\u7684\u5e93\uff0c\u7528\u6237\u53ef\u4ee5\u66f4\u65b9\u4fbf\u5730\u8bfb\u53d6\u548c\u89e3\u6790\u6293\u53d6\u7684\u6570\u636e\u5305\u3002<\/p>\n<p><strong>\u6293\u53d6\u5230\u7684\u7f51\u7edc\u5305\u6570\u636e\u5305\u542b\u54ea\u4e9b\u4fe1\u606f\uff1f<\/strong><br \/>\u7f51\u7edc\u5305\u901a\u5e38\u5305\u542b\u6e90\u548c\u76ee\u6807IP\u5730\u5740\u3001\u7aef\u53e3\u53f7\u3001\u534f\u8bae\u7c7b\u578b\uff08\u5982TCP\u3001UDP\u3001ICMP\u7b49\uff09\u3001\u6570\u636e\u8d1f\u8f7d\u548c\u65f6\u95f4\u6233\u7b49\u4fe1\u606f\u3002\u901a\u8fc7\u89e3\u6790\u8fd9\u4e9b\u4fe1\u606f\uff0c\u7528\u6237\u53ef\u4ee5\u4e86\u89e3\u7f51\u7edc\u901a\u4fe1\u7684\u5177\u4f53\u60c5\u51b5\u4ee5\u53ca\u53ef\u80fd\u5b58\u5728\u7684\u95ee\u9898\u3002<\/p>\n<p><strong>\u5982\u4f55\u5206\u6790\u6293\u53d6\u7684\u7f51\u7edc\u5305\u6570\u636e\u4ee5\u627e\u51fa\u95ee\u9898\uff1f<\/strong><br \/>\u5206\u6790\u7f51\u7edc\u5305\u6570\u636e\u53ef\u4ee5\u901a\u8fc7\u68c0\u67e5\u6570\u636e\u5305\u7684\u4f20\u8f93\u5ef6\u8fdf\u3001\u4e22\u5305\u7387\u3001\u91cd\u4f20\u6b21\u6570\u7b49\u6307\u6807\u6765\u8bc6\u522b\u7f51\u7edc\u95ee\u9898\u3002\u6b64\u5916\uff0c\u5206\u6790\u7279\u5b9a\u534f\u8bae\u7684\u884c\u4e3a\uff08\u5982HTTP\u8bf7\u6c42\u548c\u54cd\u5e94\uff09\u4e5f\u80fd\u5e2e\u52a9\u7528\u6237\u53d1\u73b0\u6f5c\u5728\u7684\u6027\u80fd\u74f6\u9888\u6216\u5b89\u5168\u6f0f\u6d1e\u3002\u4f7f\u7528Wireshark\u7b49\u5de5\u5177\u7ed3\u5408Python\u811a\u672c\uff0c\u53ef\u4ee5\u66f4\u52a0\u76f4\u89c2\u5730\u5c55\u793a\u548c\u5206\u6790\u8fd9\u4e9b\u6570\u636e\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u6293\u5305\u4e4b\u540e\u5982\u4f55\u89e3\u6790\u5305\uff1a\u4f7f\u7528\u5408\u9002\u7684\u5e93\u3001\u89e3\u6790TCP\/IP\u5c42\u6570\u636e\u3001\u5206\u6790\u5e94\u7528\u5c42\u6570\u636e\u3001\u5904\u7406\u4e8c\u8fdb\u5236\u6570\u636e\u3001\u5904\u7406HT [&hellip;]","protected":false},"author":3,"featured_media":1026104,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1026098"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=1026098"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1026098\/revisions"}],"predecessor-version":[{"id":1026107,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1026098\/revisions\/1026107"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1026104"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1026098"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1026098"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1026098"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}