{"id":359,"date":"2015-10-19T20:48:00","date_gmt":"2015-10-19T12:48:00","guid":{"rendered":"http:\/\/note.systw.net\/note\/?p=359"},"modified":"2023-10-30T20:50:17","modified_gmt":"2023-10-30T12:50:17","slug":"file-recovery","status":"publish","type":"post","link":"https:\/\/systw.net\/note\/archives\/359","title":{"rendered":"File Recovery"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\"><strong>Recovering the Deleted Files<\/strong><\/h2>\n\n\n\n<p><strong>Recovery principle<\/strong><br>Data usually exist in disk until the original disk location of the data is used,<br>if the space is not allocated to other file, the deleted file can be recovered<br>ps:<br>the machine may create temporary files that can delete evidence while booting<\/p>\n\n\n\n<p><br><strong>Recovery timing<\/strong><br>someone cleared some data(ex: the search history,cookie cache,&#8230;etc), and investigator wants find something<\/p>\n\n\n\n<p><strong>Data recovery challenge<\/strong><br>\u78c1\u789f\u7528\u5f88\u6eff\u5e38\u522a\u6e1b,\u5fa9\u539f\u96e3<br>\u78c1\u789f\u9084\u6709\u5f88\u591a\u7a7a\u9593,\u5fa9\u539f\u6613.<\/p>\n\n\n\n<p><strong>Recovery\u5efa\u8b70step<\/strong><br>\u5148\u4f7f\u7528auto data recovery tool\u5c07\u5927\u90e8\u4efd\u6a94\u6848\u6488\u51fa\u4f86\uff0c<br>\u7136\u5f8c\u91dd\u5c0d\u6bd4\u8f03\u7279\u6b8a\u7684\u6a94\u6848\u5728\u4f7f\u7528manually data tool\u5206\u6790<\/p>\n\n\n\n<p>&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>File Recovery in Windows<\/strong><\/h2>\n\n\n\n<p><strong>File is deleted:<\/strong><br>first letter of a file name is replace by a hex byte code for delete<br>NTFS: the file is marked in the MFT with a special character<br>FAT: corresponding clusters in FAT are mared as unused\uff0e<br>\u3000the reference to the file is removed from the FAT\uff0e<br>ps:<br>so It is possible to recover files that have been emptied from the recycle bin on a windows<\/p>\n\n\n\n<p><strong>a hex byte code for delete<\/strong><br>the code called e5h or HEX E5 or 0xE5<br>the code is usually reflected as the lowercase greek letter sigma<\/p>\n\n\n\n<p><br>&#8230;<\/p>\n\n\n\n<p><strong>Recycle bin name<\/strong><br>$Recycle.Bin: windows vista and later<br>RECYCLED: windows2000,XP,NT<br>RECYCLER: win98 and prior<br>ps:<br>file of recycle bin is based on the user&#8217;s SID<br>ps:<br>No size limit for Recycle Bin<br>&#8230;<\/p>\n\n\n\n<p><strong>Filename in recycle bin<\/strong><br><strong>prior to windows vista<\/strong><br>name format: D&lt; drive of file&gt;&lt; ..th deleted file&gt;.&lt; extension&gt;<br>info file path: &lt; drive of file&gt;&lt; real path&gt;.&lt; extension&gt;<br>ex:<br>\u522a\u9664C:windowsreadme.doc,\u4e14\u525b\u597d\u662f\u7b2c8\u500b\u6a94\u6848\u88ab\u6bba\u6389<br>name format: Dc7.doc<br>info file path: C:windowsreadme.doc<br><strong>in windows vista and later<\/strong><br>name format: $R&lt; ..th deleted file&gt;.&lt; extension&gt;<br>info file path: $I&lt; ..th deleted file&gt;.&lt; extension&gt;<br>ex:<br>\u522a\u9664C:windowsreadme.doc,\u4e14\u525b\u597d\u662f\u7b2c8\u500b\u6a94\u6848\u88ab\u6bba\u6389<br>name format: $R7.doc<br>info file path: $I7.doc<\/p>\n\n\n\n<p><strong>INFO2<\/strong><br>A hidden file for recycle bin<br>\u4ee5\u4e8c\u9032\u5236\u7de8\u78bc\u5132\u5b58\u539f\u59cb\u6a94\u6848\u7684\u8def\u5f91\u548c\u6a94\u540d<br>the file is recreated when windows restart<\/p>\n\n\n\n<p><br><strong>Common analysis tool for recycle:<\/strong><br>Windows File Analyzer (WFA.exe)<br>Free Software of RedWolf Computer Forensics<br>Recycle-Bin<br><br>refer<br>http:\/\/www.mitec.cz\/wfa.html<br>http:\/\/redwolfcomputerforensics.com\/index.php?option=com_content&amp;task=view&amp;id=42&amp;Itemid=55<br>http:\/\/redwolfcomputerforensics.com\/downloads\/Recycle_bin.zip<br>https:\/\/en.wikipedia.org\/wiki\/Trash_(computing)#Microsoft_Windows<\/p>\n\n\n\n<p>&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>File Recovery in Linux<\/strong><\/h2>\n\n\n\n<p><strong>File is deleted:<\/strong><br>in Ext2fs(Linux second extended file system)<br>inode internal link count reaches 0<br>refer<br>http:\/\/www.slashroot.in\/how-does-file-deletion-work-linux<\/p>\n\n\n\n<p><br><strong>Linux\u4e0a\u7684\u8cc7\u6599\u9084\u539f<\/strong><br>1.\u7576\u4e00\u500b\u7a0b\u5f0f\u9084\u5728\u57f7\u884c\u4f46\u662f\u6a94\u6848\u5df2\u7d93\u88ab\u780d\u6389\u7684\u72c0\u6cc1\u4e0b<br>\u53ef\u5728\/PROC\/$PID\/exe\u627e\u5230\u7a0b\u5f0f<br>\u53ef\u7528cp \/proc\/$PID\/exe \/tmp\/file \u5c07\u7a0b\u5f0f\u8907\u88fd\u51fa<br>2.\u4f7f\u7528E2undel\u5de5\u5177<br>refer<br>http:\/\/wenku.baidu.com\/view\/da7fbcd0360cba1aa811da11.html?re=view<\/p>\n\n\n\n<p>&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>File Recovery Tools<\/strong><\/h2>\n\n\n\n<p><strong>Recovery tool for linux<\/strong><br>testdisk:<\/p>\n\n\n\n<p><strong>Recovery tool for win<\/strong><br>recuva<br>recovery my files<br>easeus data recovery wizard<br>digital rescure premium<br>photorec:auto data recovery tool,\u4f46\u6709\u6642\u6703\u6709\u8aa4\u5224<br>ex:photorec_win.exe image.dd<br>testdisk:auto data recovery tool,<br>accessdata FTK imager:manually data recovery tool:<br>disk editor:manually data recovery tool:<\/p>\n\n\n\n<p><strong>tool:Recuva<\/strong><br>function inlucde:<br>\u3000basic scan<br>\u3000options\/action\/deep scan<br>ps<br>recuva don&#8217;t support recovery from image of DD<br>but you can using ACCESSDATA FTK function: mount image of DD as a pyshical disk<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recovering the Deleted Files R &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"","fifu_image_alt":"","_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[11],"tags":[],"class_list":["post-359","post","type-post","status-publish","format-standard","hentry","category-forensics"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/systw.net\/note\/wp-json\/wp\/v2\/posts\/359","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/systw.net\/note\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/systw.net\/note\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/systw.net\/note\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/systw.net\/note\/wp-json\/wp\/v2\/comments?post=359"}],"version-history":[{"count":0,"href":"https:\/\/systw.net\/note\/wp-json\/wp\/v2\/posts\/359\/revisions"}],"wp:attachment":[{"href":"https:\/\/systw.net\/note\/wp-json\/wp\/v2\/media?parent=359"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/systw.net\/note\/wp-json\/wp\/v2\/categories?post=359"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/systw.net\/note\/wp-json\/wp\/v2\/tags?post=359"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}