I would like to create a forensic script for windows

Hi,

I am trying to create two forensic scripts, one for physical access to the machine, but the more important one is a network based script. FYI have admin rights to the computers on the network. I would like this to be more of a helping  situation and not just here is the answer.

I have found this article from IronGeek that gives certain locations in windows that should contain relevant information, but can't find the folders or reg keys he mentions:
http://www.irongeek.com/i.php?page=security/windows-forensics-registry-and-file-system-spots

Here is a brief description of the script i want to write:
input for users username
input for hostname
Menu asking if the machine is windows 7,XP
Menu asking what to pull, such as Web, recent files, ALL, etc...

From there I would want the script to collect the data and then map a drive and transfer it to my machine and delete the files created on the users machine.


If you know of any good spots in windows 7 or XP(more XP since we are currently 99% XP but will be moving to 7 soon) please let me know where to get the information and what it pertains to.

Thank you everybody for your help.
LVL 1
m_travisAsked:
Who is Participating?
 
btanConnect With a Mentor Exec ConsultantCommented:
may want to check out Regripper, the extensibility comes from perl plugin that can be loaded into the engine to perform the desired tasks. There are already some ready script. However, it works off with Hives files extracted from targeted machine. More of offline analysis though

@ http://www.pentestit.com/2009/06/30/regripper-windows-registry-data-extrator-corelator/
@ http://regripper.net/?page_id=150

This reference would be useful read as well to understand the various Hives
@ http://eptuners.com/forensics/A%20Windows%20Registry%20Quick%20Reference.pdf

But since most of the task is Windows based, the script may be in term of WMI (mostly vbs) or Powershell instead. You can get WMI Administrative Tools
download from Microsoft. There are good tutorial on the scripting as well e.g.

a) looking for machine OS - see OSInfo Function
b) looking for hostname - see SysInfo Function

Powershell Tutorial @ http://www.powershellpro.com/powershell-tutorial-introduction/powershell-scripting-with-wmi/
WMI VBS Sample @ http://msdn.microsoft.com/en-us/library/aa394585%28v=vs.85%29.aspx
Tools @ http://www.microsoft.com/downloads/en/details.aspx?FamilyID=6430f853-1120-48db-8cc5-f2abdc3ed314&DisplayLang=en&pf=true

But for retrieval of history of web browser, I will suggest looking at NirSoft offering (they may not be scripts but more of commandline based though, I supposed not all)
@ http://www.nirsoft.net/computer_forensic_software.html
@ http://www.nirsoft.net/system_tools.html

0
 
ChopOMaticConnect With a Mentor Commented:
http://accessdata.com/technical

I would in particular recommend the Registry QuickFind charts on that page.
0
All Courses

From novice to tech pro — start learning today.