<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>JustAskWeg</title>
	<atom:link href="http://justaskweg.com/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://justaskweg.com</link>
	<description>A Place to Discuss Computer Forensics and Other Things that Greatly Affect the Meaning of Life</description>
	<lastBuildDate>Sat, 23 Mar 2013 21:21:54 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Troubleshooting VMs, Part 2</title>
		<link>http://justaskweg.com/?p=1201</link>
		<comments>http://justaskweg.com/?p=1201#comments</comments>
		<pubDate>Sat, 23 Mar 2013 21:21:54 +0000</pubDate>
		<dc:creator>jimmyweg</dc:creator>
				<category><![CDATA[Forensics]]></category>

		<guid isPermaLink="false">http://justaskweg.com/?p=1201</guid>
		<description><![CDATA[To follow up on my last post, I thought of some other mistakes that will prevent your VM from booting.  Bear in mind, that I&#8217;ve made most of these mistakes]]></description>
				<content:encoded><![CDATA[<p>To follow up on my last post, I thought of some other mistakes that will prevent your VM from booting.  Bear in mind, that I&#8217;ve made most of these mistakes as I came to the point of starting my blog.  On several occasions, I discussed that we had to edit or at least examine the registry of our guest system.  That requirement results from the fact that we built our VM with a SCSI disk, and the system on our guest (image file) may want to boot from an IDE disk.  You can go back through my posts to recall the basic steps to create a VM.  For now, just remember that we created our VM with a LSI SCSI controller.  First, let&#8217;s look at the unedited, SYSTEM hive from our guest drive, which we mount as read-write in VMware and loaded into our own (host) registry.</p>
<p><img class="aligncenter size-full wp-image-1207" alt="reg 1" src="http://justaskweg.com/wp-content/uploads/2013/03/reg-11.jpg" width="1011" height="390" /></p>
<p>As we created our VM with a LSI SCSI disk, we have to start the LSI SCSI driver at boot.  So, we change the <em>Start</em> value data to 0&#215;00.  Just change the 0&#215;03 to 0&#215;00 (change the 3 to 0 in the edit box).</p>
<p><img class="aligncenter size-full wp-image-1205" alt="reg 2" src="http://justaskweg.com/wp-content/uploads/2013/03/reg-21.jpg" width="983" height="215" /></p>
<p>Assuming that we fixed any password issues, we should be good to boot.  But wait; we get the old BSOD.  How can this happen, you ask Weg, as you edited the LSI SCSI registry key?  Here&#8217;s one way that it could.</p>
<p><img class="aligncenter size-full wp-image-1209" alt="LS1" src="http://justaskweg.com/wp-content/uploads/2013/03/LS1.jpg" width="486" height="454" /></p>
<p>When we get to the point where we choose our disk controller, VMware defaults to the LSI SAS controller, and even recommends that we keep the LSI SAS.  If you simply click through this option box, your machine will contain the SAS, and not the SCSI, controller.  When we boot, the system will crash because the wrong driver will load.  If you catch this mistake, you need not start fresh.  SAS is fine, if you load the LSI SAS driver.  Just go back and reset the LSI SCSI to 3, and change the LSI SAS (the first one, if there are two) to 0&#215;00.</p>
<p><img class="aligncenter size-full wp-image-1210" alt="SAS" src="http://justaskweg.com/wp-content/uploads/2013/03/SAS.jpg" width="1114" height="208" /></p>
<p><img class="aligncenter size-full wp-image-1211" alt="LSI 2" src="http://justaskweg.com/wp-content/uploads/2013/03/LSI-2.jpg" width="957" height="175" /></p>
<p>In the upper screenshot, note that we edited LSI_SAS and not LSI_SAS2.  If everything else is okay, you resolved the issue and your VM will boot.</p>
<p>Concerning VMs created from dd images, some folks forgot that we use a different procedure for <a title="Segmented dd images" href="http://justaskweg.com/?p=733" target="_blank">segmented images</a>.  Each segment must be enumerated in our VMDK file.</p>
<p><img class="aligncenter size-full wp-image-1219" alt="segmented" src="http://justaskweg.com/wp-content/uploads/2013/03/segmented.jpg" width="313" height="515" /></p>
<p>Lastly, we need to mount E01 and other image formats as physical disks to build VMs from them.  We need not create the usual VMDK file for the physical disk, as VMware will create it for us when we elect to build a VM from a physical disk.  Just be sure to go to the folder in which you created the VM and edit the VMX file.</p>
<p><img class="aligncenter size-full wp-image-1213" alt="vmx" src="http://justaskweg.com/wp-content/uploads/2013/03/vmx.jpg" width="547" height="226" /></p>
<p>Delete the word <em>raw.</em>  Then, take a snapshot after closing and re-opening the VM to refresh VMware.  Next, edit the registry/passwords as you would in the case of a dd image VM.</p>
]]></content:encoded>
			<wfw:commentRss>http://justaskweg.com/?feed=rss2&#038;p=1201</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>&#8220;I followed your instructions, and my image won&#8217;t boot.&#8221;</title>
		<link>http://justaskweg.com/?p=1172</link>
		<comments>http://justaskweg.com/?p=1172#comments</comments>
		<pubDate>Sat, 16 Mar 2013 22:51:14 +0000</pubDate>
		<dc:creator>jimmyweg</dc:creator>
				<category><![CDATA[Forensics]]></category>

		<guid isPermaLink="false">http://justaskweg.com/?p=1172</guid>
		<description><![CDATA[First, I want folks to know that comments and questions are welcome on my blog.  I enjoy responding and will give it my best within the confines of my free]]></description>
				<content:encoded><![CDATA[<p>First, I want folks to know that comments and questions are welcome on my blog.  I enjoy responding and will give it my best within the confines of my free time.  The aim of this post is to point out some common mistakes that examiners make when creating their VMs from single, dd image files.  Typically, the issues arise from a faulty VMDK descriptor file.  Most of the questions that I receive follow a colleague seeing the following message when he or she is at the last step of creating a VM from a vmdk file built for a given image.</p>
<p><img class="aligncenter size-full wp-image-1191" alt="error msg" src="http://justaskweg.com/wp-content/uploads/2013/03/error-msg.jpg" width="385" height="137" /></p>
<p>So, let&#8217;s start with a picture of what a valid VMDK file presents for a single dd image file of a Windows Vista/7/8 drive.</p>
<p><img class="aligncenter size-full wp-image-1174" alt="vmdk" src="http://justaskweg.com/wp-content/uploads/2013/03/vmdk.jpg" width="603" height="383" /></p>
<p>First of all, a VMDK file must be plain text.  Don&#8217;t create it in WordPad, Word, WordPerfect, etc., unless you are sure to save the file as plain text.  Here is a plain text file that you can use as a template: <a title="vmdk file" href="http://justaskweg.com/wp-content/uploads/2013/03/Windows-7x64-VM9.vmdk_.txt">VMDK file</a>.  I&#8217;ll take the blame for this one, as I had posted a RTF in my first post without enough explanation.  It&#8217;s fixed now.</p>
<p>Another common oversight is to use commas in numbers.  The numbers of sectors and cylinders, which are the numbers that you will edit, must appear as in the screenshot.  They&#8217;re yellow-highlighted in the screenshot.</p>
<p>Next, be sure to name you image file correctly.  In the example, it&#8217;s &#8220;<em>image.001&#8243;</em>.  Case is not sensitive.  Typos will kill the process.  In addition, the above VMDK file is designed to reside in the same folder as your image file.  If you want to store it elsewhere, insert the path to the image file within the quotes, e.g., &#8220;<em>D:\Cases\VMs\Image.001</em>&#8220;  Notice that certain parameters are enclosed in quotes.  If you neglect to use a single quotation mark, you&#8217;re apt to get a failure.</p>
<p>That&#8217;s it for now.  I&#8217;ll post a similar troubleshooter concerning E01-based VMs at a later date.</p>
]]></content:encoded>
			<wfw:commentRss>http://justaskweg.com/?feed=rss2&#038;p=1172</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows 8, GPT, UEFI, and Virtualization</title>
		<link>http://justaskweg.com/?p=1093</link>
		<comments>http://justaskweg.com/?p=1093#comments</comments>
		<pubDate>Sat, 09 Mar 2013 21:31:05 +0000</pubDate>
		<dc:creator>jimmyweg</dc:creator>
				<category><![CDATA[Forensics]]></category>

		<guid isPermaLink="false">http://justaskweg.com/?p=1093</guid>
		<description><![CDATA[Well, it&#8217;s here!  Moreover, if you&#8217;ve encountered one, you may think that GPT stands for &#8220;giant pain in the tush&#8221;  It can be, especially if you don&#8217;t know a little about]]></description>
				<content:encoded><![CDATA[<p>Well, it&#8217;s here!  Moreover, if you&#8217;ve encountered one, you may think that GPT stands for &#8220;<strong><span style="text-decoration: underline;">g</span></strong>iant <strong><span style="text-decoration: underline;">p</span></strong>ain in the <strong><span style="text-decoration: underline;">t</span></strong>ush&#8221;  It can be, especially if you don&#8217;t know a little about how these disks work in the newer machines.  I mentioned GPT in past blogs, <a href="http://justaskweg.com/?p=1024" target="_blank">here</a> and <a href="http://justaskweg.com/?p=999" target="_blank">here.</a>  I won&#8217;t go into much detail about it, but I will present a few particulars so we can see why this topic is relevant to virtualizing Win 8 systems.  GPT (really) stands for GUID Partition Table and replaces the Master Boot Record (MBR) that we&#8217;re accustomed to seeing.  In Windows, GPT allows for 128 partitions, whereas MBR, in simple terms, limits us to 26 (one for each letter of the alphabet).  As you saw from my earlier posts, GPT also supports disks &gt;2TB, whereas MBR does not.</p>
<p>Next, we have UEFI (Unified Extensible Firmware Interface), which is tied to GPT.  UEFI is the replacement for the BIOS and is required to create a bootable, GPT disk.  Windows 8 includes a few features that go hand in hand with GPT/UEFI.  One is the Secure Boot/Trusted Boot process, which is designed, in part, to protect the system from bootloader bugs and can prevent a system from booting or require some form of remediation, if any threats are discovered. The process also will recognize infections of critical system files and automatically boot into a repair mode, if it detects infections, and restore previous copies of the system files. Secure Boot is based upon UEFI, and many new systems will ship with UEFI systems and Secure Boot active.  It&#8217;s very important to note that you can’t boot such a machine to a non-UEFI system disk, unless you set the UEFI boot option to compatibly mode, a/k/a CSM (compatibility support module), in the UEFI setup (analogous to BIOS setup).</p>
<p>Here&#8217;s a screenshot of the UEFI setup on an HP system.</p>
<p><a href="http://justaskweg.com/wp-content/uploads/2013/03/BIOS-1.jpg"><img class="aligncenter size-full wp-image-1098" alt="BIOS-1" src="http://justaskweg.com/wp-content/uploads/2013/03/BIOS-1.jpg" width="342" height="456" /></a></p>
<p>Above, you can see some of the options that I described.  This system happens to default to CSM if a UEFI/GPT disk is replaced by a MBR disk.  Here&#8217;s what the Legacy Support option presents (Disabled/Enabled):</p>
<p><a href="http://justaskweg.com/wp-content/uploads/2013/03/Legacy-Boot.jpg"><img class="aligncenter size-full wp-image-1102" alt="Legacy Boot" src="http://justaskweg.com/wp-content/uploads/2013/03/Legacy-Boot.jpg" width="319" height="239" /></a></p>
<p>Should you disable this option, you could not boot a EUFI/GPT disk.  If you seek to disable Legacy Support, a warning to that effect will present.  This system will default over to CSM if it finds an MBR disk. There may be any number of variations among system manufacturers.</p>
<p>Many of you know that, through Windows Disk Management, Diskpart, and other tools, we can change the partitioning of a disk to and from GPT/MBR.  However, we can&#8217;t do that with conventional tools if the disk contains partitions.</p>
<p><a href="http://justaskweg.com/wp-content/uploads/2013/03/Convert.jpg"><img class="aligncenter size-full wp-image-1106" alt="Convert" src="http://justaskweg.com/wp-content/uploads/2013/03/Convert.jpg" width="324" height="292" /></a></p>
<p>As you can see, the option to convert my GPT disk to MBR is unavailable.  If I right click on the partition, <em>gpt-formatted (J:),</em> I would have the option to <em>Delete Volume&#8230;</em>  Thereafter, I could create either a GPT or MBR disk.</p>
<p>There is some debate over whether VMware 9.x can boot a GPT disk without at least a tweak to the configuration (VMX) file.  From tests, I found that a simple edit could overcome a failure to boot a GPT image.  Note that the same principles apply to booting mounted images, which are the practice with E01 and other non-raw image files.  However, we will have to adjust how we work with E01/mounted images (stuff for a later post).  To complicate things, it seems that VMware does not support mounting VMDK files that represent GPT disks.</p>
<p>By now, you should be familiar with creating a VM from a dd image by preparing  a VMDK descriptor file.  That process remains unchanged.  Once you accomplish that task, you will have a number of VMware system files in your VM folder:</p>
<p><a href="http://justaskweg.com/wp-content/uploads/2013/03/VM-Folder-1.jpg"><img class="aligncenter size-full wp-image-1110" alt="VM Folder-1" src="http://justaskweg.com/wp-content/uploads/2013/03/VM-Folder-1.jpg" width="203" height="263" /></a></p>
<p>The file of note is Win8.vmx.  For the best explanation of VMware system and config files, please visit Ulli Hankeln&#8217;s site at <a href="http://sanbarrow.com/">http://sanbarrow.com/</a>.  So, we&#8217;re at the point where we have a VM.  Next, we take a snapshot.  We can try to boot out Win 8 VM and see what happens.  If you receive a <em>no operating system found</em> message, I suggest that GPT/UEFI may be the culprit.  Of course, you probably visited the system settings earlier to document the setup.  There, you could have learned what might be in store concerning VMs.</p>
<p>Open your VMX file in a text editor and add the parameter <em>firmware = &#8220;efi&#8221;</em> to the file.  Below is a screenshot of a portion of my VMX file.</p>
<p><a href="http://justaskweg.com/wp-content/uploads/2013/03/VMX.jpg"><img class="aligncenter size-full wp-image-1116" alt="VMX" src="http://justaskweg.com/wp-content/uploads/2013/03/VMX.jpg" width="375" height="339" /></a></p>
<p>Now, your Win 8 image should boot, if at least the registry is set to boot to the LSI SCSI drive that&#8217;s in our standard VMDK file.  You should remember that, concerning Vista and Win 7 images, we took a snapshot and mounted our virtual disk with VMware as writable.  Then, we edited the registry so that the LSI SCSI service started at boot (0&#215;00):</p>
<p><a href="http://justaskweg.com/wp-content/uploads/2013/03/reg.jpg"><img class="aligncenter size-full wp-image-1117" alt="reg" src="http://justaskweg.com/wp-content/uploads/2013/03/reg.jpg" width="1049" height="780" /></a></p>
<p>&nbsp;</p>
<p>You also should recall that we stripped any essential passwords while our virtual disk was mounted.  The problem we have now is that VMware doesn&#8217;t support mounting GPT virtual disks.  You can go through the motions, and VMware will appear to mount the disk.  However, when you try to access it, you&#8217;ll see what follows.</p>
<p><a href="http://justaskweg.com/wp-content/uploads/2013/03/Error.jpg"><img class="aligncenter size-full wp-image-1119" alt="Error" src="http://justaskweg.com/wp-content/uploads/2013/03/Error.jpg" width="677" height="170" /></a></p>
<p>&nbsp;</p>
<p>Now, you may just get lucky and find that your target system already is set to load the LSI SCSI driver at boot and that the user had no password.  If that&#8217;s the case, you&#8217;re luckier than I am, and you&#8217;re good to go.  For the time being, we do have a workaround, which relies on our trusty SEAT Workstation.  While we can&#8217;t mount the virtual disk to our host system from VMware, we can add the virtual disk, <strong><span style="text-decoration: underline;">from its snapshot</span></strong>, to our SEAT Workstation.  Watch.</p>
<div id="v-67Adg0Tb-1" class="video-player"><embed id="v-67Adg0Tb-1-video" src="http://s0.videopress.com/player.swf?v=1.03&amp;guid=67Adg0Tb&amp;isDynamicSeeking=true" type="application/x-shockwave-flash" width="530" height="318" wmode="direct" seamlesstabbing="true" allowfullscreen="true" allowscriptaccess="always" overstretch="true"></embed></div>
<p>When we use VMware to mount a virtual disk, VMware defaults to the most recent snapshot of the virtual disk.  If we mount a VMware disk otherwise, we have to navigate to the latest snapshot manually.  Below, we can see that VMware is about to mount a snapshot file, which is apparent from the 000002 identifier, which was appended to the name of our original vmdk file.</p>
<p><a href="http://justaskweg.com/wp-content/uploads/2013/03/Snapshot.jpg"><img class="aligncenter size-full wp-image-1158" alt="Snapshot" src="http://justaskweg.com/wp-content/uploads/2013/03/Snapshot.jpg" width="743" height="626" /></a></p>
<p>You may wonder why we elected to add the virtual disk in persistent mode.  Well, we want to edit the registry and strip passwords, just as we did when mounting a virtual disk as read-write with VMware.  Our Win 8 VM has been snapshotted, so our original image, which also is write-protected, remains unchanged.  Next, we&#8217;ll boot our SEAT Workstation.</p>
<p><a href="http://justaskweg.com/wp-content/uploads/2013/03/Boot-SEAT.jpg"><img class="aligncenter size-full wp-image-1127" alt="Boot SEAT" src="http://justaskweg.com/wp-content/uploads/2013/03/Boot-SEAT.jpg" width="1057" height="560" /></a></p>
<p>Above, we see that our Win 8 virtual disk has been added to our Seat Workstation as Volume E:\.  Now, we&#8217;ll edit the registry of our virtual disk.</p>
<div id="v-kEEzpMx2-1" class="video-player"><embed id="v-kEEzpMx2-1-video" src="http://s0.videopress.com/player.swf?v=1.03&amp;guid=kEEzpMx2&amp;isDynamicSeeking=true" type="application/x-shockwave-flash" width="530" height="246" wmode="direct" seamlesstabbing="true" allowfullscreen="true" allowscriptaccess="always" overstretch="true"></embed></div>
<p>I&#8217;ve become accustomed to naming added hives in a manner that makes them stand out, just so I don&#8217;t edit my own system&#8217;s registry by mistake!  Note that you may find that your target&#8217;s System hive already may have the desired setting.  You can check that before you get this far, simply by examining the registry with your forensic tools.  The same thing applies for passwords.</p>
<div id="v-yWIQsJof-1" class="video-player"><embed id="v-yWIQsJof-1-video" src="http://s0.videopress.com/player.swf?v=1.03&amp;guid=yWIQsJof&amp;isDynamicSeeking=true" type="application/x-shockwave-flash" width="530" height="330" wmode="direct" seamlesstabbing="true" allowfullscreen="true" allowscriptaccess="always" overstretch="true"></embed></div>
<p>NTPWedit, being a Windows too, can run within our SEAT Workstation.  Simply copy the executable to your SEAT Workstation.  You can try to boot your Win 8 VM with one of the password editing discs, though I have not tried that approach.  Again, the process of adding your Win 8 virtual disk to your SEAT Workstation may be unnecessary, if you find that you target system already includes the correct registry setting and included no passwords.  Nevertheless, you had a refresher on the process, which is, in substance, the same with respect to Win Vista/7.  Now, we shut down our SEAT Workstation and remove the Win 8 virtual disk.</p>
<div id="v-K7G4DTkQ-1" class="video-player"><embed id="v-K7G4DTkQ-1-video" src="http://s0.videopress.com/player.swf?v=1.03&amp;guid=K7G4DTkQ&amp;isDynamicSeeking=true" type="application/x-shockwave-flash" width="530" height="280" title="Remove Win 8" wmode="direct" seamlesstabbing="true" allowfullscreen="true" allowscriptaccess="always" overstretch="true"></embed></div>
<p>Last, let&#8217;s see whether our Win 8 VM boots.  It does!</p>
<p><a href="http://justaskweg.com/wp-content/uploads/2013/03/Win-8-Boot.jpg"><img class="aligncenter size-full wp-image-1153" alt="Win 8 Boot" src="http://justaskweg.com/wp-content/uploads/2013/03/Win-8-Boot.jpg" width="771" height="563" /></a></p>
<p>There a few more things related to GPT, Win 8, etc., and I&#8217;ll be back with more as I get caught up and as I learn more about overcoming some of the hurdles that I identified above.  There also are a few things to discuss about examining shadow volumes in Win 8 systems.  They still exist in Win 8, though the Previous Versions feature is gone.  You may want to start thinking about building a SEAT Workstation on a Win 8 platform!</p>
<p>As time goes by, we&#8217;re seeing more tools that can make a shadow volume exam more efficient and may make my method &#8220;obsolete.&#8221;  Much depends on how you work and your resources. I like my approach because it allows me to incorporate my findings into X-Ways Forensics almost seamlessly.  Shadow volumes aside, booting an image of a target system is, IMHO, an essential part of almost every exam.</p>
<p>I want to make mention of one new tool that&#8217;s worth a look: Reconnoitre, which Paul Sanderson produced, <a href="http://sandersonforensics.com/forum/content.php?168-Reconnoitre">http://sandersonforensics.com/forum/content.php?168-Reconnoitre</a>.  Paul let me do a little beta testing, and I was impressed with the power of his latest creation.  Many of you are familiar with Paul&#8217;s tools, so you know that they perform as represented and meet the demands of the forensic community.  That&#8217;s it for now.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://justaskweg.com/?feed=rss2&#038;p=1093</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Booting a Write-Blocked Drive in VMware</title>
		<link>http://justaskweg.com/?p=1063</link>
		<comments>http://justaskweg.com/?p=1063#comments</comments>
		<pubDate>Sat, 19 Jan 2013 22:00:35 +0000</pubDate>
		<dc:creator>jimmyweg</dc:creator>
				<category><![CDATA[Forensics]]></category>

		<guid isPermaLink="false">http://justaskweg.com/?p=1063</guid>
		<description><![CDATA[The other day, my colleague, Huey Nguyen, just asked Weg whether he could create a VM from a physically write-blocked disk.  That was a great question, particularly as drives get bigger]]></description>
				<content:encoded><![CDATA[<p>The other day, my colleague, Huey Nguyen, just asked Weg whether he could create a VM from a physically write-blocked disk.  That was a great question, particularly as drives get bigger and imaging takes longer.  Conceptually, it seemed possible, so I gave it a whirl and will demonstrate the process.  First, readers should recall my <a href="http://justaskweg.com/?p=653" target="_blank">post about creating VMs from mounted images (E01s).</a>  The process basically is the same.  However, please recall my <a href="http://justaskweg.com/?s=E01" target="_blank">latest post</a>, in which I discussed drives that are &gt;2TB.</p>
<p>I&#8217;ll go through some, but not all, of the stuff that we&#8217;ve done before because many folks don&#8217;t like going back and forth to reference information.  We&#8217;ll begin with a drive that I attached to my Tableau UltraBlock.</p>
<p><img class="aligncenter size-full wp-image-1067" alt="UltraBlock1" src="http://justaskweg.com/wp-content/uploads/2013/01/UltraBlock1.jpg" width="551" height="311" /></p>
<p>As you can see, I used the eSATA bus, but that&#8217;s irrelevant.  As long as Windows can see the disk, we&#8217;re in good shape.  <img class="aligncenter size-full wp-image-1069" alt="DiskMgt" src="http://justaskweg.com/wp-content/uploads/2013/01/DiskMgt.jpg" width="759" height="663" /></p>
<p>Note that our write-blocked is Disk 5.  Next, we&#8217;ll let VMware do the work of building our configuration files.  Here&#8217;s a quick refresher:</p>
<div id="v-4XVtAW4n-1" class="video-player"><embed id="v-4XVtAW4n-1-video" src="http://s0.videopress.com/player.swf?v=1.03&amp;guid=4XVtAW4n&amp;isDynamicSeeking=true" type="application/x-shockwave-flash" width="522" height="530" wmode="direct" seamlesstabbing="true" allowfullscreen="true" allowscriptaccess="always" overstretch="true"></embed></div>
<p>Next, we&#8217;ll navigate to the VM&#8217;s folder and open the VMX file in a text editor.  We&#8217;ll edit the VMX file with respect to the disk type parameter for our disk, SCSI Drive 0, as in the next video.</p>
<div id="v-1ZRLn9MT-1" class="video-player"><embed id="v-1ZRLn9MT-1-video" src="http://s0.videopress.com/player.swf?v=1.03&amp;guid=1ZRLn9MT&amp;isDynamicSeeking=true" type="application/x-shockwave-flash" width="304" height="530" wmode="direct" seamlesstabbing="true" allowfullscreen="true" allowscriptaccess="always" overstretch="true"></embed></div>
<p>Natively, VMware will not allow us to snapshot a physical disk.  Editing the parameters allows us to trick VMware into thinking that we don&#8217;t have a raw disk.  Next, we have to refresh our VM to take a snapshot, so just close and reopen your VM in VMware, and take a snapshot.</p>
<div id="v-JrzbYlfo-1" class="video-player"><embed id="v-JrzbYlfo-1-video" src="http://s0.videopress.com/player.swf?v=1.03&amp;guid=JrzbYlfo&amp;isDynamicSeeking=true" type="application/x-shockwave-flash" width="530" height="320" wmode="direct" seamlesstabbing="true" allowfullscreen="true" allowscriptaccess="always" overstretch="true"></embed></div>
<p>The next step is to edit the registry.  Don&#8217;t worry, in addition to snapshot protection, our original drive is behind a physical write blocker.</p>
<div id="v-4321toXr-1" class="video-player"><embed id="v-4321toXr-1-video" src="http://s0.videopress.com/player.swf?v=1.03&amp;guid=4321toXr&amp;isDynamicSeeking=true" type="application/x-shockwave-flash" width="530" height="314" wmode="direct" seamlesstabbing="true" allowfullscreen="true" allowscriptaccess="always" overstretch="true"></embed></div>
<p>After you&#8217;re finished, be sure to unmap the volume in VMware.  However, if you want to remove any logon passwords, be sure to do so before you unmap your volume.  I described that process in an <a href="http://justaskweg.com/?p=7" target="_blank">earlier post,</a> which suggested the <a href="http://www.pcworld.com/product/969338/ntpwedit.html" target="_blank">NTPWEDIT</a> tool.  To unmap the volume in VMware, you may have to close all Explorer windows, or simply tell VMware for force a disconnect if prompted.  Note that we could have used a SAS disk in our VM, but I think that the SCSI option is a little less confusing when it comes to editing the registry.  After the edits, you may want to take another snapshot.</p>
<p>Next, sit back and behold your powers!</p>
<div id="v-M4UbvYKJ-1" class="video-player"><embed id="v-M4UbvYKJ-1-video" src="http://s0.videopress.com/player.swf?v=1.03&amp;guid=M4UbvYKJ&amp;isDynamicSeeking=true" type="application/x-shockwave-flash" width="530" height="284" wmode="direct" seamlesstabbing="true" allowfullscreen="true" allowscriptaccess="always" overstretch="true"></embed></div>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://justaskweg.com/?feed=rss2&#038;p=1063</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mounted Images &#8211; Breaking the 2TB Barrier</title>
		<link>http://justaskweg.com/?p=1024</link>
		<comments>http://justaskweg.com/?p=1024#comments</comments>
		<pubDate>Sat, 05 Jan 2013 23:15:11 +0000</pubDate>
		<dc:creator>jimmyweg</dc:creator>
				<category><![CDATA[Forensics]]></category>

		<guid isPermaLink="false">http://justaskweg.com/?p=1024</guid>
		<description><![CDATA[In my last post, I described how to create a VM from a dd image file of a &#62;2TB disk.  VMware does not support &#62;2TB disks, so we had to]]></description>
				<content:encoded><![CDATA[<p style="text-align: left;">In my <a href="http://justaskweg.com/?p=999" target="_blank">last post</a>, I described how to create a VM from a dd image file of a &gt;2TB disk.  VMware does not support &gt;2TB disks, so we had to implement a workaround.  You may recall that I stored my dd image as NTFS-compressed.  However, we can achieve better compression with E01 imaging.  The issue, however, is that we have to mount an E01 as a physical disk to create a VM from the E01 image.  I explained how to do this in an <a href="http://justaskweg.com/?p=653" target="_blank">earlier post</a>.  That approach applies to any mounted image, regardless of whether it is an E01.  We have to proceed differently if we have a mounted image that is &gt;2TB.  In my example, I use a 3TB disk.  As the process is somewhat experimental and not supported natively by VMware, make sure that your results are accurate.  I&#8217;d like to thank Darius and the other talented folks at the VMware Community for their guidance.</p>
<p style="text-align: left;">We&#8217;re going to create a custom vmdk file for our mounted image file.  The first step is to mount our E01, and my example uses FTK Imager with write caching.</p>
<p style="text-align: left;"><img class="aligncenter size-full wp-image-1047" alt="ftk-1" src="http://justaskweg.com/wp-content/uploads/2013/01/ftk-1.jpg" width="589" height="565" /></p>
<p style="text-align: left;">Note that my image is mounted as Drive 9.  An easy way to start is by creating a VM from another, <strong>&lt;</strong>2TB mounted image file (not your target, &gt;2TB image or any image that large).  Doing so will provide the vmdk and vmx files that we must edit.  Here&#8217;s a refresher:</p>
<p style="text-align: left;"><div id="v-kq5gSikw-1" class="video-player"><embed id="v-kq5gSikw-1-video" src="http://s0.videopress.com/player.swf?v=1.03&amp;guid=kq5gSikw&amp;isDynamicSeeking=true" type="application/x-shockwave-flash" width="530" height="434" wmode="direct" seamlesstabbing="true" allowfullscreen="true" allowscriptaccess="always" overstretch="true"></embed></div></p>
<p style="text-align: left;">When you create your &#8220;template&#8221; VM, it will be handy if you give it the same name as you intend for your &gt;2TB VM.  Navigate to the folder in which you created your sample VM, and open the vmdk file in a text editor.  The next screenshot depicts the vmdk, as it will appear <span style="text-decoration: underline;">after</span> we edit the file.  I&#8217;ll explain afterward.</p>
<p style="text-align: left;"><img class="aligncenter size-full wp-image-1033" alt="vmdk" src="http://justaskweg.com/wp-content/uploads/2013/01/vmdk.jpg" width="709" height="469" /></p>
<p style="text-align: left;">Note the yellow highlighted portions, and let&#8217;s start with the lower one.  We know by now that we have to edit our vmdk file to match our disk&#8217;s geometry.  The math is Total Sectors/63/255=Cylinders.  In my example, 5860533168<strong>/</strong>63<strong>/</strong>255=364802, and you can see those numbers reflected in my geometry.</p>
<p style="text-align: left;">No, let&#8217;s move our attention to the upper portion.  Your original vmdk sample file will contain one extent, which looks like this (number of sectors will vary):</p>
<p style="text-align: left;"># Extent description<br />
RW 625142448 FLAT &#8220;\\.\PhysicalDrive9&#8243; 0</p>
<p style="text-align: left;">In our edited version, we had to &#8220;split&#8221; the disk to avoid extents that are &gt;2TB.  Otherwise, VMware will reject the disk because it presents as &gt;2TB.  Using the edited extents, we instruct VMware to read 2930266584 sectors beginning at Sector 0 and 2930266584 sectors starting at Sector 2930266584.  As we&#8217;re still using a flat (single) disk, we must tell VMware how to address the disk.  We could have split the disk into, for example, four extents.  If you have a 4TB disk, you may have to split a little further.  In simple terms, we tell VMware, &#8220;Start here and read X sectors, from that point read Y sectors, etc.&#8221;  The last extent instructs VMware to go from the indicated address and read the number of sectors to the end of the disk.  Also be sure to insert the disk number that corresponds with your target, &gt;2TB mounted image, e.g., PhysicalDrive<span style="text-decoration: underline;"><em><strong>9</strong></em></span>.</p>
<p style="text-align: left;">Next, open your vmx file in a text editor.  This is a screenshot of the top portion of the config settings.  Note the highlighted line.</p>
<p style="text-align: left;"><img class="aligncenter size-full wp-image-1036" alt="vmx" src="http://justaskweg.com/wp-content/uploads/2013/01/vmx.jpg" width="345" height="271" /></p>
<p style="text-align: left;">Change the highlighted setting to <em>Disk</em> by deleting the prepended word <em>raw.</em>  That will allow snapshotting in the GUI. <img class="aligncenter size-full wp-image-1037" alt="vmx edit" src="http://justaskweg.com/wp-content/uploads/2013/01/vmx-edit.jpg" width="215" height="45" /></p>
<p style="text-align: left;">Next, open your VM.  You can double-click your vmx file.  I then create a snapshot.</p>
<p style="text-align: left;"><img class="aligncenter size-full wp-image-1038" alt="Snapshot" src="http://justaskweg.com/wp-content/uploads/2013/01/Snapshot.jpg" width="923" height="693" /></p>
<p style="text-align: left;">I want to point out that my large disk was partitioned with one 2TB MBR partition, and the excess was unpartitioned.  To use an entire, &gt;2TB disk in Windows, requires a GPT disk, which I touched on in my previous post.  Thus far, I have not seen a GPT disk with an operating system, though one can install Windows on such disks, with certain restrictions.  To illustrate my disk, check the next, two screenshots, which are from Disk Manager.</p>
<p style="text-align: left;"><img class="aligncenter size-full wp-image-1043" alt="volume1" src="http://justaskweg.com/wp-content/uploads/2013/01/volume1.jpg" width="419" height="157" /></p>
<p style="text-align: left;"><img class="aligncenter size-full wp-image-1044" alt="volume2" src="http://justaskweg.com/wp-content/uploads/2013/01/volume21.jpg" width="391" height="255" /></p>
<p style="text-align: left;">My disk  is an MBR disk.  The mechanics would be the same for a GPT disk; however, using GPT disks in VMware is something that I have to explore.  I&#8217;ll post after I do some testing,</p>
<p style="text-align: left;">As disks become even larger, we may find that imaging them is not always practical.  The procedures described above will work for a true physical disk, although I have not tested the method through a write-blocker.  If you want to create a VM from an actual physical disk, you must take the disk offline before you boot the VM.  In the previous screenshot, you can see the option, which can be accessed by right-clicking the disk in Disk Manager.</p>
]]></content:encoded>
			<wfw:commentRss>http://justaskweg.com/?feed=rss2&#038;p=1024</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How Do I Handle Really Big Disks?</title>
		<link>http://justaskweg.com/?p=999</link>
		<comments>http://justaskweg.com/?p=999#comments</comments>
		<pubDate>Fri, 14 Dec 2012 21:44:13 +0000</pubDate>
		<dc:creator>jimmyweg</dc:creator>
				<category><![CDATA[Forensics]]></category>

		<guid isPermaLink="false">http://justaskweg.com/?p=999</guid>
		<description><![CDATA[I&#8217;ll begin by saying, &#8220;differently.&#8221;  At this time, VMware does not handle disks that are larger than 2TB.  You can&#8217;t create a VM with such disks, nor can you add]]></description>
				<content:encoded><![CDATA[<p>I&#8217;ll begin by saying, &#8220;differently.&#8221;  At this time, VMware does not handle disks that are larger than 2TB.  You can&#8217;t create a VM with such disks, nor can you add them to an existing VM.  There is, however, a workaround, and I want to give a shout out to Ulli Hankeln (see blog roll) for his help.  In an <a title="Segmented dd images" href="http://justaskweg.com/?p=733" target="_blank">earlier post</a>, I demonstrated how we could build a VM from a split dd image.  To overcome the 2TB limitation, we&#8217;re going to use that approach, but with a slight difference in our vmdk file.</p>
<p>This is a work in progress.  There may be a better way, and I&#8217;m looking into alternatives and other ways to handle 2TB+ disks.  I am also going to avoid a discussion on GPT (GUID Partition Table) disks and UEFI (Unified Extensible Firmware Interface).  You can find plenty of discussions on those topics, and I suggest that you look them up if, for example, your system can&#8217;t recognize a 2TB+ disk.  I&#8217;m going to describe the procedure now, and try to address some anticipated questions later.</p>
<p>First, let&#8217;s go back and look at the <a href="http://justaskweg.com/?paged=2">vmdk file</a> that we created for use with a typical split dd image. Note the parameter <em>createType=&#8221;monolithicFlat&#8221;</em> in the first section.  My friend, Ulli, has a great reference on vmdk file parameters at <a href="http://sanbarrow.com/vmdk-basics.html#what">http://sanbarrow.com/vmdk-basics.html#what</a>.  The <em>createType</em> relates to the type of disk, and <em>monolithicFlat</em> generally describes a single, whole disk.  However, we &#8220;cheated&#8221; a little bit in the previous, split dd image scenario, as it really didn&#8217;t matter that we chose a split image as a whole disk.  Each extent in the graphic describes a disk (image) segment and is expressed in number of sectors (512 bytes per sector here).  (I omitted a listing every segment for the sake of brevity.)</p>
<p><img class="aligncenter size-full wp-image-962" alt="Split vmdk" src="http://justaskweg.com/wp-content/uploads/2012/11/Split-vmdk.jpg" width="459" height="591" /></p>
<p>Before we create a vmdk file for our 2TB+ disk, we will create a segmented dd image of the medium.  You must keep your segments &lt;2TB.   I used a 3TB disk, and here&#8217;s a screenshot of mine:  <img class="aligncenter size-full wp-image-1004" alt="Split image file" src="http://justaskweg.com/wp-content/uploads/2012/12/Split-image-file.jpg" width="617" height="555" /></p>
<p>You may note that I compressed my segments with NTFS compression.  Don&#8217;t use NTFS Sparse compression (another handy feature offered by X-Ways Forensics), as it won&#8217;t work and really helps only if the disk has many zero-bytes.  Note that each of my segments is 125GB.  We use <em>Size</em> and not <em>Size on disk.  </em>Let&#8217;s do the math.  134,217,728,000 / 512 = 262,144,000 sectors per segment.  So, we have the value for each extent in our vmdk file, <span style="text-decoration: underline;">except for the last segment</span> (do the math).</p>
<p>&nbsp;</p>
<p><img class="aligncenter size-full wp-image-1008" alt="BigDisk vmdk file" src="http://justaskweg.com/wp-content/uploads/2012/12/BigDisk-vmdk-file.jpg" width="569" height="475" /></p>
<p>You&#8217;ll note the <em>createType</em> right away by its highlighting.  This was the type that I was able to use for large disks.  This type also will work for our smaller split disks: <em>twoGbMaxExtendFlat</em>.  The disk that I used was not a system disk, so we won&#8217;t create a VM from our vmdk, but will add it to an existing VM.  Any by the way, Dana McNeil&#8217;s <a href="http://justaskweg.com/?s=mcneil">VMDK Creator</a> makes vmdk creation a snap!</p>
<div id="v-sp9mYkfM-1" class="video-player"><embed id="v-sp9mYkfM-1-video" src="http://s0.videopress.com/player.swf?v=1.03&amp;guid=sp9mYkfM&amp;isDynamicSeeking=true" type="application/x-shockwave-flash" width="530" height="374" wmode="direct" seamlesstabbing="true" allowfullscreen="true" allowscriptaccess="always" overstretch="true"></embed></div>
<p>The disk that I added was not a system disk, nor was it associated with my VM&#8217;s system.  All of the 2TB+ drives that I&#8217;ve seen thus far were used to store stuff, typically videos and graphics.  Although I compressed my image segments substantially, I can&#8217;t hope to do so with the average, seasoned disk that I&#8217;ll find in the field.  I could achieve even better compression with an E01 image, given the proper compression method.  However, using an E01 requires that we <a title="Using E01 images" href="http://justaskweg.com/?p=653" target="_blank">mount the image as a physical disk</a>.  That&#8217;s where the problem lies, for the moment.  I have yet to overcome the challenge of creating a VM or virtual disk from a physical disk that&#8217;s &gt;2TB.  I&#8217;m studying that problem now, and I&#8217;ll post again if I find a solution.  Whether we even image such large drives may be questionable.  Perhaps we&#8217;ll do our exams on the original disk through a write blocker.  Thanks for tuning in, folks!</p>
]]></content:encoded>
			<wfw:commentRss>http://justaskweg.com/?feed=rss2&#038;p=999</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Automating VMDK File Creation</title>
		<link>http://justaskweg.com/?p=959</link>
		<comments>http://justaskweg.com/?p=959#comments</comments>
		<pubDate>Sat, 03 Nov 2012 21:52:36 +0000</pubDate>
		<dc:creator>jimmyweg</dc:creator>
				<category><![CDATA[Forensics]]></category>

		<guid isPermaLink="false">http://justaskweg.com/?p=959</guid>
		<description><![CDATA[In my first post, I described how to create a vmdk descriptor file from a single, dd image.  Later, I posted on creating vmdk files from split, dd images.  Creating]]></description>
				<content:encoded><![CDATA[<p>In my <a href="http://justaskweg.com/?p=7">first post</a>, I described how to create a vmdk descriptor file from a single, dd image.  Later, I <a href="http://justaskweg.com/?p=733">posted</a> on creating vmdk files from split, dd images.  Creating a vmdk descriptor file from a single, dd image is a relatively simple task, especially if you keep a handy template.  Segmented dd images, however, can make vmdk file creation laborious.  To illustrate, here&#8217;s an screenshot of a vmdk file that references a segmented image:</p>
<p><a href="http://justaskweg.com/wp-content/uploads/2012/11/Split-vmdk.jpg"><img class="aligncenter  wp-image-962" title="Split vmdk" src="http://justaskweg.com/wp-content/uploads/2012/11/Split-vmdk.jpg" alt="" width="459" height="591" /></a>As you can see, we can have any number of segments to enumerate.  That&#8217;s where the basis of this post comes into play.</p>
<p>Dana McNeil is a seasoned detective with the Bozeman, MT, Police Department.  He&#8217;s certified as a computer forensics examiner and a member of our Internet Crimes Against Children Task Force.   On top of that, Dana&#8217;s a programmer.  He wrote a handy tool named WinVMDKCreator to automate building vmdk files from single or multiple dd image files.  Even with a single image, Dana&#8217;s tool removes a margin of error that exists when humans copy, paste, and do math.  In keeping with our philosophy of sharing with the forensics community, Dana kindly allowed me to share his latest beta with my readers.  So, here it is: <a href="http://justaskweg.com/wp-content/uploads/2012/11/WinVMDKCreator.zip">WinVMDKCreator.</a>  To make downloading less troublesome for some readers, the zipped application is in another zip file that&#8217;s encrypted with the password <em>vmdk</em>.  Simply unzip the application and its accompanying files to a location of your choice.  It&#8217;s a portable app, and no installation (or uninstallation) is required.</p>
<p>When you run the executable, the following screen presents.  I&#8217;ll demo the tool with a video later.</p>
<p><a href="http://justaskweg.com/wp-content/uploads/2012/11/Screen1.jpg"><img class="aligncenter size-full wp-image-969" title="Screen1" src="http://justaskweg.com/wp-content/uploads/2012/11/Screen1.jpg" alt="" width="787" height="801" /></a></p>
<p>In sum, you point the WinVMDKCreator to your dd image file, choose some options, and create a vmdk descriptor file in a few seconds.  Dana also allows us to have WinVMDKCreator set our image files to read-only, in case we haven&#8217;t done so already.  A log file is created to document the operation.  I&#8217;ll demonstrate with a 75-piece dd image set.</p>
<div id="v-lDYYxHJA-1" class="video-player"><embed id="v-lDYYxHJA-1-video" src="http://s0.videopress.com/player.swf?v=1.03&amp;guid=lDYYxHJA&amp;isDynamicSeeking=true" type="application/x-shockwave-flash" width="530" height="400" wmode="direct" seamlesstabbing="true" allowfullscreen="true" allowscriptaccess="always" overstretch="true"></embed></div>
<p>WInVMDKCreator needs only the first segment of a mulit-part dd image and uses the image file to compute the disk geometry.  By default, it verifies its findings with the <span style="text-decoration: underline;">imaging</span> verification file produced by X-Ways Forensics or FTK Imager.  WinVMDKCreator was designed to parse the formats of the text files produced by those applications.  You can choose a different file, though WinVMDKCreator may not understand its format.  Had we looked, we would have noted that every image segment&#8217;s attribute was set to read-only.  Presently, WinVMDKCreator allows us to choose an output version suitable to VMware 8 or 9.  Finally, WinVMDKCreator names the descriptor file after the name of the image.  You can choose a different name if you wish.</p>
<p>Let me go over a few points about VMware versions and vmdk file formats.  First, they&#8217;re not critical to any task that we&#8217;ll undertake in forensics.  However, if you&#8217;re versions don&#8217;t conform with your VMware version, you may find yourself perplexed over choices that present during VM creation.  I&#8217;ll demonstrate by beginning at the VMware 9 screen where we decide to create a VM from an existing virtual disk.</p>
<div id="v-jYzAL9qm-1" class="video-player"><embed id="v-jYzAL9qm-1-video" src="http://s0.videopress.com/player.swf?v=1.03&amp;guid=jYzAL9qm&amp;isDynamicSeeking=true" type="application/x-shockwave-flash" width="530" height="478" wmode="direct" seamlesstabbing="true" allowfullscreen="true" allowscriptaccess="always" overstretch="true"></embed></div>
<p>If we created a vmdk descriptor file based upon VMware 8, VMware asks whether we want to convert it to Version 9.  Let&#8217;s say we&#8217;re inclined to do so.  Well, the next box tells us that we can&#8217;t.  The reason for this is that our underlying image file is read only, and we can&#8217;t take a snapshot before our VM is created.  It&#8217;s a chicken-egg thing.  I can tell you that VMware doesn&#8217;t need to &#8220;edit&#8221; the image file for a conversion, but I like to keep my images read-only.  If you simply choose to keep the existing format, VMware will create your VM, and it will work fine.  There are other ways around this, but I&#8217;ll leave this issue alone as it&#8217;s really insignificant.</p>
<p>Remember that WinVMDKCreator is still a beta, thought it seems ready for full deployment.  Basically, if your VM works, WinVMDKCreator did its job.  If you like the tool, give a shout out to Dana or drop him a note.  His  email address is in the &#8220;good-bye&#8221; box that presents when you close the application.</p>
]]></content:encoded>
			<wfw:commentRss>http://justaskweg.com/?feed=rss2&#038;p=959</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Other Tools &amp; Approaches to Access Shadow Volumes</title>
		<link>http://justaskweg.com/?p=924</link>
		<comments>http://justaskweg.com/?p=924#comments</comments>
		<pubDate>Thu, 18 Oct 2012 18:50:40 +0000</pubDate>
		<dc:creator>jimmyweg</dc:creator>
				<category><![CDATA[Forensics]]></category>

		<guid isPermaLink="false">http://justaskweg.com/?p=924</guid>
		<description><![CDATA[I. Shadow Scanner In the first section of this post, I&#8217;m going to review another way to examine shadow volumes, by using a commercial tool named Shadow Scanner, which is]]></description>
				<content:encoded><![CDATA[<h3 style="text-align: center;">I. Shadow Scanner</h3>
<p>In the first section of this post, I&#8217;m going to review another way to examine shadow volumes, by using a commercial tool named Shadow Scanner, which is produced by <a title="EKLsoftware" href="http://www.shadowscanner.com/" target="_blank">EKLsoftware</a>.  One of our esteemed colleagues, Rob Erdely, is on the EKLsoftware team and is very well versed in Shadow Volumes.  The link above also guides the reader to a couple of videos that nicely explain Shadow Volume basics and the Shadow Scanner application.</p>
<p>Please keep in mind that I&#8217;m not going to present a tutorial on Shadow Scanner (SS), beyond a simple demonstration.  The guys at EKLsoftware already have done that through their videos and PDF documentation.  My aim is to show that you can avail yourself of SS&#8217;s powerful features right in your SEAT workstation.  You don&#8217;t need to restore the image (which is unnecessary with respect to almost any shadow volume exam).</p>
<p>As we&#8217;ve seen, accessing the Shadow Volumes from an image or mounted image (volume) directly on forensic workstation, through Windows, generally is not possible.  While we can do so by converting our image to VHD format, doing so requires editing our dd image file as I described in a previous <a title="VHD" href="http://justaskweg.com/?p=710">post.</a></p>
<p>In a nutshell, SS allows an examiner to compare Shadow Volumes with the target&#8217;s current system to see whether files were changed, deleted, or added.  I&#8217;ll start with a video in which I set up a scenario.  Previously, I added the virtual disk (vmdk file), which I created from my image of the target system, to my SEAT workstation.  It&#8217;s Volume F:</p>
<div id="v-tFdKF1rN-1" class="video-player"><embed id="v-tFdKF1rN-1-video" src="http://s0.videopress.com/player.swf?v=1.03&amp;guid=tFdKF1rN&amp;isDynamicSeeking=true" type="application/x-shockwave-flash" width="530" height="258" wmode="direct" seamlesstabbing="true" allowfullscreen="true" allowscriptaccess="always" overstretch="true"></embed></div>
<p>As you saw, I added a file to, and deleted some files from, an arbitrarily chosen folder.  Next, we&#8221;&#8217; run SS.</p>
<div id="v-7pdAnsjX-1" class="video-player"><embed id="v-7pdAnsjX-1-video" src="http://s0.videopress.com/player.swf?v=1.03&amp;guid=7pdAnsjX&amp;isDynamicSeeking=true" type="application/x-shockwave-flash" width="530" height="314" wmode="direct" seamlesstabbing="true" allowfullscreen="true" allowscriptaccess="always" overstretch="true"></embed></div>
<p>As we saw, SS compared the target folder with the current volume and noted files that had been deleted, i.e., not present in the current volume, but present in the selected shadow volume.  SS also noted the created file, i.e., present today, but not in the selected shadow volume.  Using your SEAT VM allows you to employ SS without restoring the image file or installing SS in a booted image of the target.</p>
<p>Again, there are all kinds of options that SS affords an examiner.  For one, you&#8217;re not limited to selecting only one shadow volume to scan and compare.  Visit the SS site and have a look.  The publishers also are kind enough to offer a trial version.</p>
<h3 style="text-align: center;">II. Another Approach</h3>
<p>One last point on getting your image file into your SEAT workstation.  In an earlier <a title="Adding a virtual disk to your SEAT workstation" href="http://justaskweg.com/?p=401">post, </a>I described how we add a custom-built, virtual disk to our SEAT workstation.  Generally, I create VMs from my target image files because I want to boot the target and kind of immerse (pun on Windows 8 intended) myself in the user&#8217;s system.  However, you don&#8217;t have to create a vmdk disk.  You can mount an image (any format) in your host and add the mounted image to your SEAT workstation.  Watch.</p>
<div id="v-q5YS7UKf-1" class="video-player"><embed id="v-q5YS7UKf-1-video" src="http://s0.videopress.com/player.swf?v=1.03&amp;guid=q5YS7UKf&amp;isDynamicSeeking=true" type="application/x-shockwave-flash" width="530" height="364" wmode="direct" seamlesstabbing="true" allowfullscreen="true" allowscriptaccess="always" overstretch="true"></embed></div>
<p>Note that, in FTK Imager, I selected the Block Device / Writable method.  This allow &#8220;writes&#8221; to the disk to be cached, as opposed to actually being written to the mounted image.  I also left the Mount Type as Physical &amp; Logical, although I could have chosen Physical Only.</p>
<p>Next, we&#8217;ll add the mounted, physical disk to our SEAT workstation.</p>
<div id="v-GPorzvFA-1" class="video-player"><embed id="v-GPorzvFA-1-video" src="http://s0.videopress.com/player.swf?v=1.03&amp;guid=GPorzvFA&amp;isDynamicSeeking=true" type="application/x-shockwave-flash" width="530" height="370" wmode="direct" seamlesstabbing="true" allowfullscreen="true" allowscriptaccess="always" overstretch="true"></embed></div>
<p>If we mount the image as Block Device / <span style="text-decoration: underline;">Read Only</span> with FTK imager, we have to take a snapshot of the SEAT workstation before we boot it with the mounted disk attached.  When you boot your VM, you may see a couple of things that catch your attention.</p>
<p><a href="http://justaskweg.com/wp-content/uploads/2012/10/SCSI-Warning.jpg"><img class="aligncenter size-full wp-image-937" title="SCSI Warning" src="http://justaskweg.com/wp-content/uploads/2012/10/SCSI-Warning.jpg" alt="" width="431" height="249" /></a></p>
<p><a href="http://justaskweg.com/wp-content/uploads/2012/10/Chkdsk.jpg"><img class="aligncenter size-full wp-image-938" title="Chkdsk" src="http://justaskweg.com/wp-content/uploads/2012/10/Chkdsk.jpg" alt="" width="652" height="622" /></a></p>
<p>Insofar as the SCSI disk warning is concerned, you may ignore it and click OK.  The second screenshot reveals that Windows wants to check one of our disks, which is the newly added physical disk, for consistency (CHKDSK).  You may just let it proceed, or canceling likely will have no effect.</p>
]]></content:encoded>
			<wfw:commentRss>http://justaskweg.com/?feed=rss2&#038;p=924</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Virtual Resurrection</title>
		<link>http://justaskweg.com/?p=898</link>
		<comments>http://justaskweg.com/?p=898#comments</comments>
		<pubDate>Sat, 06 Oct 2012 19:24:50 +0000</pubDate>
		<dc:creator>jimmyweg</dc:creator>
				<category><![CDATA[Forensics]]></category>

		<guid isPermaLink="false">http://justaskweg.com/?p=898</guid>
		<description><![CDATA[I think most of us agree that, in addition to shadow volume exams, one of the most useful features of building a VM from an image is to determine the configurations]]></description>
				<content:encoded><![CDATA[<p>I think most of us agree that, in addition to shadow volume exams, one of the most useful features of building a VM from an image is to determine the configurations of various programs.  Although details of configuration files are available for a number of frequently encountered applications, it&#8217;s often easier to simply run the program in a VM and determine the setup of the program.  For example, I found this approach to be especially useful in peer-to-peer (P2P) exams, with respect to programs like LimeWire, FrostWire, etc.  More specifically, while config files can tell us which individual files are shared, parsing through them is quite an undertaking.  Anytime we start parsing complex files, the chances  of error also increase.  If we run the application in a VM, we can review the configuration in a virtually (no pun intended) fail-safe environment.</p>
<p>Obviously, to run an application in a VM, the application must exist.  What about a case in which you know that the subject employed a particular application, but your exam of the acquired image reveals that the program no longer exists?  A VM will only afford access to those objects that exist, although we always can explore shadow volumes.  However, we can&#8217;t run most applications from a shadow volume folder or mounted shadow volume.  It&#8217;s analogous to trying to run an application from a mapped volume; it may work with some, but not all, applications.  I&#8217;m going to review a couple of approaches to &#8220;bring back the dead.&#8221;  I&#8217;ll say up front that these methods are somewhat experimental and don&#8217;t always work.  There also may be other approaches to this project, but mine assumes that you want to run the previously existing application in its native system.</p>
<p>Much depends on the complexity of the application that you want to restore and the method by which it was removed.  I&#8217;ve found that most users employ the application uninstaller to remove an unwanted program.  Some applications, particularly  P2Ps, remove the application folder from the Program Files directory, but leave behind the configuration files, which usually are in the user&#8217;s AppData tree.  The first approach is a simple copy and paste where we copy the application folder from the most recent shadow volume in which the program existed.  We can start by using the quick shadow volume exam approach that I outlined <a title="Getting a quick look at shadow volumes" href="http://justaskweg.com/?p=800" target="_blank">previously</a>.</p>
<p>When I undertake a program resurrection, I usually start with a base VM of the target, before I install VMware Tools or do anything that may disrupt the system.  In my example, we know that the subject used a P2P program named LimeZilla.  However, a look at the image file revealed that the application&#8217;s program folder was not present in Program Folders (x86).</p>
<p>Here are a couple of screenshots of the target VM to illustrate the point.  The first shows the AppData\Roaming folder for the LimeZilla config files.</p>
<p><a href="http://justaskweg.com/wp-content/uploads/2012/09/folder-1.jpg"><img class="aligncenter size-full wp-image-904" title="folder 1" src="http://justaskweg.com/wp-content/uploads/2012/09/folder-1.jpg" alt="" width="813" height="550" /></a></p>
<p>Next, here&#8217;s a look at the Program Files (x86) folder.  The LimeZilla folder is missing.</p>
<p><a href="http://justaskweg.com/wp-content/uploads/2012/10/folder2.jpg"><img class="aligncenter size-full wp-image-905" title="folder2" src="http://justaskweg.com/wp-content/uploads/2012/10/folder2.jpg" alt="" width="820" height="634" /></a></p>
<p>Next, we&#8217;ll navigate to our available shadow volumes and look for the previously existing LimeZilla program folder.  Here&#8217;s a video.</p>
<div id="v-aXHBaFZ2-1" class="video-player"><embed id="v-aXHBaFZ2-1-video" src="http://s0.videopress.com/player.swf?v=1.03&amp;guid=aXHBaFZ2&amp;isDynamicSeeking=true" type="application/x-shockwave-flash" width="530" height="390" wmode="direct" seamlesstabbing="true" allowfullscreen="true" allowscriptaccess="always" overstretch="true"></embed></div>
<p>It&#8217;s always best to get as recent a copy of the application as possible.  Applications, particularly P2Ps, are fussy about matching the executable with the proper version of the configuration files.  Next, let&#8217;s see whether we are successful.</p>
<div id="v-jCZivyRm-1" class="video-player"><embed id="v-jCZivyRm-1-video" src="http://s0.videopress.com/player.swf?v=1.03&amp;guid=jCZivyRm&amp;isDynamicSeeking=true" type="application/x-shockwave-flash" width="530" height="398" wmode="direct" seamlesstabbing="true" allowfullscreen="true" allowscriptaccess="always" overstretch="true"></embed></div>
<p>We now have access to the most recent version of the application.  At this point, we can install VMware tools depending upon our goals.</p>
<p>We&#8217;re apt to find cases in which a simple copy and paste won&#8217;t work.  In those instances, we resort again to the shadow volumes and try a system restore.  Before I present a few warnings, I&#8217;ll demo the process.</p>
<div id="v-ZvQICuRm-1" class="video-player"><embed id="v-ZvQICuRm-1-video" src="http://s0.videopress.com/player.swf?v=1.03&amp;guid=ZvQICuRm&amp;isDynamicSeeking=true" type="application/x-shockwave-flash" width="530" height="258" wmode="direct" seamlesstabbing="true" allowfullscreen="true" allowscriptaccess="always" overstretch="true"></embed></div>
<p>The process may take quite a bit longer than the video made it appear.  In case you didn&#8217;t notice, my desktop background reverted to what it was at the time of my selected restore point.  In my example, I had installed VMware tools, although I usually don&#8217;t if I want to restore a system.  By going back in time, I lost my VMware Tools as well as my installation of FTK Imager.</p>
<p>I did manage to recover my Skype installation. Frankly, this process isn&#8217;t successful very often, and the old BSOD presents regularly.  For one, by going back in time, we probably returned to a time before we <a title="edit Services" href="http://justaskweg.com/?p=7" target="_blank">edited the drivers </a>through the registry services.  If that happens, you can try to fix the VM by returning the restored VM system&#8217;s registry to boot from the LSI SCSI drive.  Even so, I&#8217;ve had some failures in this approach.</p>
<p>I do have a couple of other approaches in the testing phase of my research.  When I make them a little more reliable, I&#8217;ll add a post.</p>
]]></content:encoded>
			<wfw:commentRss>http://justaskweg.com/?feed=rss2&#038;p=898</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What About an XP VM?</title>
		<link>http://justaskweg.com/?p=851</link>
		<comments>http://justaskweg.com/?p=851#comments</comments>
		<pubDate>Sat, 22 Sep 2012 22:38:41 +0000</pubDate>
		<dc:creator>jimmyweg</dc:creator>
				<category><![CDATA[Forensics]]></category>

		<guid isPermaLink="false">http://justaskweg.com/?p=851</guid>
		<description><![CDATA[From the start, my presentations concerned Windows 7 (and Vista).  When someone raised a question about XP, I thought it might be helpful to issue a post about building VMs]]></description>
				<content:encoded><![CDATA[<p>From the start, my presentations concerned Windows 7 (and Vista).  When someone raised a question about XP, I thought it might be helpful to issue a post about building VMs from XP.  We go about it differently, and I&#8217;m going to presume we&#8217;re starting with a single, dd image.  First, we begin with a different vmdk descriptor file.  Here&#8217;s a screenshot:</p>
<p><a href="http://justaskweg.com/wp-content/uploads/2012/09/XP-vmdk.jpg"><img class="aligncenter size-full wp-image-852" title="XP-vmdk" src="http://justaskweg.com/wp-content/uploads/2012/09/XP-vmdk.jpg" alt="" width="603" height="421" /></a></p>
<p>With one, notable exception, the descriptor file is configured like the<a title="Win 7 vmdk" href="http://justaskweg.com/?p=7" target="_blank"> one that we used for Windows 7</a>.  For XP, we use a standard IDE disk for our system.  Here&#8217;s a <a title="vmdk file" href="http://justaskweg.com/wp-content/uploads/2012/09/Windows-XP-Professional-VMw9.txt" target="_blank">text file</a> that you can edit, but change the extension back to vmdk.  It&#8217;s for use in VMware 9.  Use WordPad or an application that will respect the delimiters.  Remember, edit your file to identify the image name, number of physical sectors, and number of cylinders.</p>
<p>Next, I&#8217;ll go through the creation.</p>
<div id="v-YKpskmdm-1" class="video-player"><embed id="v-YKpskmdm-1-video" src="http://s0.videopress.com/player.swf?v=1.03&amp;guid=YKpskmdm&amp;isDynamicSeeking=true" type="application/x-shockwave-flash" width="530" height="304" title="Create VM" wmode="direct" seamlesstabbing="true" allowfullscreen="true" allowscriptaccess="always" overstretch="true"></embed></div>
<p>We chose the version of XP that&#8217;s on our target system.  If you come across Windows XP Media Center Edition, select XP Professional.  After the VM is created, take a snapshot.  If you want to strip passwords, use the <a title="Strip password" href="http://justaskweg.com/?p=7" target="_blank">procedure</a> that I described earlier, and mount the disk as read-write and run a password stripper.</p>
<p>We don&#8217;t do shadow volume exams in XP, so we don&#8217;t need to mount the virtual disk in our SEAT workstation.  Nevertheless, as with any operating system, we probably have a need to run a VM of the target system for any number of reasons.  Our VM is ready to boot, or so we think.</p>
<div id="v-jfVF8a1c-1" class="video-player"><embed id="v-jfVF8a1c-1-video" src="http://s0.videopress.com/player.swf?v=1.03&amp;guid=jfVF8a1c&amp;isDynamicSeeking=true" type="application/x-shockwave-flash" width="530" height="438" wmode="direct" seamlesstabbing="true" allowfullscreen="true" allowscriptaccess="always" overstretch="true"></embed></div>
<p>Familiar sight?  I&#8217;ve found that the easiest and most effective fix for the BSOD is to do a Windows repair.  To do that, you need an installation disc of the same version of XP as your target.  Here, we need an XP Home CD or an ISO.</p>
<p>You can configure VMware to boot from your physical CD drive or an ISO image.</p>
<p><a href="http://justaskweg.com/wp-content/uploads/2012/09/CD.jpg"><img class="aligncenter size-full wp-image-864" title="CD" src="http://justaskweg.com/wp-content/uploads/2012/09/CD.jpg" alt="" width="755" height="671" /></a></p>
<p>When you start your VM, make sure that it has focus (click your mouse in the VM).  When you see the POST screen, hit Escape once.</p>
<p><a href="http://justaskweg.com/wp-content/uploads/2012/09/POST.jpg"><img class="aligncenter size-full wp-image-865" title="POST" src="http://justaskweg.com/wp-content/uploads/2012/09/POST.jpg" alt="" width="715" height="691" /></a></p>
<p>When you hit Escape, the screen should look like this:</p>
<p><a href="http://justaskweg.com/wp-content/uploads/2012/09/Options.jpg"><img class="aligncenter size-full wp-image-866" title="Options" src="http://justaskweg.com/wp-content/uploads/2012/09/Options.jpg" alt="" width="425" height="327" /></a></p>
<p>Here, we&#8217;ll arrow down and elect to boot from the CD.  When you first try this, you may find that VMware doesn&#8217;t give you enough time to choose a boot option.  It can be quite frustrating, and a Glock is not the answer!  I&#8217;ll show you a more effective fix for this later.</p>
<p>After electing to boot from the CD, you&#8217;ll press a key when you see this message:</p>
<p><a href="http://justaskweg.com/wp-content/uploads/2012/09/boot-to-cd.jpg"><img class="aligncenter size-full wp-image-868" title="boot to cd" src="http://justaskweg.com/wp-content/uploads/2012/09/boot-to-cd.jpg" alt="" width="331" height="71" /></a></p>
<p>In the next video, we&#8217;ll follow along with the rest of the process.</p>
<div id="v-mME5v5Jm-1" class="video-player"><embed id="v-mME5v5Jm-1-video" src="http://s0.videopress.com/player.swf?v=1.03&amp;guid=mME5v5Jm&amp;isDynamicSeeking=true" type="application/x-shockwave-flash" width="530" height="360" wmode="direct" seamlesstabbing="true" allowfullscreen="true" allowscriptaccess="always" overstretch="true"></embed></div>
<p>The first decision screen is where we&#8217;re asked whether we want to install windows.  We&#8217;ll elect to do so, and then accept the license agreement.  Next, Windows finds an existing installation and offers choices.  We&#8217;ll choose  to repair the existing installation by pressing the <em>R</em> key.  Windows then proceeds through the setup.  During the installation, we&#8217;re offered some choices, which we can accept.  We also have to enter our license key.  After the reboot, we have a working VM.</p>
<p>Now that we&#8217;ve repaired our XP VM, it will boot just fine!  However, we may not be home free.  Often, the change in hardware will make Windows tell us that we must activate our XP installation.  There are a couple of options here.  If you&#8217;re in law enforcement, you can seek assistance through the Microsoft Law Enforcement Portal, which is a great resource.  If you&#8217;re not in law enforcement or want an alternative, there is a utility named WPA Kill, which you can find through a Google or a similar search engine.  I&#8217;m not advocating its use, but I do advocate complying with licensing requirements or otherwise being authorized to use a utility like this.</p>
<p>Many antivirus scanners will trap WPA Kill, so be sure to enter an exception so that you can download and save the file.  You can save a copy to a CD or include it in an ISO image.  If the activation requirement presents, you still can boot to Safe Mode, where you can run WPA Kill.  Sometimes, you may find that Windows offers you 30 days until you must activate your VM.  Of course, using snapshots can keep you &#8220;frozen&#8221; in time.</p>
<p>I&#8217;ll point out that XP can be difficult, and there are times when I&#8217;ve been unable to build a bootable VM.  Defects in the underlying operating system may be to blame.  There also can be troublesome driver issues.  In the latter cases, experimenting in Safe Mode may help.  There&#8217;s also a nasty issue that pops up now and then and which renders your keyboard and/or mouse unusable.  It&#8217;s a driver issue, and I haven&#8217;t figured out a fix, although<a title="VFC" href="http://www.md5.uk.com/products/vfc2" target="_blank"> Virtual Forensic Computing </a>has.  If you want to start with an E01 image, you can mount the image and build your VM from a physical disk as I described in a <a title="E01s" href="http://justaskweg.com/?p=653" target="_blank">previous post</a>.  You also can use <a title="Segmented images" href="http://justaskweg.com/?p=733" target="_blank">segmented images</a>.</p>
<p>As promised, here&#8217;s a way to gain some time when you want to hit Escape to see the boot menu:  In Windows 7, go to \ProgramData\VMware\VMware Workstation.  Here, you&#8217;ll create or edit a file named settings.ini.  In the file, type the line <em>Bios.bootDelay=&#8221;3000&#8243;.</em>  That will force a three-second delay before your system boots.  If you want more time, enter the number of milliseconds, e.g., <em>&#8220;5000&#8243; </em>is five seconds.  Use quotation marks around the number.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://justaskweg.com/?feed=rss2&#038;p=851</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
