{"id":880,"date":"2024-02-10T22:18:33","date_gmt":"2024-02-10T14:18:33","guid":{"rendered":"https:\/\/www.yizishun.com\/?p=880"},"modified":"2024-03-21T20:21:16","modified_gmt":"2024-03-21T12:21:16","slug":"glibc-2-31-malloc%e7%9b%b8%e5%85%b3%e6%ba%90%e7%a0%81%e5%88%9d%e6%8e%a2","status":"publish","type":"post","link":"https:\/\/www.yizishun.com\/?p=880","title":{"rendered":"glibc 2.31 malloc\u76f8\u5173\u6e90\u7801\u521d\u63a2"},"content":{"rendered":"\n<p class=\"has-medium-font-size\" style=\"letter-spacing:2px\">\u4e3a\u4e86\u770b\u8fd9\u4e2a\uff0c\u6211\u7279\u610f\u5b66\u4e60\u4e86\u4e00\u4e0bvscode\uff08\u4e4b\u524d\u6211\u90fd\u662f0\u914d\u7f6evim\u6765\u9605\u8bfb\u7684\uff0c\u60f3\u7740\u7528\u70b9\u73b0\u4ee3\u4e00\u70b9\u7684\u5de5\u5177hhh\uff09<\/p>\n\n\n\n<h1 class=\"wp-block-heading has-large-font-size\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">__libc_malloc\u51fd\u6570<\/mark><\/strong><\/h1>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"892\" height=\"1024\" src=\"https:\/\/www.yizishun.com\/wp-content\/uploads\/2024\/02\/2024-02-10_220843-892x1024.png\" alt=\"\" class=\"wp-image-881\" srcset=\"https:\/\/www.yizishun.com\/wp-content\/uploads\/2024\/02\/2024-02-10_220843-892x1024.png 892w, https:\/\/www.yizishun.com\/wp-content\/uploads\/2024\/02\/2024-02-10_220843-261x300.png 261w, https:\/\/www.yizishun.com\/wp-content\/uploads\/2024\/02\/2024-02-10_220843-768x882.png 768w, https:\/\/www.yizishun.com\/wp-content\/uploads\/2024\/02\/2024-02-10_220843-1338x1536.png 1338w, https:\/\/www.yizishun.com\/wp-content\/uploads\/2024\/02\/2024-02-10_220843-1783x2048.png 1783w, https:\/\/www.yizishun.com\/wp-content\/uploads\/2024\/02\/2024-02-10_220843.png 1908w\" sizes=\"auto, (max-width: 892px) 100vw, 892px\" \/><\/figure>\n\n\n\n<p class=\"has-medium-font-size\" style=\"letter-spacing:2px\">\u6b64\u51fd\u6570\u662f_int_malloc\u51fd\u6570\u7684\u5305\u88c5\u51fd\u6570\uff0c\u8be5\u51fd\u6570\u8003\u8651\u4e86hook\u51fd\u6570\uff0ctcache\uff08\u524d\u4e24\u4e2a\u4e0d\u5411\u7cfb\u7edf\u7533\u8bf7\u83b7\u53d6\u7a7a\u95f4\uff09\uff0c\u5355\u7ebf\u7a0b\uff0c\u591a\u7ebf\u7a0b\uff0c\uff08\u540e\u4e24\u4e2a\u5728\u4e0d\u540c\u7ebf\u7a0b\u4e0b\u60c5\u51b5\u9009\u62e9\u4e0d\u540c\u7684arena\u6765\u8c03\u7528_int_malloc\uff0c\u4f7f\u5f97_int_malloc\u51fd\u6570\u53ef\u4ee5\u4e13\u6ce8\u4e8e\u5206\u914d\u903b\u8f91\uff09<\/p>\n\n\n\n<h1 class=\"wp-block-heading has-large-font-size\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">__libc_free\u51fd\u6570<\/mark><\/strong><\/h1>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"794\" src=\"https:\/\/www.yizishun.com\/wp-content\/uploads\/2024\/02\/2024-02-10_220936-1024x794.png\" alt=\"\" class=\"wp-image-882\" srcset=\"https:\/\/www.yizishun.com\/wp-content\/uploads\/2024\/02\/2024-02-10_220936-1024x794.png 1024w, https:\/\/www.yizishun.com\/wp-content\/uploads\/2024\/02\/2024-02-10_220936-300x233.png 300w, https:\/\/www.yizishun.com\/wp-content\/uploads\/2024\/02\/2024-02-10_220936-768x596.png 768w, https:\/\/www.yizishun.com\/wp-content\/uploads\/2024\/02\/2024-02-10_220936-1536x1191.png 1536w, https:\/\/www.yizishun.com\/wp-content\/uploads\/2024\/02\/2024-02-10_220936.png 1826w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"has-medium-font-size\" style=\"letter-spacing:2px\">\u6b64\u51fd\u6570\u662f_int_free\u7684\u5305\u88c5\u51fd\u6570\uff0c\u8be5\u51fd\u6570\u8003\u8651\u4e86hook\u51fd\u6570\uff0cmmap\u533a\u57df\u91ca\u653e\uff08\u524d\u4e24\u4e2a\u65e0\u9700_int_free\uff09\uff0c\u5bfb\u627e\u5230\u5185\u5b58\u533a\u57df\u6240\u5728\u7684arena\uff0c\u5c06\u4ed6\u548cchunk\u6307\u9488\u4e00\u8d77\u4f20\u7ed9_int_free\u51fd\u6570\uff0c\u5728\u770b\u5b8c\u8fd9\u91cc\u6211\u6709\u70b9\u5947\u602a\uff0c\u4e3a\u4ec0\u4e48\u6ca1\u6709tcache\u7684\u91ca\u653e<\/p>\n\n\n\n<h1 class=\"wp-block-heading has-large-font-size\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">_int_malloc\u51fd\u6570\u548c_int_free\u51fd\u6570<\/mark><\/strong><\/h1>\n\n\n\n<p class=\"has-medium-font-size\" style=\"letter-spacing:2px\">\u6b64\u51fd\u6570\u6211\u6570\u4e86\u4e00\u4e0b\u5171\u6709600+\u884c\uff0c\u518d\u7b97\u4e0a\u5bf9\u5176\u4ed6\u51fd\u6570\u7684\u5f15\u7528\uff0cRTFSC\u7684\u538b\u529b\u771f\u5927\uff0c\u597d\u5728\u8fc7\u5e74\u8fd9\u51e0\u5929\u4e5f\u6ca1\u4ec0\u4e48\u4e8b<\/p>\n\n\n\n<p class=\"has-medium-font-size\" style=\"letter-spacing:2px\">\u7531\u4e8e\u56fe\u7247\u592a\u957f\u65e0\u6cd5\u4e0a\u4f20\uff0c\u6211\u5c06\u6ce8\u91ca\u7248\u653e\u5728\u4e86github\u4e0a\uff0c\u94fe\u63a5\u5982\u4e0b<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-white-color\"><a href=\"https:\/\/github.com\/yizishun\/malloc_chinese_comment\/blob\/master\/malloc.c\">malloc_chinese_comment\/malloc.c at master \u00b7 yizishun\/malloc_chinese_comment (github.com)<\/a><\/mark><\/p>\n\n\n\n<p class=\"has-medium-font-size\" style=\"letter-spacing:3px\">\u5199\u7684\u4e0d\u597d\u6b22\u8fce\u63d0pr\ud83d\ude0a<\/p>\n\n\n\n<h1 class=\"wp-block-heading has-large-font-size\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">\u76f8\u5173\u68c0\u6d4b<\/mark><\/strong><\/h1>\n\n\n\n<p class=\"has-medium-font-size\" style=\"letter-spacing:2px\">\u4f17\u6240\u5468\u77e5\uff0cptmalloc\u4e2d\u5f88\u591a\u7684\u68c0\u6d4b\u662f\u963b\u6b62\u6211\u4eec\u653b\u51fb\u7684\u969c\u788d\uff0c\u6b63\u6240\u8c13\u201c\u77e5\u5df1\u77e5\u5f7c\uff0c\u767e\u6218\u4e0d\u6b86\u201d\uff0c\u6211\u4eec\u5e94\u8be5\u77e5\u9053\u6709\u54ea\u4e9b\u68c0\u6d4b\u5e76\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u7ed5\u8fc7\u8fd9\u4e9b\u68c0\u6d4b\u6765\u8fbe\u5230\u6211\u4eec\u653b\u51fb\u7684\u76ee\u7684\uff0c\u6240\u4ee5\u63a5\u4e0b\u6765\u6211\u5c06\u4f1a\u5217\u51fa\u5927\u591a\u662flibc2.31\uff08\u53ef\u80fd\u8fd8\u4f1a\u6709\u5c11\u91cf\u5176\u4ed6\u7248\u672c\u7684\u68c0\u6d4b\uff09\u4e2d\u7684\u4e00\u4e9b\u76f8\u5173\u68c0\u6d4b\uff0c\u82e5\u662f\u6211\u5199\u9898\u65f6\u9047\u89c1\u4e86\u9488\u5bf9\u7279\u5b9a\u68c0\u6d4b\u7684\u7ed5\u8fc7\u65b9\u6cd5\uff0c\u6211\u4e5f\u4f1a\u5199\u51fa\u6765\uff0c\u8fd9\u4e2a\u5185\u5bb9\u6211\u4f1a\u4e0d\u65ad\u589e\u52a0\u7684\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading has-medium-font-size\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-green-cyan-color\">Tcache\u76f8\u5173\u68c0\u6d4b<\/mark><\/h2>\n\n\n\n<p class=\"has-medium-font-size\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-light-green-cyan-color\">1.tcache in malloc<\/mark><\/strong><\/p>\n\n\n\n<p class=\"has-medium-font-size\" style=\"letter-spacing:2px\"><strong>\uff08-libc2.31\uff09\uff1a<\/strong><\/p>\n\n\n\n<p class=\"has-medium-font-size\" style=\"letter-spacing:2px\"> \u6ca1\u6709\u4efb\u4f55\u68c0\u6d4b<\/p>\n\n\n\n<p class=\"has-medium-font-size\" style=\"letter-spacing:2px\"><strong>\uff08libc2.32-\uff09\uff1a<\/strong><\/p>\n\n\n\n<p class=\"has-medium-font-size\" style=\"letter-spacing:2px\"><strong>\u68c0\u6d4b\u62a5\u9519\u4fe1\u606f<\/strong>\uff1a<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">malloc(): unaligned tcache chunk detected<\/mark><br><strong>\u539f\u56e0<\/strong>\uff1a\u5c1d\u8bd5malloc\u4e00\u4e2a\u7279\u5b9a\u5730\u5740\u7684tcache chunk\u65f6\uff0c\u68c0\u6d4bentries\u7684\u5730\u5740\u662f\u5426\u662f\u5bf9\u9f50\u7684(\u56e0\u4e3a\u662fLIFO\uff0c\u6240\u4ee5\u68c0\u6d4b\u5f00\u5934)\uff0c\u56e0\u4e3a2.32\u5f15\u5165\u4e86safe-linking\u673a\u5236\uff0c\u5bfc\u81f4\u771f\u6b63\u5728\u5355\u94fe\u8868\u4e2d\u7684\u6307\u9488\u503c\u662f\u7ecf\u8fc7\u52a0\u5bc6\u7684\uff0c\u82e5\u662f\u968f\u610f\u66f4\u6539\u4e86next\u7684\u6307\u9488\uff0c\u7ecf\u8fc7\u89e3\u5bc6\u5230entries\u4f1a\u5bfc\u81f4\u5730\u5740\u4e0d\u5bf9\u9f50\uff0c\u4ece\u800c\u65e0\u6cd5\u4ecetcache\u4e2d\u62ff\u51fa\u6765\uff08tcache_get\uff09\uff08\u8bb0\u4f4f\u53ea\u6709entries\u7684\u5730\u5740\u662f\u7ecf\u8fc7\u89e3\u5bc6\u7684\uff0c\u5355\u94fe\u8868\u7684\u5176\u4ed6\u6307\u9488\u90fd\u662f\u52a0\u5bc6\u7684\uff09<br><strong>\u9632\u62a4\u7684\u653b\u51fb\uff1a<\/strong>tcache poisoning<br><strong>\u7ed5\u8fc7\u65b9\u5f0f<\/strong>\uff1asafe-ling\u7ed5\u8fc7\uff1a\u5728aslr\u4e2d\u6cc4\u9732heap\u5730\u5740\uff0c\u4ece\u800c\u5f97\u5230\u5b58\u653enext\u6307\u9488\u7684\u5730\u5740\uff0c\u5c06\u52a0\u5bc6\u8fc7\u540e\u7684\u6307\u9488\u5199\u5165next\u57df\uff0c\u5b9e\u73b0poisoning<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-light-green-cyan-color\">2.tcache in free<\/mark><\/strong><\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>\uff08ALL\uff09\uff1a<\/strong><\/p>\n\n\n\n<p class=\"has-medium-font-size\" style=\"letter-spacing:2px\"><strong>\u68c0\u6d4b\u62a5\u9519\u4fe1\u606f<\/strong>\uff1a<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">free(): double free detected in tcache 2<\/mark><br><strong>\u539f\u56e0\uff1a<\/strong>tcache\u4e2d\u7684double free\u5f88\u96be\u7ed5\u8fc7\uff0c\u56e0\u4e3a\u4ed6\u5728\u6bcf\u4e00\u4e2atcache\u7684\u7ed3\u6784\u4f53\u7d27\u6328next\u57df\u6709\u4e00\u4e2akey\u57df\u4e13\u95e8\u7528\u6765\u68c0\u6d4bdouble free\u7684\uff0c\u6bcf\u4e00\u4e2afree\u8fc7\u7684chunk key\u57df\u90fd\u662ftcache\u7684\u5730\u5740\uff0cso tcache\u4e00\u822c\u6253malloc\uff0cfastbin\u4e00\u822c\u6253double free<br><strong>\u9632\u62a4\u7684\u653b\u51fb\uff1a<\/strong>tcache double free<br><strong>\u7ed5\u8fc7\u65b9\u5f0f\uff1a<\/strong>\u4e00\u822c\u6765\u8bf4\u9700\u8981\u6253double free\u7684\u90fd\u662f\u6ca1\u6709edit\u51fd\u6570\u76f4\u63a5\u7be1\u6539fd\u6216\u8005next\u7684\uff0c\u6240\u4ee5\u6ca1\u5fc5\u8981\u6253tcache\u7684double free\uff0c\u53ef\u4ee5\u628atcache\u586b\u6ee1\u6253fastbin\u7684double free\uff0cfastbin malloc\u4e00\u4e2a\u4e4b\u540e\u4f1a\u5c06\u5176\u4ed6\u540c\u5927\u5c0f\u7684\u7684\u5e26\u5230tcache\u4e2d\uff08\u8bb0\u5f97fastbin\u4e5f\u9700\u8981\u8003\u8651safe-linking\uff08libc2.32\u4e4b\u540e\uff09\uff09<\/p>\n\n\n\n<p class=\"has-medium-font-size\" style=\"letter-spacing:3px\"><strong>\uff08libc2.32-\uff09:<\/strong><\/p>\n\n\n\n<p class=\"has-medium-font-size\" style=\"letter-spacing:2px\"><strong>\u68c0\u6d4b\u62a5\u9519\u4fe1\u606f\uff1a<\/strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">free(): unaligned chunk detected in tcache 2<\/mark><br><strong>\u539f\u56e0\uff1a<\/strong>\u904d\u5386\u6240\u6709tcahce\u65f6\u4f1a\u68c0\u6d4btcache\u4e2d\u6240\u6709chunk\u7684next\u57df\u7684\u89e3\u5bc6\u60c5\u51b5\uff0c\u6bcf\u4e2a\u89e3\u5bc6\u90fd\u9700\u8981\u6b63\u786e\u5bf9\u9f50\u7684<br><strong>\u9632\u62a4\u7684\u653b\u51fb\uff1a<\/strong>tcache poisoning<br><strong>\u7ed5\u8fc7\uff1a<\/strong>safe-linking\u7ed5\u8fc7\uff0c\u89c1\u4e0a<\/p>\n\n\n\n<p class=\"has-medium-font-size\" style=\"letter-spacing:2px\"><strong>\uff08\uff1f-libc2.35-\uff09<\/strong><\/p>\n\n\n\n<p class=\"has-medium-font-size\" style=\"letter-spacing:2px\"><strong>\u68c0\u6d4b\u62a5\u9519\u4fe1\u606f\uff1a<\/strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">free(): too many chunks detected in tcache<\/mark><br><strong>\u539f\u56e0\uff1a<\/strong>\u904d\u5386\u6240\u6709tcache\u65f6\u4f1a\u987a\u4fbf\u8bb0\u5f55\u6570\u91cf\uff0c\u82e5\u53d1\u73b0\u6570\u91cf\u5c0f\u4e8emp_.tcache_count\uff0c\u62a5\u9519\u9000\u51fa\uff0c\u867d\u7136\u4e0d\u77e5\u9053\u8fd9\u4e2a\u5177\u4f53\u7684\u653b\u51fb\u65b9\u5f0f\uff0c\u4f46\u662f\u53ef\u4ee5\u770b\u5230\u8fd9\u4e2a\u5f88\u660e\u663e\u662f\u4e3a\u4e86\u9632\u6b62\u5bf9tcache-&gt;counts[tc_idx]\u7684\u7be1\u6539<\/p>\n\n\n\n<h2 class=\"wp-block-heading has-medium-font-size\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-green-cyan-color\">Fastbin\u76f8\u5173\u68c0\u6d4b<\/mark><\/strong><\/h2>\n\n\n\n<p class=\"has-medium-font-size\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-light-green-cyan-color\">1.fastbin in malloc<\/mark><\/strong><\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>\uff08ALL\uff09<\/strong><\/p>\n\n\n\n<p class=\"has-medium-font-size\" style=\"letter-spacing:2px\"><strong>\u68c0\u6d4b\u62a5\u9519\u4fe1\u606f\uff1a<\/strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">malloc(): memory corruption (fast)<\/mark><br><strong>\u539f\u56e0\uff1a<\/strong>\u68c0\u6d4b\u5373\u5c06malloc\u51fa\u6765\u7684\u90a3\u4e2achunk\u7684size\u57df<br><strong>\u9632\u62a4\u7684\u653b\u51fb\uff1a<\/strong>fastbin poisoning\uff1f(\u4f30\u8ba1\u662f\u9488\u5bf9\u6ca1\u6709tcache\u7684\u9632\u62a4)<br><strong>\u7ed5\u8fc7\u65b9\u6cd5\uff1a<\/strong>\u9ad8\u7248\u672c\u80af\u5b9a\u60f3\u529e\u6cd5\u5728tcache bin\u4e2dmalloc\u51fa\u6765\uff08\u56e0\u4e3a\u4ecefastbin\u4e2dmalloc\u7b2c\u4e00\u4e2a\u540e\u4f1a\u628a\u5176\u4ed6\u76f8\u540c\u5927\u5c0f\u7684chunk\u5e26\u5230tcache bin\u4e2d\uff0c\u53ea\u8981\u786e\u4fdd\u9700\u8981malloc\u5230\u76ee\u6807\u5730\u5740\u7684\u65f6\u5019\u8be5chunk\u5b58\u5728\u4e8etcachebin\u5373\u53ef\uff09\uff0c\u4f4e\u7248\u672c\u7684\u8bdd\u53ea\u80fd\u4f7f\u7528\u5b57\u8282\u9519\u4f4d\uff08\u5373\u5728\u76ee\u6807\u5730\u5740\u9644\u8fd1\u5bfb\u627e\u4e00\u4e2a\u53ef\u4ee5\u5145\u5f53size\u57df\u7684\u6570\u636e\u5730\u5740\uff0c\u5373\u4f2a\u9020size\u57df\u7ed5\u8fc7\u68c0\u6d4b\uff09<\/p>\n\n\n\n<p class=\"has-medium-font-size\" style=\"letter-spacing:2px\"><strong>\uff08libc2.32-\uff09<\/strong><\/p>\n\n\n\n<p class=\"has-medium-font-size\" style=\"letter-spacing:2px\"><strong>\u68c0\u6d4b\u62a5\u9519\u4fe1\u606f\uff1a<\/strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">malloc(): unaligned fastbin chunk detected 1\/2\/3<\/mark><br><strong>\u539f\u56e0\uff1a<\/strong>fastbin\u662f\u5355\u94fe\u8868\u6240\u4ee5\u4e5f\u6709safe-linking\uff0c\u8fd9\u4e2a\u5c31\u662f\u68c0\u6d4b\u5c06fd\u89e3\u5bc6\u4e4b\u540e\u7684\u5730\u5740\u662f\u5426\u5bf9\u9f50<br><strong>\u9632\u62a4\u7684\u653b\u51fb\uff1a<\/strong>poisoning\u66f4\u6539\u5355\u94fe\u8868<br><strong>\u7ed5\u8fc7\u65b9\u6cd5\uff1a<\/strong>safe-linking\u7ed5\u8fc7\uff0c\uff08\u6240\u4ee5\u53ef\u4ee5\u770b\u5230\uff0c2.32\u4e4b\u540e\u90fd\u662f\u9700\u8981\u6cc4\u9732heap\u5730\u5740\u7684\uff09<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-light-green-cyan-color\">2.fastbin in free<\/mark><\/strong><\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>\uff08ALL\uff09<\/strong><\/p>\n\n\n\n<p class=\"has-medium-font-size\" style=\"letter-spacing:2px\"><strong>\u68c0\u6d4b\u62a5\u9519\u4fe1\u606f\uff1a<\/strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">free(): invalid next size (fast)<\/mark><br><strong>\u539f\u56e0\uff1a<\/strong>\u662f\u5bf9free\u7684\u6b64chunk\u7684\u4e0b\u4e00\u4e2achunk\uff08\u9760\u8fd1top\u7684\uff09\u7684size\u57df\u8fdb\u884c\u4e0a\u4e0b\u754c\u68c0\u6d4b\uff0c\u6682\u65f6\u6ca1\u9047\u5230\u8fc7<\/p>\n\n\n\n<p class=\"has-medium-font-size\" style=\"letter-spacing:2px\"><strong>\u68c0\u6d4b\u62a5\u9519\u4fe1\u606f\uff1a<\/strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">double free or corruption (fasttop)<\/mark><br><strong>\u539f\u56e0\uff1a<\/strong>\u662f\u5bf9fastbin\u7684double free\u7684\u68c0\u6d4b\uff0c\u4f46\u662f\u68c0\u6d4b\u673a\u5236\u662f\u53ea\u68c0\u6d4b\u662f\u5426\u8fde\u7eedfree\uff08\u56e0\u4e3a\u5168\u90e8\u68c0\u6d4b\u5f71\u54cd\u6027\u80fd\uff0c\u8fd8\u4e0d\u80fd\u4f7f\u7528tcache\u4e13\u95e8\u7684\u7ed3\u6784\u4f53\uff0c\u5bfc\u81f4\u6b64\u68c0\u6d4b\u5f88\u5bb9\u6613\u7ed5\u8fc7\uff09<br><strong>\u9632\u62a4\u7684\u653b\u51fb\uff1a<\/strong>fastbin double free<br><strong>\u7ed5\u8fc7\u65b9\u6cd5\uff1a<\/strong>\u9694\u4e00\u4e2a\u518dfree\uff0c\u4e0d\u8981\u8fde\u7eedfree\u540c\u4e00\u4e2a<\/p>\n\n\n\n<p class=\"has-medium-font-size\" style=\"letter-spacing:2px\"><strong>\u68c0\u6d4b\u62a5\u9519\u4fe1\u606f\uff1a<\/strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">invalid fastbin entry (free)<\/mark><br><strong>\u539f\u56e0\uff1a<\/strong>\u5bf9free\u7684chunk\u7684size\u57df\u8fdb\u884c\u68c0\u6d4b<br><strong>\u9632\u62a4\u7684\u653b\u51fb\uff1a<\/strong>\u7be1\u6539global_max_fast\uff0c\u5bfc\u81f4\u5c06\u9519\u8befsize\u7684chunk free\u8fdbfastbin<\/p>\n\n\n\n<h2 class=\"wp-block-heading has-medium-font-size\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-green-cyan-color\">small bin\u76f8\u5173\u68c0\u6d4b<\/mark><\/strong><\/h2>\n\n\n\n<p class=\"has-medium-font-size\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-light-green-cyan-color\">1.small bin in malloc<\/mark><\/strong><\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>\uff08ALL\uff09<\/strong><\/p>\n\n\n\n<p class=\"has-medium-font-size\" style=\"letter-spacing:2px\"><strong>\u68c0\u6d4b\u7684\u62a5\u9519\u4fe1\u606f\uff1a<\/strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">malloc(): smallbin double linked list corrupted<\/mark><br><strong>\u539f\u56e0\uff1a<\/strong>\u68c0\u6d4b\u5f53\u524dchunk\u7684bk\u6307\u9488\u6307\u5411\u7684chunk\u7684fd\u6307\u9488\u662f\u5426\u7b49\u4e8e\u5f53\u524dchunk<br><strong>\u9632\u62a4\u7684\u653b\u51fb\uff1a<\/strong>\u7be1\u6539\u53cc\u5411\u94fe\u8868\u7684bk\u6307\u9488\u5b9e\u73b0\u4efb\u610f\u5730\u5740\u5206\u914d<br><strong>\u7ed5\u8fc7\u65b9\u6cd5\uff1a<\/strong>house of lore\uff08\u5728\u76ee\u6807\u5730\u5740\u6784\u9020\u6b63\u786e\u7684fd\u6307\u9488\uff0c\u5177\u4f53\u8fd8\u6ca1\u8ba4\u771f\u5b66\uff09<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-light-green-cyan-color\">2.small bin in sort<\/mark><\/strong><\/p>\n\n\n\n<p>\u65e0\u68c0\u6d4b<\/p>\n\n\n\n<h2 class=\"wp-block-heading has-medium-font-size\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-green-cyan-color\">Unlink\u76f8\u5173\u68c0\u6d4b<\/mark><\/strong><\/h2>\n\n\n\n<p class=\"has-medium-font-size\" style=\"letter-spacing:2px\">unlink\u4e00\u822c\u4f7f\u7528\u5728\u5206\u914dlargebin\u65f6\u4ee5\u53ca\u5408\u5e76\u64cd\u4f5c\u65f6<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>\uff08?-libc2.27-\uff09<\/strong><\/p>\n\n\n\n<p class=\"has-medium-font-size\" style=\"letter-spacing:2px\"><strong>\u68c0\u6d4b\u7684\u62a5\u9519\u4fe1\u606f\uff1a<\/strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">corrupted size vs. prev_size<\/mark><br><strong>\u539f\u56e0\uff1a<\/strong>\u5bf9\u5f53\u524d\u7684chunk\u7684size\u57df\u548c\u524d\u4e00\u4e2a\u7684prev_size\u57df\u68c0\u6d4b\u662f\u5426\u5339\u914d\uff08\u7269\u7406chunk\u76f8\u90bb\u68c0\u6d4b\uff09<\/p>\n\n\n\n<p><strong>\uff08ALL\uff09<\/strong><\/p>\n\n\n\n<p class=\"has-medium-font-size\" style=\"letter-spacing:2px\"><strong>\u68c0\u6d4b\u7684\u62a5\u9519\u4fe1\u606f\uff1a<\/strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">corrupted double-linked list<\/mark><br><strong>\u539f\u56e0\uff1a<\/strong>\u68c0\u6d4b\u5f53\u524dchunk\u7684fd\u548cbk\u6307\u5411\u7684chunk\u7684bk\u548cfd\u6307\u9488\u662f\u5426\u6307\u5411\u5f53\u524dchunk\uff08\u53cc\u5411\u94fe\u8868\u76f8\u90bb\u68c0\u6d4b\uff08\u592a\u72e0\u4e86\uff09\uff09<\/p>\n\n\n\n<p class=\"has-medium-font-size\" style=\"letter-spacing:2px\"><strong>\u68c0\u6d4b\u7684\u62a5\u9519\u4fe1\u606f\uff1a<\/strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">corrupted double-linked list (not small)<\/mark><br><strong>\u539f\u56e0\uff1a<\/strong>\u68c0\u6d4b\u5f53\u524dchunk\u7684fd_nextsize\u548cbk_nextsize\u6307\u5411\u7684chunk\u7684bk_nextsize\u548cfd_nextsize\u662f\u5426\u6307\u5411\u5f53\u524dchunk\uff08largebin\u53cc\u5411\u94fe\u8868\u68c0\u6d4b\uff09<\/p>\n\n\n\n<h2 class=\"wp-block-heading has-medium-font-size\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-green-cyan-color\">large bin\u76f8\u5173\u68c0\u6d4b<\/mark><\/strong><\/h2>\n\n\n\n<p class=\"has-medium-font-size\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-light-green-cyan-color\">1.large bin in malloc<\/mark><\/strong><\/p>\n\n\n\n<p class=\"has-medium-font-size\" style=\"letter-spacing:2px\">\u89c1unlink\u68c0\u6d4b\u2191\uff0c\u4f3c\u4e4e\u6ca1\u6709\u4ec0\u4e48\u7ed5\u8fc7\u624b\u6bb5\u4e86\uff0c\u53ea\u80fd\u6253largebin in sort\u65f6\u7684largebin attack\u3002<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-light-green-cyan-color\">2.large bin in sort<\/mark><\/strong><\/p>\n\n\n\n<p class=\"has-medium-font-size\" style=\"letter-spacing:2px\"><strong>\u68c0\u6d4b\u7684\u62a5\u9519\u4fe1\u606f\uff1a<\/strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">malloc(): largebin double linked list corrupted (nextsize)<\/mark>\uff08\u4e2d\u95f4\u63d2\u5165\u65f6\uff09<br><strong>\u68c0\u6d4b\u7684\u62a5\u9519\u4fe1\u606f\uff1a<\/strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">malloc(): largebin double linked list corrupted (bk)<\/mark>\uff08\u4e2d\u95f4\u63d2\u5165\u65f6\uff09<br><strong>\u7ed5\u8fc7\u65b9\u6cd5\uff1a<\/strong>\u653e\u5230largebin\u65f6\u4e00\u822c\u662f\u60f3\u6253largebin attack\u5b9e\u73b0\u4efb\u610f\u5730\u5740\u5199chunk\u5730\u5740\uff0c\u7ed5\u8fc7\u8fd9\u4e24\u4e2a\u68c0\u6d4b\u53ea\u9700\u8981\u6bcf\u6b21\u63d2\u5165\u7684chunk\u662f\u8be5largebin\u4e2d\u6700\u5c0f\u7684\u5373\u53ef\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading has-medium-font-size\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-green-cyan-color\">unsorted bin\u76f8\u5173\u68c0\u6d4b<\/mark><\/strong><\/h2>\n\n\n\n<p class=\"has-medium-font-size\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-light-green-cyan-color\">1.unsorted bin in malloc<\/mark><\/strong><\/p>\n\n\n\n<p class=\"has-medium-font-size\" style=\"letter-spacing:2px\">\uff08unsorted bin\u4e00\u822c\u4e0d\u5728malloc\u65f6\u653b\u51fb\uff0c\u56e0\u4e3a\u68c0\u6d4b\u592a\u591a\uff09<\/p>\n\n\n\n<p class=\"has-medium-font-size\" style=\"letter-spacing:2px\"><strong>\u68c0\u6d4b\u7684\u62a5\u9519\u4fe1\u606f\uff1a<\/strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">malloc(): invalid size (unsorted)<\/mark>(\u9ad8\u7248\u672clibc\u7684\u63d0\u793a\u4fe1\u606f)<br>                       <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\"> malloc(): memory corruption<\/mark>(\u4f4e\u7248\u672clibc\u7684\u63d0\u793a\u4fe1\u606f)<br><strong>\u539f\u56e0\uff1a<\/strong>\u68c0\u6d4bchunk\u7684size\u57df\u7684\u5927\u5c0f\u662f\u5426\u5728\u4e0a\u4e0b\u9650\u5185\uff0c\u5a01\u80c1\u8f83\u5c11<\/p>\n\n\n\n<p class=\"has-medium-font-size\" style=\"letter-spacing:2px\"><strong>\u68c0\u6d4b\u7684\u62a5\u9519\u4fe1\u606f\uff1a<\/strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">malloc(): invalid next size (unsorted)<\/mark><br><strong>\u539f\u56e0\uff1a<\/strong>\u68c0\u6d4b\u4e0b\u4e00\u4e2achunk\u7684size\u57df\u5927\u5c0f\u662f\u5426\u5728\u4e0a\u4e0b\u9650\u5185\uff0c\u5a01\u80c1\u8f83\u5c11<\/p>\n\n\n\n<p class=\"has-medium-font-size\" style=\"letter-spacing:2px\"><strong>\u68c0\u6d4b\u7684\u62a5\u9519\u4fe1\u606f\uff1a<\/strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">malloc(): mismatching next-&gt;prev_size (unsorted)<\/mark><br><strong>\u539f\u56e0\uff1a<\/strong>\u68c0\u6d4b\u8be5chunk\u7684size\u662f\u5426\u4e0e\u4e0b\u4e00\u4e2achunk\u7684prev_size\u5339\u914d<\/p>\n\n\n\n<p class=\"has-medium-font-size\" style=\"letter-spacing:2px\"><strong>\u68c0\u6d4b\u7684\u62a5\u9519\u4fe1\u606f\uff1a<\/strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">malloc(): unsorted double linked list corrupted<\/mark><br><strong>\u539f\u56e0\uff1a<\/strong>\u68c0\u6d4b\u8be5chunk\u7684fd\u6307\u9488<\/p>\n\n\n\n<p class=\"has-medium-font-size\" style=\"letter-spacing:2px\"><strong>\u68c0\u6d4b\u7684\u62a5\u9519\u4fe1\u606f\uff1a<\/strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">malloc(): invalid next-&gt;prev_inuse (unsorted)<\/mark><br><strong>\u539f\u56e0\uff1a<\/strong>\u68c0\u6d4b\u4e0b\u4e00\u4e2achunk\u7684prev_inuse\u4f4d<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-light-green-cyan-color\">2.unsorted bin in sort<\/mark><\/strong> <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-light-green-cyan-color\"><strong>and splite<\/strong><\/mark><\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-light-green-cyan-color\">3.unsorted bin in free<\/mark><\/strong><\/p>\n\n\n\n<p>TODO<\/p>\n\n\n\n<h2 class=\"wp-block-heading has-medium-font-size\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">SUMMARY<\/mark><\/h2>\n\n\n\n<p class=\"has-medium-font-size\" style=\"letter-spacing:2px\">\u603b\u7ed3\u4e00\u4e0b\uff0c\u6211\u53d1\u73b0\uff08\u4ee5\u6211\u73b0\u5728\u7684\u77e5\u8bc6\uff09\u6bcf\u4e00\u4e2abin\u7684\u4e0d\u540c\u7684\u68c0\u6d4b\u65b9\u5f0f\u5bfc\u81f4\u6bcf\u4e00\u4e2a\u90fd\u6709\u6bcf\u4e00\u4e2a\u7684\u5f31\u70b9\uff0c\u5408\u7406\u5229\u7528\u6bcf\u4e00\u4e2a\u7684\u5f31\u70b9\uff0c\u6253\u51fa\u4e00\u5957\u7ec4\u5408\u6280\u624d\u80fd\u653b\u9677\u76ee\u6807<\/p>\n\n\n\n<p class=\"has-medium-font-size\" style=\"letter-spacing:2px\">\u6bd4\u5982\u8bf4tcache\u7684\u5f31\u70b9\u5728\u4e8emalloc\u51fa\u6765\u7684\u68c0\u6d4b\u8fc7\u5c11\uff0c\u5bfc\u81f4\u4e00\u822c\u6253\u4efb\u610f\u5730\u5740\u5206\u914d\uff08\u4efb\u610f\u5730\u5740\u5199\uff09\u4f1a\u5148\u8003\u8651\u5b83\uff0c\u5373tcache poisoning<\/p>\n\n\n\n<p class=\"has-medium-font-size\" style=\"letter-spacing:2px\">fastbin\u7684\u5f31\u70b9\u5728\u4e8e\u5bf9\u4e8edouble free\u7684\u68c0\u6d4b\u8fc7\u5c11\uff0c\u5bfc\u81f4\u7be1\u6539\u6307\u9488\u7684\u4efb\u52a1\u4f1a\u4ea4\u7ed9fastbin<\/p>\n\n\n\n<p class=\"has-medium-font-size\" style=\"letter-spacing:2px\">smallbin\u7684\u5f31\u70b9\u5728\u4e8emalloc\u65f6\u4e0d\u662f\u7528\u7684unlink\uff0c\u68c0\u6d4b\u76f8\u5bf9\u8f83\u5c11\uff0c\u82e5\u662ftcache\u548cfastbin\u4e0d\u80fd\u7528\uff0c\u7528smallbin\u6253house of lore\u4e5f\u884c\uff0c\u5e76\u4e14\u4ed6\u6bd5\u7adf\u662f\u4e00\u4e2a\u53cc\u5411\u94fe\u8868\uff0c\u6240\u4ee5\u6cc4\u9732\u5730\u5740\u7684\u4efb\u52a1\u53ef\u4ee5\u4ea4\u7ed9\u4ed6<\/p>\n\n\n\n<p class=\"has-medium-font-size\" style=\"letter-spacing:2px\">largebin\u7684\u5f31\u70b9\u5728\u4e8e\u5b83\u5206\u7c7b\u653e\u5165largebin\u65f6\u68c0\u6d4b\u4e0d\u4e25\u683c\uff0c\u5bfc\u81f4largbin attack\uff0c\u53ef\u4ee5\u5b9e\u73b0\u4efb\u610f\u5730\u5740\u5199\u5806\u5730\u5740\uff08\u8fd9\u4e48\u770b\u6765smallbin\u4e5f\u884c\uff1f\uff09<\/p>\n\n\n\n<p class=\"has-medium-font-size\" style=\"letter-spacing:2px\">unsorted bin\u7684\u5f31\u70b9\u9996\u5148\u4e5f\u662f\u53ef\u4ee5\u6cc4\u9732\u5730\u5740\uff0cemm\u5176\u4ed6\u7684\u6211\u8fd8\u4e0d\u6e05\u695a\uff0c\u4e4b\u540e\u518d\u8865\u5145\u5427<\/p>\n\n\n\n<p class=\"has-medium-font-size\" style=\"letter-spacing:2px\">\u6700\u540e\u7684\u6700\u540e\uff0c\u5806\u653b\u51fb\u9996\u5148\u4e5f\u662f\u9700\u8981\u6cc4\u9732\u5730\u5740\uff0c\u4e4b\u540e\u9700\u8981\u63a7\u5236\u7a0b\u5e8f\u6d41\u6765getshell\uff08\u6bd4\u5982\u5148\u4efb\u610f\u5730\u5740\u5206\u914d\/\u5199\uff0c\u5c06system\u6216\u8005\u5176\u4ed6shellcode\u7684\u5730\u5740\u5199\u5165hook\u5730\u5740\uff08hook\u4e4b\u540e\u79fb\u9664\uff0cIO\u76f8\u5173\u6307\u9488\u4e5f\u884c\uff09\uff09<\/p>\n\n\n\n<p class=\"has-medium-font-size\" style=\"letter-spacing:2px\">\u6211\u73b0\u5728\u7684\u76f8\u5173\u7ecf\u9a8c\u544a\u8bc9\u6211\uff0c1.\u4e00\u822c\u6cc4\u9732\u5730\u5740\u662f\u53cc\u5411\u94fe\u8868\u7684\u4e8b\u60c5\uff08\u4e00\u822c\u9700\u8981UAF\uff0c\u6216overlapping\u5236\u9020UAF\uff09\uff0c2.\u4efb\u610f\u5730\u5740\u5199\u4e00\u822c\u662f\u83b7\u5f97\u4efb\u610f\u5730\u5740\u7684chunk\uff0c\u8fd9\u4ef6\u4e8b\u4e00\u822c\u662ffastbin\u548ctcache\u914d\u5408\uff08\u6709\u65f6\u6ca1\u6709\u673a\u4f1a\u540c\u65f6\u83b7\u5f97\u8fd9\u4e24\u4e2achunk\uff0c\u6bd4\u5982\u53ea\u6709largebin\uff0c\u5c31\u53ef\u4ee5\u4fee\u6539\u53d8\u91cf\u83b7\u5f97tcache\uff0c\u6216\u8005\u53ea\u6709fastbin\uff0c\u5c31\u9700\u8981\u5b57\u8282\u9519\u4f4d\u5199\uff08\u4e0d\u8fc7\u5f88\u5c11\u5566\uff09\uff09\u9898\u76ee\u4e00\u822c\u4f1a\u7ed9\u6211\u51e0\u4e2a\u673a\u4f1a\uff0c\u6bd4\u5982\u7ed9\u4e86edit\u51fd\u6570\u90a3\u5c31\u4e0d\u9700\u8981fastbin\u5c31\u53ef\u4ee5\u4efb\u610f\u5730\u5740\u5206\u914d\u4e86\u7b49\u7b49<\/p>\n\n\n\n<p class=\"has-medium-font-size\" style=\"letter-spacing:2px\">\u6240\u4ee5\u57fa\u672c\u4e0a\u5806\u5229\u7528\u5f88\u591a\u65f6\u5019\u5c31\u662f\u56db\u6b65<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li class=\"has-medium-font-size\" style=\"letter-spacing:2px\">1.\u6cc4\u9732\u5730\u5740<\/li>\n\n\n\n<li class=\"has-medium-font-size\" style=\"letter-spacing:2px\">2.\u6539\u5199\u6307\u9488\u5230\u80fd\u63a7\u5236\u7a0b\u5e8f\u6d41\u7a0b\u7684\u6307\u9488\u5904\uff08\u6bd4\u5982hook\uff0cgot\uff0cio\uff09<\/li>\n\n\n\n<li class=\"has-medium-font-size\" style=\"letter-spacing:2px\">3.malloc\u5230\u8fd9\u4e2a\u4f4d\u7f6e<\/li>\n\n\n\n<li class=\"has-medium-font-size\" style=\"letter-spacing:2px\">4.\u6539\u4ed6\u7684\u5730\u5740\u4e3asystem\u6216\u8005\u5176\u4ed6getshell\u7684\u5730\u5740<\/li>\n<\/ul>\n\n\n\n<p class=\"has-medium-font-size\" style=\"letter-spacing:2px\">\u4e0d\u540c\u7684bin\u5728\u4e0d\u540c\u7684\u9886\u57df\u4e0a\u662f\u8584\u5f31\u70b9\uff0c\u6839\u672c\u539f\u56e0\u5176\u5b9e\u5c31\u662f\u5404\u4e2abin\u7684\u804c\u8d23\u4e0d\u540c\uff0c\u5bfc\u81f4\u76f8\u5173\u68c0\u6d4b\u4e0d\u540c\uff0c\u591a\u68c0\u6d4b\uff0c\u5c31\u5c11\u6027\u80fd\uff0c\u5c11\u7279\u6027<br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e3a\u4e86\u770b\u8fd9\u4e2a\uff0c\u6211\u7279\u610f\u5b66\u4e60\u4e86\u4e00\u4e0bvscode\uff08\u4e4b\u524d\u6211\u90fd\u662f0\u914d\u7f6ev&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18,48,35],"tags":[33],"class_list":["post-880","post","type-post","status-publish","format-standard","hentry","category-ctf","category-libc","category-pwn","tag-pwn"],"_links":{"self":[{"href":"https:\/\/www.yizishun.com\/index.php?rest_route=\/wp\/v2\/posts\/880","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yizishun.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yizishun.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yizishun.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yizishun.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=880"}],"version-history":[{"count":39,"href":"https:\/\/www.yizishun.com\/index.php?rest_route=\/wp\/v2\/posts\/880\/revisions"}],"predecessor-version":[{"id":1194,"href":"https:\/\/www.yizishun.com\/index.php?rest_route=\/wp\/v2\/posts\/880\/revisions\/1194"}],"wp:attachment":[{"href":"https:\/\/www.yizishun.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=880"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yizishun.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=880"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yizishun.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=880"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}