{"id":90230,"date":"2020-05-15T11:22:25","date_gmt":"2020-05-15T03:22:25","guid":{"rendered":"http:\/\/4563.org\/?p=90230"},"modified":"2020-05-15T11:22:25","modified_gmt":"2020-05-15T03:22:25","slug":"%e9%97%ae%e4%b8%80%e7%82%b9%e5%85%b3%e4%ba%8e-hook-%e7%9a%84%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=90230","title":{"rendered":"\u95ee\u4e00\u70b9\u5173\u4e8e Hook \u7684\u95ee\u9898"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u95ee\u4e00\u70b9\u5173\u4e8e Hook \u7684\u95ee\u9898               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : pppwaw <\/span>  <span><i><\/i> 2<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p><strong>\u4ece\u672a\u63a5\u89e6\u8fc7\u9a71\u52a8\u5f00\u53d1<\/strong><\/p>\n<p>\u73b0\u5728\u662f\u60f3\u81ea\u5df1\u5b9e\u73b0\u4e00\u4e2a\u9a71\u52a8\uff0c\u6765\u5bf9 NtOpenProcess \u8fd9\u4e9b API \u8fdb\u884c Hook\uff0c\u4ece\u800c\u8fdb\u884c\u9632\u75c5\u6bd2\u4e4b\u7c7b\u7684\u64cd\u4f5c<\/p>\n<p>\u76ee\u524d\u4e86\u89e3\u5230\u7684 Hook \u6a21\u5f0f\u6709<code>SSDT Hook<\/code>\u548c<code>InfinityHook<\/code><\/p>\n<p>\u6709\u4ee5\u4e0b\u95ee\u9898\uff1a<\/p>\n<ul>\n<li>\u6839\u636e\u4e86\u89e3\uff0cWindows \u5728 8 \u5f00\u59cb\u52a0\u5165\u4e86<code>PatchGuard<\/code>\u6765\u963b\u6b62 SSDT \u7684 Hook\uff0c\u4e5f\u5c31\u662f\u8bf4\u76ee\u524d\u65e0\u6cd5\u8fdb\u884c SSDT Hook \u4e86\uff1f<\/li>\n<li>\u6839\u636e\u4e86\u89e3\uff0cSSDTHook \u7684\u66ff\u4ee3\u65b9\u6848 InfinityHook \u53ea\u80fd Hook R3 \u7684 API \u800c\u4e0d\u80fd Hook R0 \u7684\uff0c\u8fd9\u4e2a\u8bf4\u6cd5\u662f\u771f\u7684\u5417\uff1f\u5982\u679c\u662f\u771f\u7684\uff0c\u90a3\u6709\u4ec0\u4e48\u529e\u6cd5\u8fdb\u884c R0API \u7684 Hook \u5462\uff1f<\/li>\n<li>\u4ee5\u53ca\uff0c\u6709\u6ca1\u6709\u4e00\u4e9b\u6848\u4f8b\u8ba9\u6211\u7b49\u5c0f\u767d\u80fd\u7406\u89e3\u4e24\u79cd Hook \u4ece\u800c\u5f00\u53d1\u81ea\u5df1\u7684 Hook<\/li>\n<\/ul>\n<p>\u6073\u8bf7 dalao \u4eec\u4e0d\u541d\u8d50\u6559<\/p>\n<p>PS\uff1a<\/p>\n<ul>\n<li>\u4f7f\u7528\u7cfb\u7edf\u662f Win10<\/li>\n<li>\u4f1a Python \u5f00\u53d1\uff0c\u4f1a\u4e00\u70b9 C++\u5f00\u53d1\uff0c\u4f46\u662f\u6ca1\u6709\u6df1\u5165\u53bb\u7814\u7a76\u8fc7 Windows \u5e95\u5c42<\/li>\n<\/ul><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>2<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"1592781\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : fakevam <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             win7 x64 \u5c31\u6709 patch guard \u4e86\uff0c\u7ed5\u8fc7 PG \u7684\u65b9\u6848\u6709\u5f88\u591a\uff0c\u4f46\u662f\u51fa\u4e00\u4e2a\u6b7b\u4e00\u4e2a<br \/>\u4e00\u5b9a\u8981\u505a\u5185\u6838\u9632\u62a4\u7684\u8bdd\uff0c\u5185\u6838\u63d0\u4f9b\u4e86\u5f88\u591a callback\uff0c\u53ef\u4ee5\u9a71\u52a8\u6ce8\u5165\u53bb\u505a callback \u68c0\u6d4b\uff0c\u4f46\u662f\u70b9\u6bd4\u8f83\u5c11\uff0c\u6bd4\u5982 object callback<\/p>\n<p>\u53e6\u5916\uff0c\u8fd8\u6709\u4e00\u6761\u4e07\u80fd\u7684\u8def\uff0c\u8d70\u865a\u62df\u5316\uff0c\u5728 host \u4e0a hook vm\uff0c\u53c2\u8003 360 \u4ed6\u4eec\u7684\u505a\u6cd5<\/p>\n<p>\u5f53\u7136\uff0c\u4f60\u53ef\u4ee5\u628a PG \u5173\u6389\uff0c\u8fd9\u4e2a\u65b9\u6848\u641c\u4e00\u628a\u5c31\u4e00\u5927\u5806\u4e86                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1592782\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : pppwaw <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @fakevam emmm dalao \u80fd\u7ed9\u4efd\u76f8\u5173\u7684\u8d44\u6599\u4e48\uff0c\u4e0d\u5f3a\u6c42\u7ed5\u8fc7 PG                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u95ee\u4e00\u70b9\u5173\u4e8e Hook \u7684\u95ee\u9898 \u8cc7\u6df1&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/90230"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=90230"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/90230\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=90230"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=90230"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=90230"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}