{"id":58,"date":"2014-01-15T22:24:21","date_gmt":"2014-01-15T14:24:21","guid":{"rendered":"http:\/\/cmesoft.com\/?p=58"},"modified":"2014-01-15T23:24:55","modified_gmt":"2014-01-15T15:24:55","slug":"libpcap%e5%ad%a6%e4%b9%a0%e4%b9%8b%e4%b8%80%ef%bc%9aiptcp%e5%92%8cudp%e5%8d%8f%e8%ae%ae","status":"publish","type":"post","link":"http:\/\/cmesoft.com\/?p=58","title":{"rendered":"libpcap\u5b66\u4e60\u4e4b\u4e00\uff1aip,tcp\u548cudp\u534f\u8bae"},"content":{"rendered":"<p>\u8fd9\u4e2a\u4f8b\u5b50\u4f7f\u7528libpcap\u89e3\u6790\u7f51\u7edc\u62a5\u6587\uff0c\u6253\u5370tcp\/udp\u534f\u8bae\u7684\u5185\u5bb9\u3002<br \/>\n\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u8fd9\u4e2a\u7a0b\u5e8f\u7684\u7f16\u8bd1\u9700\u8981libpcap-devel\u652f\u6301\u3002<br \/>\n\u5982\u679c\u901a\u8fc7\u547d\u4ee4:<br \/>\n<coolcode lang=\"shell\"><br \/>\nrpm -qa | grep pcap<br \/>\n<\/coolcode><br \/>\n\u67e5\u770b\u4e0d\u5230 libpcap-devel\u7684\u8bdd\uff0c\u5c31\u9700\u8981<br \/>\n<coolcode lang=\"shell\"><br \/>\nsudo yum install libpcap-devel -y<br \/>\n<\/coolcode><br \/>\n\u6765\u5b89\u88c5\u8fd9\u4e2a\u5305\u3002<br \/>\n\u7136\u540e\u4e0b\u8f7d\u9644\u4ef6\u7684\u6e90\u7801<br \/>\n<a href=\"http:\/\/cmesoft.com\/wp-content\/uploads\/2014\/01\/pcap1.zip\">pcap1(\u70b9\u51fb\u5373\u53ef\u76f4\u63a5\u4e0b\u8f7d)<\/a><br \/>\n\u89e3\u538b\u7f29\uff0c\u8fdb\u5165\u76ee\u5f55\u4e2d\uff0c\u76f4\u63a5\u8fd0\u884c<br \/>\n<coolcode lang=\"shell\"><br \/>\nmake<br \/>\n<\/coolcode><br \/>\n\u5373\u53ef\u5b8c\u6210\u7f16\u8bd1\uff0c\u751f\u6210\u7684\u4e8c\u8fdb\u5236\u7a0b\u5e8f\u540d\u79f0\u4e3a &#8220;a&#8221;<br \/>\n\u5982\u4e0b\u8fd0\u884c:<br \/>\n<coolcode lang=\"shell\"><br \/>\nsudo .\/a bond0 (\u6216\u8005eth0\u7b49)<br \/>\n<\/coolcode><br \/>\n\u53ef\u4ee5\u770b\u5230\u89e3\u6790\u5230\u7684\u62a5\u6587\uff0c\u8f93\u51fa\u5982\u4e0b\uff1a<br \/>\n<coolcode lang=\"shell\"><br \/>\nDevice: bond0<br \/>\nNumber of packets: 10<br \/>\nFilter expression: udp<\/p>\n<p>Packet number 1:<br \/>\n       From: 0.0.0.0<br \/>\n         To: 255.255.255.255<br \/>\n   Protocol: UDP<br \/>\n   Src port: 68<br \/>\n   Dst port: 67<br \/>\nudp length:286<br \/>\nudp sum:17843<br \/>\n   Payload (278 bytes):<br \/>\n00000   01 01 06 00 5e 2a 4d cd  00 00 80 00 00 00 00 00    &#8230;.^*M&#8230;&#8230;&#8230;<br \/>\n00016   00 00 00 00 00 00 00 00  00 00 00 00 00 21 5e 2a    &#8230;&#8230;&#8230;&#8230;.!^*<br \/>\n00032   4d ec 00 00 00 00 00 00  00 00 00 00 00 00 00 00    M&#8230;&#8230;&#8230;&#8230;&#8230;<br \/>\n00048   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    &#8230;&#8230;&#8230;&#8230;&#8230;.<br \/>\n00064   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    &#8230;&#8230;&#8230;&#8230;&#8230;.<br \/>\n00080   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    &#8230;&#8230;&#8230;&#8230;&#8230;.<br \/>\n00096   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    &#8230;&#8230;&#8230;&#8230;&#8230;.<br \/>\n00112   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    &#8230;&#8230;&#8230;&#8230;&#8230;.<br \/>\n00128   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    &#8230;&#8230;&#8230;&#8230;&#8230;.<br \/>\n00144   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    &#8230;&#8230;&#8230;&#8230;&#8230;.<br \/>\n00160   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    &#8230;&#8230;&#8230;&#8230;&#8230;.<br \/>\n00176   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    &#8230;&#8230;&#8230;&#8230;&#8230;.<br \/>\n00192   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    &#8230;&#8230;&#8230;&#8230;&#8230;.<br \/>\n00208   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    &#8230;&#8230;&#8230;&#8230;&#8230;.<br \/>\n00224   00 00 00 00 00 00 00 00  00 00 00 00 63 82 53 63    &#8230;&#8230;&#8230;&#8230;c.Sc<br \/>\n00240   35 01 01 33 04 ff ff ff  ff 0c 08 36 34 39 41 41    5..3&#8230;&#8230;.649AA<br \/>\n00256   33 32 31 37 03 01 03 06  ff 00 00 00 00 00 00 00    3217&#8230;&#8230;&#8230;&#8230;<br \/>\n00272   00 00 00 00 00 00                                   &#8230;&#8230;<\/p>\n<p>Packet number 2:<br \/>\n       From: 10.232.2.102<br \/>\n         To: 10.232.2.254<br \/>\n   Protocol: UDP<br \/>\n   Src port: 38880<br \/>\n   Dst port: 53<br \/>\nudp length:46<br \/>\nudp sum:41840<br \/>\n   Payload (38 bytes):<br \/>\n00000   d6 a9 01 00 00 01 00 00  00 00 00 00 04 70 6f 70    &#8230;&#8230;&#8230;&#8230;.pop<br \/>\n00016   33 0b 61 6c 69 62 61 62  61 2d 69 6e 63 03 63 6f    3.alibaba-inc.co<br \/>\n00032   6d 00 00 01 00 01                                   m&#8230;..<\/p>\n<p>Packet number 3:<br \/>\n       From: 10.232.2.254<br \/>\n         To: 10.232.2.102<br \/>\n   Protocol: UDP<br \/>\n   Src port: 53<br \/>\n   Dst port: 38880<br \/>\nudp length:214<br \/>\nudp sum:60805<br \/>\n   Payload (206 bytes):<br \/>\n00000   d6 a9 81 80 00 01 00 01  00 04 00 04 04 70 6f 70    &#8230;&#8230;&#8230;&#8230;.pop<br \/>\n00016   33 0b 61 6c 69 62 61 62  61 2d 69 6e 63 03 63 6f    3.alibaba-inc.co<br \/>\n00032   6d 00 00 01 00 01 c0 0c  00 01 00 01 00 00 00 e9    m&#8230;&#8230;&#8230;&#8230;&#8230;<br \/>\n00048   00 04 2a 78 51 1b c0 11  00 02 00 01 00 00 02 02    ..*xQ&#8230;&#8230;&#8230;..<br \/>\n00064   00 15 04 6e 73 68 7a 0d  61 6c 69 62 61 62 61 6f    &#8230;nshz.alibabao<br \/>\n00080   6e 6c 69 6e 65 c0 1d c0  11 00 02 00 01 00 00 02    nline&#8230;&#8230;&#8230;..<br \/>\n00096   02 00 07 04 6e 73 70 32  c0 47 c0 11 00 02 00 01    &#8230;.nsp2.G&#8230;&#8230;<br \/>\n00112   00 00 02 02 00 06 03 6e  73 38 c0 47 c0 11 00 02    &#8230;&#8230;.ns8.G&#8230;.<br \/>\n00128   00 01 00 00 02 02 00 06  03 6e 73 70 c0 47 c0 76    &#8230;&#8230;&#8230;nsp.G.v<br \/>\n00144   00 01 00 01 00 01 bf b5  00 04 6e 4b d9 03 c0 88    &#8230;&#8230;&#8230;.nK&#8230;.<br \/>\n00160   00 01 00 01 00 01 c0 07  00 04 6e 4b d9 02 c0 42    &#8230;&#8230;&#8230;.nK&#8230;B<br \/>\n00176   00 01 00 01 00 01 c0 07  00 04 79 00 15 04 c0 63    &#8230;&#8230;&#8230;.y&#8230;.c<br \/>\n00192   00 01 00 01 00 01 c0 07  00 04 79 00 15 03          &#8230;&#8230;&#8230;.y&#8230;<br \/>\n<\/coolcode><br \/>\n\u6ce8\u610f<br \/>\n<b>(1): \u534f\u8bae\u7c7b\u578b<\/b><br \/>\n\u4e5f\u53ef\u4ee5\u628a\u8fc7\u6ee4\u5668\u5b57\u7b26\u4e32\u4eceip\u4fee\u6539\u4e3atcp\u6216\u8005udp,\u6bd4\u5982\u4f60\u53ef\u4ee5\u628a\u4ee3\u7801\u884c:<br \/>\n<coolcode lang=\"c\"><br \/>\n char filter_exp[] = &#8220;ip&#8221;;<br \/>\n<\/coolcode><br \/>\n\u4fee\u6539\u4e3a:<br \/>\n<coolcode lang=\"c\"><br \/>\n char filter_exp[] = &#8220;udp&#8221;;<br \/>\n<\/coolcode><br \/>\n\u8fd9\u6837\uff0c\u5c31\u53ea\u4f1a\u8fc7\u6ee4\u6307\u5b9a\u534f\u8bae\u7684\u62a5\u6587\u5230\u56de\u8c03\u51fd\u6570 got_packet\u3002<\/p>\n<p><b>(2): \u5904\u7406\u5305\u4e2a\u6570<\/b><br \/>\n\u5728\u4ee3\u7801<br \/>\n<coolcode lang=\"c\" ><br \/>\npcap_loop (handle, -1, got_packet, NULL);<br \/>\n<\/coolcode><br \/>\n\u4e2d\uff0c\u5f53\u7b2c\u4e8c\u4e2a\u53c2\u6570\u4e3a\u6b63\u6570num\u65f6\uff0c\u5904\u7406\u5230num\u4e2a\u5305\u5c31\u4f1a\u9000\u51fa\uff0c\u800c\u4e3a-1\u65f6\uff0c\u5c31\u4f1a\u4e00\u76f4\u5904\u7406\u4e0b\u53bb\uff0c\u8fd9\u70b9\u8981\u6ce8\u610f\u4e0b\u3002<br \/>\n<b>(3): \u6838\u5fc3\u4ee3\u7801\u7247\u6bb5<\/b><br \/>\n\u8fd9\u4e2a\u4f8b\u5b50\u7684\u6838\u5fc3\u51fd\u6570\u662f\uff1a<br \/>\n<coolcode lang=\"c++\"><br \/>\nvoid<br \/>\ngot_packet (u_char * args, const struct pcap_pkthdr *header,<br \/>\n            const u_char * packet);<br \/>\n<\/coolcode><br \/>\n\u4ed6\u662f\u6ce8\u518c\u5230pcap\u7684\u56de\u8c03\u51fd\u6570\uff0c\u7528\u4e8e\u5904\u7406\u7ecf\u8fc7\u89c4\u5219 filter_exp \u8fc7\u6ee4\u540e\u7684\u62a5\u6587\u3002<br \/>\n\u770b\u8fd9\u4e2a\u51fd\u6570\u4e4b\u524d\uff0c\u5148\u770b\u770b\u4ee3\u7801\u4e2d\u7684\u51e0\u4e2a\u6570\u636e\u7ed3\u6784\u5b9a\u4e49\u3002<br \/>\n\u9996\u5148\u662fMAC\u534f\u8bae\u5934\u548cIP\u534f\u8bae\u5934\u5b9a\u4e49\uff1a<br \/>\n<coolcode lang=\"c++\" ><br \/>\n\/* Ethernet header *\/<br \/>\nstruct sniff_ethernet<br \/>\n{<br \/>\n  u_char ether_dhost[ETHER_ADDR_LEN];   \/* destination host address *\/<br \/>\n  u_char ether_shost[ETHER_ADDR_LEN];   \/* source host address *\/<br \/>\n  u_short ether_type;           \/* IP? ARP? RARP? etc *\/<br \/>\n};<br \/>\n\/* IP header *\/<br \/>\nstruct sniff_ip<br \/>\n{<br \/>\n  u_char ip_vhl;                \/* version << 4 | header length >> 2 *\/<br \/>\n  u_char ip_tos;                \/* type of service *\/<br \/>\n  u_short ip_len;               \/* total length *\/<br \/>\n  u_short ip_id;                \/* identification *\/<br \/>\n  u_short ip_off;               \/* fragment offset field *\/<br \/>\n#define IP_RF 0x8000            \/* reserved fragment flag *\/<br \/>\n#define IP_DF 0x4000            \/* dont fragment flag *\/<br \/>\n#define IP_MF 0x2000            \/* more fragments flag *\/<br \/>\n#define IP_OFFMASK 0x1fff       \/* mask for fragmenting bits *\/<br \/>\n  u_char ip_ttl;                \/* time to live *\/<br \/>\n  u_char ip_p;                  \/* protocol *\/<br \/>\n  u_short ip_sum;               \/* checksum *\/<br \/>\n  struct in_addr ip_src, ip_dst;        \/* source and dest address *\/<br \/>\n};<br \/>\n<\/coolcode><br \/>\n\u5982\u679c\u4f60\u8fd8\u770b\u4e0d\u61c2\u8fd9\u4e24\u4e2a\u6570\u636e\u7ed3\u6784\u7684\u5b9a\u4e49\uff0c\u90a3\u4e48\uff0c\u8fc5\u901f\u53bb\u767e\u5ea6\u4e0btcp\/ip\u534f\u8bae\u56fe\u793a\uff0c\u5148\u5f04\u660e\u767dMAC\/IP\u5c42\u534f\u8bae\u5305\u542b\u4e86\u54ea\u4e9b\u5143\u7d20\u3002\u6216\u8005\u5b89\u88c5\u4e2awireshark\u6216\u8005tcpdump\u6293\u5305\u770b\u4e0b\u3002\u6700\u597d\u7684\u65b9\u5f0f\u5c31\u662f\u5728windows\u4e0b\u7528wireshark\u6293\u53d6\u4e00\u4e2a\u62a5\u6587\u770b\u4e0b\u7ed3\u6784\uff0c\u53e6\u5916\uff0c\u4e5f\u53ef\u4ee5\u9605\u8bfb\u300aTCP\/IP\u7b2c\u4e00\u5377\uff1a\u534f\u8bae\u300b\u6765\u638c\u63e1\u8fd9\u90e8\u5206\u77e5\u8bc6\u3002<\/p>\n<p>\u7b2c\u4e8c\u4e2a\u6570\u636e\u7ed3\u6784\u662fudp\u534f\u8bae\u5934\uff0c\u5728\u539f\u6765\u7684\u5f00\u6e90\u4ee3\u7801\u4e2d\u662f\u6ca1\u6709sniff_udp\u7ed3\u6784\u5b9a\u4e49\u7684\uff0c\u4e0d\u8fc7\u53c2\u8003ip\u548ctcp\u7ed3\u6784\u7684\u5b9a\u4e49\uff0c\u4ee5\u53caTCP\/IP\u534f\u8bae\u7ed3\u6784\u56fe\uff0c<br \/>\n\u5c31\u53ef\u4ee5\u5b9a\u4e49\u51fasniff_udp\u7684\u7ed3\u6784\uff0c\u5982\u4e0b\uff1a<br \/>\n<coolcode lang=\"c++\"><br \/>\nstruct sniff_udp<br \/>\n{<br \/>\n  uint16_t sport;               \/* source port *\/<br \/>\n  uint16_t dport;               \/* destination port *\/<br \/>\n  uint16_t udp_length;<br \/>\n  uint16_t udp_sum;             \/* checksum *\/<br \/>\n};<br \/>\n<\/coolcode><br \/>\nudp\u534f\u8bae\u662f\u6bd4\u8f83\u7b80\u5355\u7684\uff0ctcp\u7ed3\u6784\u7531\u4e8e\u5176\u534f\u8bae\u590d\u6742\uff0c\u6570\u636e\u7ed3\u6784\u4e5f\u5c31\u590d\u6742\u591a\u4e86\uff0c\u5b9a\u4e49\u5982\u4e0b\uff1a<br \/>\n<coolcode lang=\"c\"><br \/>\nstruct sniff_tcp<br \/>\n{<br \/>\n  u_short th_sport;             \/* source port *\/<br \/>\n  u_short th_dport;             \/* destination port *\/<br \/>\n  tcp_seq th_seq;               \/* sequence number *\/<br \/>\n  tcp_seq th_ack;               \/* acknowledgement number *\/<br \/>\n  u_char th_offx2;              \/* data offset, rsvd *\/<br \/>\n#define TH_OFF(th)      (((th)->th_offx2 &#038; 0xf0) >> 4)<br \/>\n  u_char th_flags;<br \/>\n#define TH_FIN  0x01<br \/>\n#define TH_SYN  0x02<br \/>\n#define TH_RST  0x04<br \/>\n#define TH_PUSH 0x08<br \/>\n#define TH_ACK  0x10<br \/>\n#define TH_URG  0x20<br \/>\n#define TH_ECE  0x40<br \/>\n#define TH_CWR  0x80<br \/>\n#define TH_FLAGS        (TH_FIN|TH_SYN|TH_RST|TH_ACK|TH_URG|TH_ECE|TH_CWR)<br \/>\n  u_short th_win;               \/* window *\/<br \/>\n  u_short th_sum;               \/* checksum *\/<br \/>\n  u_short th_urp;               \/* urgent pointer *\/<br \/>\n};<br \/>\n<\/coolcode><br \/>\n\u7136\u540e\uff0cmac\u5934\uff0cip\u5934\uff0ctcp\u5934\u548cudp\u5934\u7684\u89e3\u6790\u5c31\u6bd4\u8f83\u5bb9\u6613\u770b\u61c2\u4e86\uff1a<br \/>\n<coolcode lang=\"c\"><br \/>\n\/* define ethernet header *\/<br \/>\n  ethernet = (struct sniff_ethernet *) (packet);<\/p>\n<p>\/* define\/compute ip header offset *\/<br \/>\n  ip = (struct sniff_ip *) (packet + SIZE_ETHERNET);<\/p>\n<p>\/* define\/compute tcp header offset *\/<br \/>\n      tcp = (struct sniff_tcp *) (packet + SIZE_ETHERNET + size_ip);<br \/>\n      udp = (struct sniff_udp *) (packet + SIZE_ETHERNET + size_ip);<br \/>\n<\/coolcode><br \/>\ntcp\u548cudp\u7684payload\u4e5f\u662f\u6839\u636e\u534f\u8bae\u6765\u8ba1\u7b97\u7684\uff1a<br \/>\n<coolcode lang=\"c\"><br \/>\n \/* define\/compute tcp payload (segment) offset *\/<br \/>\n      payload = (u_char *) (packet + SIZE_ETHERNET + size_ip + size_tcp);<\/p>\n<p>      \/* compute tcp payload (segment) size *\/<br \/>\n      size_payload = ntohs (ip->ip_len) &#8211; (size_ip + size_tcp);<\/p>\n<p>      payload = (u_char *) (packet + SIZE_ETHERNET + size_ip + 8);<br \/>\n      size_payload = ntohs (ip->ip_len) &#8211; (size_ip + 8);<br \/>\n<\/coolcode><br \/>\n\u6700\u540e\u662f\u6253\u5370payload\u7684\u4ee3\u7801\u7247\u6bb5\uff1a<br \/>\n<coolcode lang=\"c\"><br \/>\nvoid<br \/>\nprint_payload (const u_char * payload, int len)<br \/>\n{<\/p>\n<p>  int len_rem = len;<br \/>\n  int line_width = 16;\t\t\/* number of bytes per line *\/<br \/>\n  int line_len;<br \/>\n  int offset = 0;\t\t\/* zero-based offset counter *\/<br \/>\n  const u_char *ch = payload;<\/p>\n<p>  if (len <= 0)\n    return;\n\n  \/* data fits on one line *\/\n  if (len <= line_width)\n    {\n      print_hex_ascii_line (ch, len, offset);\n      return;\n    }\n\n  \/* data spans multiple lines *\/\n  for (;;)\n    {\n      \/* compute current line length *\/\n      line_len = line_width % len_rem;\n      \/* print line *\/\n      print_hex_ascii_line (ch, line_len, offset);\n      \/* compute total remaining *\/\n      len_rem = len_rem - line_len;\n      \/* shift pointer to remaining bytes to print *\/\n      ch = ch + line_len;\n      \/* add offset *\/\n      offset = offset + line_width;\n      \/* check if we have line width chars or less *\/\n      if (len_rem <= line_width)\n\t{\n\t  \/* print last line and get out *\/\n\t  print_hex_ascii_line (ch, len_rem, offset);\n\t  break;\n\t}\n    }\n\n  return;\n}\n<\/coolcode><br \/>\n\u6574\u4e2a\u7a0b\u5e8f\u57fa\u672c\u4e0a\u5c31\u5206\u6790\u5b8c\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8fd9\u4e2a\u4f8b\u5b50\u4f7f\u7528libpcap\u89e3\u6790\u7f51\u7edc\u62a5\u6587\uff0c\u6253\u5370tcp\/udp\u534f\u8bae\u7684\u5185\u5bb9\u3002 \u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u8fd9\u4e2a\u7a0b\u5e8f\u7684\u7f16\u8bd1\u9700\u8981lib&hellip;&nbsp;<a href=\"http:\/\/cmesoft.com\/?p=58\" rel=\"bookmark\">Read More &raquo;<span class=\"screen-reader-text\">libpcap\u5b66\u4e60\u4e4b\u4e00\uff1aip,tcp\u548cudp\u534f\u8bae<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","footnotes":""},"categories":[12],"tags":[],"class_list":["post-58","post","type-post","status-publish","format-standard","hentry","category-12"],"_links":{"self":[{"href":"http:\/\/cmesoft.com\/index.php?rest_route=\/wp\/v2\/posts\/58","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/cmesoft.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/cmesoft.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/cmesoft.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/cmesoft.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=58"}],"version-history":[{"count":11,"href":"http:\/\/cmesoft.com\/index.php?rest_route=\/wp\/v2\/posts\/58\/revisions"}],"predecessor-version":[{"id":71,"href":"http:\/\/cmesoft.com\/index.php?rest_route=\/wp\/v2\/posts\/58\/revisions\/71"}],"wp:attachment":[{"href":"http:\/\/cmesoft.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=58"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/cmesoft.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=58"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/cmesoft.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=58"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}