{"id":1053,"date":"2023-01-10T18:01:55","date_gmt":"2023-01-10T10:01:55","guid":{"rendered":"http:\/\/www.aqwu.net\/wp\/?p=1053"},"modified":"2023-01-10T18:02:48","modified_gmt":"2023-01-10T10:02:48","slug":"certutil-%e5%b7%a5%e4%bb%b6%e5%88%86%e6%9e%90","status":"publish","type":"post","link":"https:\/\/www.aqwu.net\/wp\/?p=1053","title":{"rendered":"Certutil \u5de5\u4ef6\u5206\u6790"},"content":{"rendered":"\n<p>Certutil\u662fWindows\u7cfb\u7edf\u4e0a\u7528\u4e8e\u7ba1\u7406\u8bc1\u4e66\u7684\u5185\u7f6e\u5de5\u5177\u3002\u4f46\u662f\uff0ccertutil\u53ef\u7528\u4e8ebase64\u7f16\u7801\/\u89e3\u7801\uff0c\u8ba1\u7b97\u6587\u4ef6\u54c8\u5e0c\u5e76\u4ece\u4e92\u8054\u7f51\u4e0b\u8f7d\u6587\u4ef6\u3002\u5728\u8fd9\u7bc7\u535a\u5ba2\u4e2d\uff0c\u6211\u4eec\u5c06\u770b\u770b certutil \u5728\u4e0b\u8f7d\u6587\u4ef6\uff08\u7279\u522b\u662f\u5143\u6570\u636e\u6587\u4ef6\uff09\u65f6\u751f\u6210\u7684\u5de5\u4ef6\uff0c\u5206\u6790\u5176\u7ed3\u6784\u5e76\u4e3a\u5176\u7f16\u5199\u89e3\u6790\u5668\u3002<\/p>\n\n\n\n<p>\u539f\u6587\u8fde\u63a5:https:\/\/u0041.co\/blog\/post\/3<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u5206\u6790<\/h2>\n\n\n\n<p>\u5728\u6b64\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u5c06\u4f7f\u7528 certutil \u4e0b\u8f7d\u4e00\u4e2a\u6587\u4ef6\u5e76\u89c2\u5bdf\u5199\u5165\u7cfb\u7edf\u7684\u6587\u4ef6\u3002\u4ee5\u4e0b\u547d\u4ee4\u5c06\u4ece&nbsp;<strong>github&nbsp;<\/strong>\u4e0b\u8f7d&nbsp;<strong>mimkatz&nbsp;<\/strong>\u5e76\u5c06\u5176\u4fdd\u5b58\u5230\u5f53\u524d\u76ee\u5f55 \uff08<strong>C\uff1a\\windows\\temp<\/strong>\uff09\uff1a<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>certutil.exe -urlcache -split -f \u201chttps:\/\/github.com\/gentilkiwi\/mimikatz\/releases\/download\/2.2.0-20200816\/mimikatz_trunk.7z\u201d m.7z<\/p>\n<\/blockquote>\n\n\n\n<p>\u6267\u884c\u4e0a\u8ff0\u547d\u4ee4\u540e\uff0c\u6211\u4eec\u53ef\u4ee5\u5728&nbsp;<strong>procmon&nbsp;<\/strong>\u4e2d\u770b\u5230\u5b83\u6b63\u5728\u5199\u5165\u4e24\u4e2a\u6587\u4ef6\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"896\" height=\"248\" src=\"http:\/\/www.aqwu.net\/wp\/wp-content\/uploads\/2023\/01\/image-2.png\" alt=\"\" class=\"wp-image-1056\" srcset=\"https:\/\/www.aqwu.net\/wp\/wp-content\/uploads\/2023\/01\/image-2.png 896w, https:\/\/www.aqwu.net\/wp\/wp-content\/uploads\/2023\/01\/image-2-300x83.png 300w, https:\/\/www.aqwu.net\/wp\/wp-content\/uploads\/2023\/01\/image-2-768x213.png 768w\" sizes=\"auto, (max-width: 896px) 100vw, 896px\" \/><\/figure>\n\n\n\n<p>\u8fd9\u4e24\u4e2a\u6587\u4ef6\u5177\u6709\u76f8\u540c\u7684\u540d\u79f0\uff0c\u4f46\u4f4d\u4e8e\u4e0d\u540c\u7684\u76ee\u5f55\u4e2d\u3002\u6587\u4ef6\u540d&nbsp;<strong>BC456035A9E2885290EDC953764CC761<\/strong>&nbsp;\u662f URL UTF-16LE \u7f16\u7801\u7684 MD5 \u54c8\u5e0c\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"270\" src=\"http:\/\/www.aqwu.net\/wp\/wp-content\/uploads\/2023\/01\/image-1024x270.png\" alt=\"\" class=\"wp-image-1054\" srcset=\"https:\/\/www.aqwu.net\/wp\/wp-content\/uploads\/2023\/01\/image-1024x270.png 1024w, https:\/\/www.aqwu.net\/wp\/wp-content\/uploads\/2023\/01\/image-300x79.png 300w, https:\/\/www.aqwu.net\/wp\/wp-content\/uploads\/2023\/01\/image-768x202.png 768w, https:\/\/www.aqwu.net\/wp\/wp-content\/uploads\/2023\/01\/image.png 1151w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u4f4d\u4e8e&nbsp;<strong>C\uff1a\\Users\\u0041\\AppData\\LocalLow\\Microsoft\\CryptnetUrlCache\\Content\\BC456035A9E2885290EDC953764CC761&nbsp;<\/strong>\u4e0a\u7684\u6587\u4ef6\u5305\u542b\u5b9e\u9645\u6587\u4ef6\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"838\" height=\"747\" src=\"http:\/\/www.aqwu.net\/wp\/wp-content\/uploads\/2023\/01\/image-5.png\" alt=\"\" class=\"wp-image-1059\" srcset=\"https:\/\/www.aqwu.net\/wp\/wp-content\/uploads\/2023\/01\/image-5.png 838w, https:\/\/www.aqwu.net\/wp\/wp-content\/uploads\/2023\/01\/image-5-300x267.png 300w, https:\/\/www.aqwu.net\/wp\/wp-content\/uploads\/2023\/01\/image-5-768x685.png 768w\" sizes=\"auto, (max-width: 838px) 100vw, 838px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"668\" height=\"498\" src=\"http:\/\/www.aqwu.net\/wp\/wp-content\/uploads\/2023\/01\/image-1.png\" alt=\"\" class=\"wp-image-1055\" srcset=\"https:\/\/www.aqwu.net\/wp\/wp-content\/uploads\/2023\/01\/image-1.png 668w, https:\/\/www.aqwu.net\/wp\/wp-content\/uploads\/2023\/01\/image-1-300x224.png 300w\" sizes=\"auto, (max-width: 668px) 100vw, 668px\" \/><\/figure>\n\n\n\n<p>\u4f46\u662f\uff0c<strong>C\uff1a\\Users\\u0041\\AppData\\LocalLow\\Microsoft\\CryptnetUrlCache\\MetaData\\BC456035A9E2885290EDC953764CC761<\/strong>&nbsp;\u9664\u4e86\u4e00\u4e9b\u4e8c\u8fdb\u5236\u6570\u636e\u5916\uff0c\u8fd8\u5305\u542b\u4e0b\u8f7d\u6587\u4ef6\u7684 UTF-16LE \u7f16\u7801 URL \u548c MD5 \u54c8\u5e0c\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"838\" height=\"747\" src=\"http:\/\/www.aqwu.net\/wp\/wp-content\/uploads\/2023\/01\/image-3.png\" alt=\"\" class=\"wp-image-1058\" srcset=\"https:\/\/www.aqwu.net\/wp\/wp-content\/uploads\/2023\/01\/image-3.png 838w, https:\/\/www.aqwu.net\/wp\/wp-content\/uploads\/2023\/01\/image-3-300x267.png 300w, https:\/\/www.aqwu.net\/wp\/wp-content\/uploads\/2023\/01\/image-3-768x685.png 768w\" sizes=\"auto, (max-width: 838px) 100vw, 838px\" \/><\/figure>\n\n\n\n<p>URL\u548cMD5\u54c8\u5e0c\u53ef\u4ee5\u5f88\u5bb9\u6613\u5730\u63d0\u53d6\uff0c\u4f46\u662f\u6807\u5934\uff08116\u5b57\u8282\uff09\u5462\uff1f\u4e0b\u9762\u603b\u7ed3\u4e86\u6211\u7684\u53d1\u73b0\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"667\" height=\"758\" src=\"http:\/\/www.aqwu.net\/wp\/wp-content\/uploads\/2023\/01\/image-4.png\" alt=\"\" class=\"wp-image-1057\" srcset=\"https:\/\/www.aqwu.net\/wp\/wp-content\/uploads\/2023\/01\/image-4.png 667w, https:\/\/www.aqwu.net\/wp\/wp-content\/uploads\/2023\/01\/image-4-264x300.png 264w\" sizes=\"auto, (max-width: 667px) 100vw, 667px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>Field Name<\/td><td>Offset<\/td><td>Size<\/td><td>Type<\/td><td>Description<\/td><\/tr><tr><td>&#8211;<\/td><td>x00<\/td><td>x0C<\/td><td>byte<\/td><td>Unknown. x70x00x00x00 might be the header length (112 bytes).<\/td><\/tr><tr><td>urlSize<\/td><td>x0C<\/td><td>x04<\/td><td>uint32<\/td><td>The size for the UTF-16LE encoded URL<\/td><\/tr><tr><td>Timestamp<\/td><td>x10<\/td><td>x08<\/td><td>uint64<\/td><td>The last time the file was downloaded in FILETIME format.<\/td><\/tr><tr><td>&#8211;<\/td><td>x18<\/td><td>x4C<\/td><td>byte<\/td><td>Unknown<\/td><\/tr><tr><td>LastModificationTimeHeader<\/td><td>x58<\/td><td>x08<\/td><td>uint64<\/td><td><strong>EDIT 1:<\/strong>The file last modification time header from the reponse (Thanks to&nbsp;<strong>@mrAn61<\/strong>&nbsp;on Twitter for pointing that out)<\/td><\/tr><tr><td>hashSize<\/td><td>x64<\/td><td>x04<\/td><td>uint32<\/td><td>The size for the UTF-16LE encode hash<\/td><\/tr><tr><td>&#8211;<\/td><td>x68<\/td><td>x08<\/td><td>byte<\/td><td>Unknown<\/td><\/tr><tr><td>fileSize<\/td><td>x70<\/td><td>x04<\/td><td>uint32<\/td><td>The downloaded file size in bytes<\/td><\/tr><tr><td>URL<\/td><td>x74<\/td><td>urlSize<\/td><td>UTF-16LE String<\/td><td>The URL from where the file was downloaded<\/td><\/tr><tr><td>E-Tag<\/td><td>x74 + urlSize<\/td><td>hashSize<\/td><td>UTF-16LE String<\/td><td>The hash for the downloaded file. The following are some of the hashing algorithms observed during analysis:MD5SHA1SHA256Unkown hash (ex. 57f3c9cf-1514ce)&nbsp;In some cases the hash value is empty.<strong>EDIT 1:<\/strong>This is the E-Tag header of the file from the HTTP response. E-Tag is used to identify a specific version of a file, If the file changes then the&nbsp;E-Tag changes.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u5982\u60a8\u6240\u89c1\uff0c\u5143\u6570\u636e\u6587\u4ef6\u5305\u542b\u8bb8\u591a\u6709\u7528\u7684\u4fe1\u606f\uff0c\u4f46\u662f\u8fd8\u6709\u66f4\u591a\u672a\u77e5\u7684\u6570\u636e\uff08\u7528\u7ea2\u8272\u7a81\u51fa\u663e\u793a\uff09\u3002\u6211\u4ecd\u5728\u7814\u7a76\u8fd9\u4e9b\u6570\u636e\u53ef\u80fd\u662f\u4ec0\u4e48\uff0c\u5982\u679c\u60a8\u60f3\u63d0\u4f9b\u5e2e\u52a9\uff0c\u8bf7\u5728\u6b64\u535a\u5ba2\u4e0a\u53d1\u8868\u8bc4\u8bba\u6216\u5728\u63a8\u7279@A__ALFAIFI\u4e0a\u5411\u6211\u53d1\u9001DM<strong>\u3002<\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">CryptnetURLCacheParser<\/h2>\n\n\n\n<p>\u6211\u7f16\u5199\u4e86\u4e00\u4e2a\u89e3\u6790\u5668\uff0c\u4ee5\u53ef\u8bfb\u683c\u5f0f\uff08CSV\uff0cJSON\u6216JSONL\uff09\u8f93\u51fa\u4e0a\u8ff0\u6570\u636e\u3002\u4f60\u53ef\u4ee5\u5728\u8fd9\u91cc\u627e\u5230Python\u7248\u672c\u7684CryptnetURLCacheParser\u548c<a href=\"https:\/\/github.com\/AbdulRhmanAlfaifi\/CryptnetURLCacheParser-rs\" target=\"_blank\" rel=\"noreferrer noopener\">Rust\u7248\u672c\u7684CryptnetURLCacheParser-rs<\/a>\u3002<a href=\"https:\/\/github.com\/AbdulRhmanAlfaifi\/CryptnetURLCacheParser\" target=\"_blank\" rel=\"noreferrer noopener\"><\/a>\u4ee5\u4e0b\u662f JSON \u683c\u5f0f\u7684\u89e3\u6790\u5668\u8f93\u51fa\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    \"Timestamp\": \"2020-09-11T16:53:07.297208\",\n    \"URL\": \"https:\/\/github.com\/gentilkiwi\/mimikatz\/releases\/download\/2.2.0-20200816\/mimikatz_trunk.7z\",\n    \"FileSize\": 875252,\n    \"MetadataHash\": \"5abdd836d4458370a804f2974431c993\",\n    \"FullPath\": \"C:\\\\Users\\\\u0041\\\\AppData\\\\LocalLow\\\\Microsoft\\\\CryptnetUrlCache\\\\MetaData\\\\BC456035A9E2885290EDC953764CC761\",\n    \"MD5\": \"5abdd836d4458370a804f2974431c993\"\n}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u7f16\u8f91 1<\/h2>\n\n\n\n<p>\u6211\u5df2\u7ecf\u5728\u5143\u6570\u636e\u7ed3\u6784\u4e2d\u786e\u5b9a\u4e86\u51e0\u4e2a\u4e1c\u897f\uff0c\u4e0a\u8868\u5df2\u66f4\u65b0\u4e3a\u6700\u65b0\u53d1\u73b0\u3002\u4ee5\u4e0b\u662f\u6c47\u603b\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>MetadataHash<\/strong>&nbsp;\u5b57\u6bb5\u5b9e\u9645\u4e0a\u662f\u6765\u81ea HTTP \u54cd\u5e94\u7684&nbsp;<strong>E-Tag<\/strong>&nbsp;\u6807\u5934\u3002<\/li>\n\n\n\n<li>\u8bb0\u5f55\u53e6\u4e00\u4e2a\u65f6\u95f4\u6233\uff0c\u5b83\u662fHTTP\u54cd\u5e94\u4e2d\u7684<strong>LastModificationTime<\/strong>\u6807\u5934\uff08\u611f\u8c22Twitter\u4e0a\u7684<strong>@mrAn61<\/strong>\u6307\u51fa\u8fd9\u4e00\u70b9\uff09\u3002<\/li>\n\n\n\n<li>\u5728 Rust \u4e2d\u4e3a\u8fd9\u4e2a\u5de5\u4ef6\u521b\u5efa\u4e86\u53e6\u4e00\u4e2a\u89e3\u6790\u5668\uff01\u4f60\u53ef\u4ee5\u5728\u8fd9\u91cc\u627e\u5230\u5b83&nbsp;<a href=\"https:\/\/github.com\/AbdulRhmanAlfaifi\/CryptnetURLCacheParser-rs\" target=\"_blank\" rel=\"noreferrer noopener\">CryptnetURLCacheParser-rs<\/a>.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u5f15\u7528<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/thinkdfir.com\/2020\/07\/30\/certutil-download-artefacts\/amp\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/thinkdfir.com\/2020\/07\/30\/certutil-download-artefacts\/amp\/<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/docs.microsoft.com\/en-us\/windows-server\/administration\/windows-commands\/certutil\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/docs.microsoft.com\/en-us\/windows-server\/administration\/windows-commands\/certutil<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Certutil\u662fWindows\u7cfb\u7edf\u4e0a\u7528\u4e8e\u7ba1\u7406\u8bc1\u4e66\u7684\u5185\u7f6e\u5de5\u5177\u3002\u4f46\u662f\uff0ccertutil\u53ef\u7528\u4e8ebase64\u7f16\u7801\/\u89e3 [&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":[102,43],"tags":[],"class_list":["post-1053","post","type-post","status-publish","format-standard","hentry","category-windows-infoarticle","category-infoarticle"],"views":1887,"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1053","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=1053"}],"version-history":[{"count":2,"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1053\/revisions"}],"predecessor-version":[{"id":1061,"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1053\/revisions\/1061"}],"wp:attachment":[{"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1053"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1053"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1053"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}