{"id":212,"date":"2017-10-04T14:58:47","date_gmt":"2017-10-04T06:58:47","guid":{"rendered":"http:\/\/kogasa.moe\/?p=212"},"modified":"2019-05-14T00:30:36","modified_gmt":"2019-05-13T16:30:36","slug":"ramnit-%e8%a0%95%e8%99%ab%e5%88%86%e6%9e%90","status":"publish","type":"post","link":"https:\/\/flandre-scarlet.moe\/blog\/212\/","title":{"rendered":"Ramnit \u8815\u866b\u5206\u6790"},"content":{"rendered":"<p>\u6700\u8fd1\u5728\u529e\u516c\u5ba4\u91cc\u7a81\u7136\u6709\u8815\u866b\u4f20\u64ad\u5f00\u4e86\uff0c\u56e0\u4e3a\u529e\u516c\u5ba4\u5185\u7f51\u91cc\u90fd\u662f\u6ca1\u88c5\u6740\u8f6f\u7684\uff0c\u7136\u540e\u53d1\u53d1\u90ae\u4ef6\u5c31\u611f\u67d3\u4e00\u7247\u4e86\uff08\u7b11\uff09\uff0c\u800c\u4e14\u53ea\u8981\u6709\u4e00\u53f0\u8ba1\u7b97\u673a\u6ca1\u6709\u6e05\u9664\u5c31\u4f9d\u7136\u4f1a\u4f20\u904d\u5c40\u57df\u7f51\u3002\u5728\u7535\u8111\u4e0a\u627e\u4e86\u4e00\u4e0b\uff0c\u53d1\u73b0\u4e86\u540d\u79f0\u4e3a DesktopLayer.exe \u7684\u75c5\u6bd2\u6587\u4ef6\uff0c\u4e8e\u662f\u628a\u5b83\u4fdd\u7559\u4e86\u4e00\u4efd\uff0c\u6253\u7b97\u7814\u7a76\u7814\u7a76\u3002<br \/>\n<!--more--><\/p>\n<p>\u6837\u672c\uff1a<br \/>\n\u6587\u4ef6: DesktopLayer.exe<br \/>\n\u5927\u5c0f: 56320 \u5b57\u8282<br \/>\n\u6587\u4ef6\u7248\u672c: 106.42.7<br \/>\n\u4fee\u6539\u65f6\u95f4: 2017\u5e748\u670828\u65e5, 19:04:24<br \/>\nMD5: FF5E1F27193CE51EEC318714EF038BEF<br \/>\nSHA1: B4FA74A6F4DAB3A7BA702B6C8C129F889DB32CA6<br \/>\nCRC32: 40C57347<\/p>\n<h1>exe \u5206\u6790<\/h1>\n<ol>\n<li>\u9996\u5148\u75c5\u6bd2\u662f\u7528UPX\u52a0\u4e86\u58f3\uff0c\u8131\u4e86\u58f3\u540e\u770bOEP\u50cf\u662f\u7528\u6c47\u7f16\u5199\u7684\u3002<\/li>\n<p>        <img decoding=\"async\" src=\"https:\/\/flandre-scarlet.moe\/blog\/wp-content\/uploads\/2017\/10\/Ramnit-1.png\" alt=\"\u5165\u53e3\" \/><\/p>\n<li>\u8fd0\u884c\u540e\u75c5\u6bd2\u9996\u5148\u901a\u8fc7\u67e5\u8be2\u6ce8\u518c\u8868(HKCR\\http\\shell\\open\\command)\u7684\u65b9\u5f0f\u83b7\u5f97\u9ed8\u8ba4\u6d4f\u89c8\u5668\u7684\u8def\u5f84\uff0c\u5e76\u786e\u8ba4\u6587\u4ef6\u7684\u5b58\u5728\uff0c\u5982\u679c\u4e0d\u5b58\u5728\u8fd8\u4f1a\u5728\u5907\u7528\u8def\u5f84(%ProgramFiles%\\Internet Explorer\\iexplore.exe<br \/>\n \u548c SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\App Paths\\IEXPLORE.EXE)\u4e2d\u67e5\u627e\u3002<\/li>\n<li>\u521b\u5efa\u547d\u540d\u4e92\u65a5\u4f53\u9632\u6b62\u91cd\u5165(\u8fd9\u91cc\u7684\u4e92\u65a5\u4f53\u968f\u540e\u53c8\u9a6c\u4e0a\u88ab\u5173\u95ed)\u3002<\/li>\n<li>\u68c0\u67e5\u5f53\u524d\u8fd0\u884c\u7684 exe \u6587\u4ef6\u540d\u662f\u5426\u4e3a DesktopLayer.exe\uff0c\u4e0d\u662f\u7684\u8bdd\u5219\u4f1a\u904d\u5386\u4ee5\u4e0b7\u4e2a\u76ee\u5f55\uff1a\n<ul>\n<li>%ProgramFiles%<\/li>\n<li>%CommonProgramFiles%<\/li>\n<li>%HOMEDRIVE%%HOMEPATH%<\/li>\n<li>%APPDATA%<\/li>\n<li>\u7cfb\u7edf\u76ee\u5f55<\/li>\n<li>Windows\u76ee\u5f55<\/li>\n<li>\u4e34\u65f6\u76ee\u5f55<\/li>\n<\/ul>\n<p>\u5982\u679c\u6709\u4e00\u4e2a\u80fd\u5199\u5165\u6587\u4ef6\u4e14\u6ca1\u6709\u5bf9\u5e94\u6587\u4ef6\u5b58\u5728\u7684\u8bdd\u5219\u590d\u5236\u81ea\u8eab\u5230\u8be5\u76ee\u5f55\u4e0b\u7684 Microsoft \u76ee\u5f55\u5e76\u91cd\u547d\u540d\u4e3a DesktopLayer.exe\uff0c\u7136\u540e\u505c\u6b62\u5c1d\u8bd5\u3002\u968f\u540e\u8fd0\u884c\u521a\u590d\u5236\u7684\u75c5\u6bd2\u3002\u6210\u529f\u5219\u7ed3\u675f\u7a0b\u5e8f\uff0c\u540e\u7eed\u64cd\u4f5c\u4ea4\u7531\u521a\u8fd0\u884c\u7684\u75c5\u6bd2\u8fdb\u884c\u5904\u7406\u3002<\/li>\n<li>(\u65b0\u8fd0\u884c\u7684\u75c5\u6bd2)\u901a\u8fc7 GetProcAddress \u83b7\u53d6\u6240\u9700\u7684 ntdll.dll API \u5730\u5740\u3002<\/li>\n<li>\u5bf9 ntdll.dll \u4e2d\u7684 ZwWriteVirtualMemory \u8fdb\u884c Hook\u3002<\/li>\n<li>\u8fd0\u884c\u9ed8\u8ba4\u6d4f\u89c8\u5668\u5e76\u9000\u51fa\u3002<\/li>\n<\/ol>\n<p>\u4e4d\u4e00\u770b hook \u81ea\u8eab\u7684 ntdll \u51fd\u6570\u5e76\u6ca1\u6709\u4ec0\u4e48\u4f5c\u7528\uff0c\u4f46\u5173\u952e\u4e4b\u5904\u5728\u4e8e\u4f7f\u7528 CreateProcess \u521b\u5efa\u8fdb\u7a0b\u65f6\u4f1a\u8c03\u7528 ZwWriteVirtualMemory \u5bf9\u65b0\u8fdb\u7a0b\u5199\u5165\u6570\u636e\uff0c\u8fd9\u4e2a\u65f6\u5019 hook \u51fd\u6570\u5c31\u4f1a\u8d77\u4f5c\u7528\u4e86\uff0c\u907f\u514d\u4e86\u8fdc\u7ebf\u7a0b\u7684\u521b\u5efa\u3002<\/p>\n<h1>\u63a5\u4e0b\u6765\u770b hook \u51fd\u6570\u3002<\/h1>\n<ol>\n<li>\u9996\u5148\u8f6c\u53d1\u539f\u59cb\u64cd\u4f5c\u3002<img decoding=\"async\" src=\"https:\/\/flandre-scarlet.moe\/blog\/wp-content\/uploads\/2017\/10\/Ramnit-2.png\" alt=\"hook code\" \/><\/li>\n<li>\u968f\u540e\u4ece\u81ea\u8eab\u91ca\u653e\u51fa\u4e00\u4e2adll\uff0c\u5e76\u52a0\u8f7d\u5230\u5728\u75c5\u6bd2\u8fdb\u7a0b\u4e2d\u3002<\/li>\n<li>\u5c06\u52a0\u8f7d\u540e\u7684Dll\u5168\u90e8\u5199\u5165\u5230\u6d4f\u89c8\u5668\u8fdb\u7a0b\u4e2d\uff0c\u8fd9\u91cc\u4e24\u4e2a\u8fdb\u7a0b\u4e2d\u52a0\u8f7d\u7684\u5730\u5740\u662f\u76f8\u540c\u7684\uff0c\u5747\u4e3a0x20010000\uff0c\u8fd9\u4e48\u505a\u907f\u514d\u4e86dll\u7684\u91cd\u5b9a\u4f4d\u3002<\/li>\n<li>\u7ee7\u7eed\u5199\u5165\u521d\u59cb\u5316\u5bfc\u5165\u8868\u7684\u4ee3\u7801\u3002<\/li>\n<li>\u5199\u5165\u4fee\u6539\u5185\u5b58\u9875\u5c5e\u6027\u7684\u4ee3\u7801\u3002<\/li>\n<li>\u6700\u540e\u5411\u7a0b\u5e8f\u5165\u53e3\u5199\u5165\u8df3\u8f6c\u4ee3\u7801\u3002<\/li>\n<\/ol>\n<p>\u8fd9\u6837\u6d4f\u89c8\u5668\u8fdb\u7a0b\u542f\u52a8\u4e4b\u540e\u4fbf\u4f1a\u8df3\u8f6c\u81f3\u6ce8\u5165\u4ee3\u7801\u6267\u884c\u3002<\/p>\n<h1>\u6ce8\u5165\u4ee3\u7801<\/h1>\n<ol>\n<li>\u4f9d\u7167\u6ce8\u5165\u987a\u5e8f\uff0c\u4ee3\u7801\u4ece\u5165\u53e3\u8df3\u8f6c\u8fc7\u540e\u4f9d\u6b21\u8fdb\u884c\u5bfc\u5165\u8868\u7684\u521d\u59cb\u5316\uff0c\u5185\u5b58\u533a\u6bb5\u7684\u5c5e\u6027\u4fee\u6539\uff0c\u968f\u540e\u8c03\u7528DllMain<br \/>\n<img decoding=\"async\" src=\"https:\/\/flandre-scarlet.moe\/blog\/wp-content\/uploads\/2017\/10\/Ramnit-3.png\" alt=\"\u5165\u53e3\u8df3\u8f6c\" \/><br \/>\n<img decoding=\"async\" src=\"https:\/\/flandre-scarlet.moe\/blog\/wp-content\/uploads\/2017\/10\/Ramnit-4.png\" alt=\"DllMain\" \/><\/li>\n<li>DllMain\u4e2d\u9996\u5148\u521b\u5efa\u4e8e exe \u4e2d\u76f8\u540c\u7684\u547d\u540d\u4e92\u65a5\u91cf\u3002<\/li>\n<li>\u521d\u59cb\u5316\u5957\u63a5\u5b57\uff0c\u6536\u96c6\u4e86\u4e00\u4e9b\u8bbe\u5907\u4fe1\u606f\uff0c\u4e5f\u4f1a\u5728\u6d4f\u89c8\u5668\u7a0b\u5e8f\u6240\u5728\u7684\u76ee\u5f55\u4e0b\u751f\u6210\u6587\u4ef6 dmlconf.dat \u7528\u4e8e\u8bb0\u5f55\u4e00\u4e9b\u6570\u636e\uff0c\u5411\u7f51\u7ad9 fget-career.com \u53d1\u9001\u6570\u636e\u3002<\/li>\n<li>\u521b\u5efa7\u4e2a\u5b8c\u6210\u6838\u5fc3\u529f\u80fd\u7684\u7ebf\u7a0b\uff1a<\/li>\n<ol>\n<li>\u6bcf\u79d2\u68c0\u67e5\u6ce8\u518c\u8868 HKLM\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon \u4e0b\u7684 UserInit\uff0c\u786e\u8ba4\u75c5\u6bd2\u662f\u5426\u5728\u5176\u4e2d\uff0c\u8fbe\u5230\u5f00\u673a\u81ea\u542f\u52a8\u7684\u76ee\u7684\uff0c\u4e0d\u5728\u5e38\u89c1\u7684 Run \u4e2d\u4e0d\u5bb9\u6613\u53d1\u73b0\u3002<\/li>\n<li>\u6bcf(60+10)\u79d2\u5411 google.com:80, bing.com:80, yahoo.com:80 \u53d1\u9001 http \u8bf7\u6c42\uff0c\u8fd8\u8bb0\u5f55\u4e86\u8fde\u63a5\u6210\u529f\u7684\u95f4\u9694\u65f6\u95f4\u3002<\/li>\n<li>\u6bcf\u5206\u949f\u5411\u6587\u4ef6 dmlconf.dat \u5199\u5165\u51e0\u4e2a\u5168\u5c40\u53d8\u91cf\u4e2d\u4fdd\u5b58\u7684\u503c\u3002<\/li>\n<li>\u5982\u679c\u6b65\u9aa43\u4e2d\u7684\u7f51\u7edc\u76f8\u5173\u64cd\u4f5c\u6210\u529f\u7684\u8bdd\u5219\u521b\u5efa\u4e00\u4e2a\u6bcf\u5206\u949f\u5411 fget-career.com \u53d1\u5305\u5e76\u63a5\u6536\u56de\u5305\u7684\u7ebf\u7a0b\u3002<\/li>\n<li>\u4e5f\u662f\u7f51\u7edc\u901a\u8baf\u76f8\u5173\u7ebf\u7a0b\u3002<\/li>\n<li>\u6bcf30\u79d2\u68c0\u67e5\u4e00\u4e0b\u78c1\u76d8\uff0c\u5e76\u5bf9\u786c\u76d8\u7c7b\u578b\u7684\u78c1\u76d8\u8fdb\u884c\u904d\u5386\uff0c\u5206\u522b\u5904\u7406\u4e24\u79cd\u6587\u4ef6\uff1a\n<ol>\n<li>exe \u548c dll: \u5982\u679c\u5df2\u5b58\u5728 .rmnet \u8282\u5219\u8bf4\u660e\u5df2\u7ecf\u611f\u67d3\uff0c\u8df3\u8fc7\uff1b\u53cd\u4e4b\u627e\u5230\u5408\u9002\u7684\u7a7a\u95f4\u5199\u5165\u4e00\u4e2a .rmnet \u8282\u3002\u5982\u679c\u5bfc\u5165\u8868\u4e2d\u5b58\u5728 LoadLibraryA \u548c GetProcessAddress \u8fd9\u4e24\u4e2a\u51fd\u6570\uff0c\u5219\u4f1a\u5bf9\u5176\u8fdb\u884c\u91cd\u5b9a\u4f4d\uff0c\u4ee5\u4fbf\u6ce8\u5165\u4ee3\u7801\u4f7f\u7528\u3002<\/li>\n<li>html \u548c htm: \u68c0\u67e5\u6587\u4ef6\u5c3e\u662f\u5426\u4e3a &#8220;&lt;\/SCRIPT&gt;&#8221;\uff0c\u662f\u5219\u8bf4\u660e\u5df2\u7ecf\u611f\u67d3\uff0c\u8df3\u8fc7\uff1b\u53cd\u4e4b\u5219\u6dfb\u52a0\u4e00\u6bb5\u811a\u672c\u3002<br \/>\n                <img decoding=\"async\" src=\"https:\/\/flandre-scarlet.moe\/blog\/wp-content\/uploads\/2017\/10\/Ramnit-5.png\" alt=\"html\u63d2\u5165\u811a\u672c\" \/><\/li>\n<\/ol>\n<\/li>\n<li>\u6bcf10\u79d2\u68c0\u67e5\u78c1\u76d8\uff0c\u82e5\u6709\u53ef\u79fb\u52a8\u78c1\u76d8\uff0c\u901a\u8fc7 autorun.inf \u7684\u5934 3 \u5b57\u8282\u662f\u5426\u4e3a &#8220;RmN&#8221; \u5224\u65ad\u662f\u5426\u611f\u67d3\u3002\u82e5\u672a\u611f\u67d3\uff0c\u5219\u5728\u53ef\u79fb\u52a8\u78c1\u76d8\u6839\u76ee\u5f55\u4e0b\u521b\u5efa RECYCLER \u76ee\u5f55\uff0c\u91cc\u9762\u585e\u4e86\u968f\u673a\u547d\u540d\u7684\u75c5\u6bd2 exe; \u6dfb\u52a0 autorun.inf, \u4f7f\u5176\u81ea\u52a8\u8fd0\u884c\u75c5\u6bd2 exe<br \/>\n            <img decoding=\"async\" src=\"https:\/\/flandre-scarlet.moe\/blog\/wp-content\/uploads\/2017\/10\/Ramnit-6.png\" alt=\"autorun.inf\" \/><\/li>\n<\/ol>\n<\/ol>\n<p>\u81f3\u6b64\u8be5\u8815\u866b\u57fa\u672c\u5206\u6790\u5b8c\u6bd5\u3002<br \/>\u8be5\u75c5\u6bd2\u901a\u8fc7\u6ce8\u5165\u6d4f\u89c8\u5668\u8fdb\u7a0b\u6765\u4f2a\u88c5\u81ea\u5df1\uff0c\u56e0\u4e3a\u73b0\u5728\u7684\u6d4f\u89c8\u5668\u57fa\u672c\u90fd\u662f\u591a\u8fdb\u7a0b\u7684\uff0c\u4e0d\u5bb9\u6613\u88ab\u53d1\u73b0\u3002\u4e0d\u8fc7\u8fd0\u884c\u88ab\u611f\u67d3\u7684\u7a0b\u5e8f\u540e\u4f1a\u5728\u540c\u4e00\u76ee\u5f55\u4e0b\u91ca\u653e\u51fa\u4e00\u4e2a\u5e26\u6709 Srv \u540e\u7f00\u7684\u540c\u540d exe, \u8fd9\u4e2a\u64cd\u4f5c\u8fd8\u662f\u6bd4\u8f83\u9192\u76ee\u7684\u3002\u800c\u4e14\u90ae\u4ef6\u5ba2\u6237\u7aef\u4f1a\u56e0\u4e3a html \u88ab\u611f\u67d3\u800c\u663e\u793a\u4e71\u7801\uff0c\u4e0d\u7136\u4e5f\u4e0d\u5bb9\u6613\u88ab\u53d1\u73b0\u4e2d\u4e86\u6bd2\u3002<\/p>\n<p>\u6740\u6bd2\u7684\u8bdd\u4e3b\u8981\u8fd8\u662f\u6587\u4ef6\u4fee\u590d\uff0c\u53ef\u6267\u884c\u6587\u4ef6\u9700\u8981\u5220\u9664 .rmnet \u6bb5\u5e76\u4fee\u590d\u5165\u53e3\u70b9\uff0c\u7f51\u9875\u6587\u4ef6\u5219\u5220\u9664\u6700\u540e\u4e00\u6bb5 &lt;SCRIPT&gt; \u811a\u672c\u5185\u5bb9\u3002<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/p>\n<p>\u76f8\u5173\u6587\u4ef6:<br \/><a href=\"https:\/\/flandre-scarlet.moe\/blog\/wp-content\/uploads\/2017\/10\/DesktopLayer.7z\">DesktopLayer\u75c5\u6bd2\u6837\u672c<\/a>\uff0c\u89e3\u538b\u5bc6\u7801 123456<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1\u5728\u529e\u516c\u5ba4\u91cc\u7a81\u7136\u6709\u8815\u866b\u4f20\u64ad\u5f00\u4e86\uff0c\u56e0\u4e3a\u529e\u516c\u5ba4\u5185\u7f51\u91cc\u90fd\u662f\u6ca1\u88c5\u6740\u8f6f\u7684\uff0c\u7136\u540e\u53d1\u53d1\u90ae\u4ef6\u5c31\u611f\u67d3\u4e00\u7247\u4e86\uff08\u7b11\uff09\uff0c\u800c\u4e14\u53ea\u8981\u6709\u4e00&#8230; <\/p>\n<div class=\"read-more navbutton\"><a href=\"https:\/\/flandre-scarlet.moe\/blog\/212\/\">\u9605\u8bfb\u66f4\u591a<i class=\"fa fa-angle-double-right\"><\/i><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[31],"tags":[110,108,111,109],"class_list":["post-212","post","type-post","status-publish","format-standard","hentry","category-reverse-engineering","tag-desktoplayer","tag-ramnit","tag-111","tag-109"],"_links":{"self":[{"href":"https:\/\/flandre-scarlet.moe\/blog\/wp-json\/wp\/v2\/posts\/212","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/flandre-scarlet.moe\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/flandre-scarlet.moe\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/flandre-scarlet.moe\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/flandre-scarlet.moe\/blog\/wp-json\/wp\/v2\/comments?post=212"}],"version-history":[{"count":0,"href":"https:\/\/flandre-scarlet.moe\/blog\/wp-json\/wp\/v2\/posts\/212\/revisions"}],"wp:attachment":[{"href":"https:\/\/flandre-scarlet.moe\/blog\/wp-json\/wp\/v2\/media?parent=212"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/flandre-scarlet.moe\/blog\/wp-json\/wp\/v2\/categories?post=212"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/flandre-scarlet.moe\/blog\/wp-json\/wp\/v2\/tags?post=212"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}