{"id":763,"date":"2020-09-07T21:23:46","date_gmt":"2020-09-07T20:23:46","guid":{"rendered":"https:\/\/cybercop-training.ch\/?p=763"},"modified":"2020-09-07T21:23:46","modified_gmt":"2020-09-07T20:23:46","slug":"disk-forensics-p3","status":"publish","type":"post","link":"https:\/\/cybercop-training.ch\/?p=763","title":{"rendered":"Disk Forensics P3"},"content":{"rendered":"<blockquote><p>Disk forensics techniques are used to acquire the disk image, process this image to find artifacts of interest including deleted ones.<\/p>\n<p dir=\"ltr\">In this lab, a disk image file \u201cevidence.img\u201d is provided in the home directory of the root user (\/root\/). One of the PDF files present on the disk contains the flag.<\/p>\n<\/blockquote>\n<p dir=\"ltr\"><b>Objective:<\/b>\u00a0Extract files from the given image using\u00a0<b><a href=\"https:\/\/github.com\/sleuthkit\/scalpel\" target=\"_blank\" rel=\"noopener noreferrer\">Scalpel\u00a0<\/a><\/b>tool and retrieve the flag!<\/p>\n<p dir=\"ltr\">Guidelines:<\/p>\n<ul>\n<li>pdftotext tool can be used to convert PDF files into text files.<\/li>\n<\/ul>\n<p>This exercise is very similar to the <a href=\"https:\/\/cybercop-training.ch\/?p=732\" target=\"_blank\" rel=\"noopener noreferrer\">last one<\/a>.<\/p>\n<p>Instead of using foremost, I&#8217;ll use another tool called Scalpel \ud83d\ude09<\/p>\n<p><a href=\"https:\/\/cybercop-training.ch\/wp-content\/uploads\/2020\/09\/scalpel1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-765\" src=\"https:\/\/cybercop-training.ch\/wp-content\/uploads\/2020\/09\/scalpel1.png\" alt=\"\" width=\"457\" height=\"285\" srcset=\"https:\/\/cybercop-training.ch\/wp-content\/uploads\/2020\/09\/scalpel1.png 457w, https:\/\/cybercop-training.ch\/wp-content\/uploads\/2020\/09\/scalpel1-300x187.png 300w\" sizes=\"auto, (max-width: 457px) 100vw, 457px\" \/><\/a><\/p>\n<p><code>scalpel evidence.img -o output<\/code><\/p>\n<p><a href=\"https:\/\/cybercop-training.ch\/wp-content\/uploads\/2020\/09\/scalpel2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-766\" src=\"https:\/\/cybercop-training.ch\/wp-content\/uploads\/2020\/09\/scalpel2.png\" alt=\"\" width=\"523\" height=\"223\" srcset=\"https:\/\/cybercop-training.ch\/wp-content\/uploads\/2020\/09\/scalpel2.png 523w, https:\/\/cybercop-training.ch\/wp-content\/uploads\/2020\/09\/scalpel2-300x128.png 300w\" sizes=\"auto, (max-width: 523px) 100vw, 523px\" \/><\/a><\/p>\n<p>Seems that I&#8217;ve to edit the config file first which is located under \/etc\/scalpel\/scalpel.conf<\/p>\n<p><code>vi \/etc\/scalpel\/scalpel.conf<\/code><\/p>\n<p>We search for pdf files therefore, I&#8217;ll &#171;uncomment&#187; the lines which are responsible for pdf files<\/p>\n<p><a href=\"https:\/\/cybercop-training.ch\/wp-content\/uploads\/2020\/09\/scalpel3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-768\" src=\"https:\/\/cybercop-training.ch\/wp-content\/uploads\/2020\/09\/scalpel3.png\" alt=\"\" width=\"552\" height=\"263\" srcset=\"https:\/\/cybercop-training.ch\/wp-content\/uploads\/2020\/09\/scalpel3.png 552w, https:\/\/cybercop-training.ch\/wp-content\/uploads\/2020\/09\/scalpel3-300x143.png 300w\" sizes=\"auto, (max-width: 552px) 100vw, 552px\" \/><\/a><\/p>\n<p>Save the file and give scalpel a new try:<\/p>\n<p><code>scalpel evidence.img -o output<\/code><\/p>\n<p><a href=\"https:\/\/cybercop-training.ch\/wp-content\/uploads\/2020\/09\/scalpel4.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-769\" src=\"https:\/\/cybercop-training.ch\/wp-content\/uploads\/2020\/09\/scalpel4.png\" alt=\"\" width=\"517\" height=\"422\" srcset=\"https:\/\/cybercop-training.ch\/wp-content\/uploads\/2020\/09\/scalpel4.png 517w, https:\/\/cybercop-training.ch\/wp-content\/uploads\/2020\/09\/scalpel4-300x245.png 300w\" sizes=\"auto, (max-width: 517px) 100vw, 517px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/cybercop-training.ch\/wp-content\/uploads\/2020\/09\/scalpel5.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-770\" src=\"https:\/\/cybercop-training.ch\/wp-content\/uploads\/2020\/09\/scalpel5.png\" alt=\"\" width=\"627\" height=\"271\" srcset=\"https:\/\/cybercop-training.ch\/wp-content\/uploads\/2020\/09\/scalpel5.png 627w, https:\/\/cybercop-training.ch\/wp-content\/uploads\/2020\/09\/scalpel5-300x130.png 300w\" sizes=\"auto, (max-width: 627px) 100vw, 627px\" \/><\/a><\/p>\n<p>Let&#8217;s brows in the output directory and use the tool pdftotext<\/p>\n<p><a href=\"https:\/\/cybercop-training.ch\/wp-content\/uploads\/2020\/09\/scalpel6.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-771\" src=\"https:\/\/cybercop-training.ch\/wp-content\/uploads\/2020\/09\/scalpel6.png\" alt=\"\" width=\"442\" height=\"201\" srcset=\"https:\/\/cybercop-training.ch\/wp-content\/uploads\/2020\/09\/scalpel6.png 442w, https:\/\/cybercop-training.ch\/wp-content\/uploads\/2020\/09\/scalpel6-300x136.png 300w\" sizes=\"auto, (max-width: 442px) 100vw, 442px\" \/><\/a><\/p>\n<blockquote><p>The flag is: ff8a95f5989fe663b4d8c4d82d32c2d0<\/p><\/blockquote>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>Disk forensics techniques are used to acquire the disk image, process this image to find artifacts of interest including deleted ones. In this lab, a <a class=\"mh-excerpt-more\" href=\"https:\/\/cybercop-training.ch\/?p=763\" title=\"Disk Forensics P3\">[&#8230;]<\/a><\/p>\n<\/div>","protected":false},"author":2,"featured_media":762,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,16],"tags":[],"class_list":["post-763","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-forensic","category-linux"],"_links":{"self":[{"href":"https:\/\/cybercop-training.ch\/index.php?rest_route=\/wp\/v2\/posts\/763","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cybercop-training.ch\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cybercop-training.ch\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cybercop-training.ch\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/cybercop-training.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=763"}],"version-history":[{"count":4,"href":"https:\/\/cybercop-training.ch\/index.php?rest_route=\/wp\/v2\/posts\/763\/revisions"}],"predecessor-version":[{"id":773,"href":"https:\/\/cybercop-training.ch\/index.php?rest_route=\/wp\/v2\/posts\/763\/revisions\/773"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cybercop-training.ch\/index.php?rest_route=\/wp\/v2\/media\/762"}],"wp:attachment":[{"href":"https:\/\/cybercop-training.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=763"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cybercop-training.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=763"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cybercop-training.ch\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=763"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}