Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security FullDisclosure
[Top] [All Lists]

Re: [Full-Disclosure] Windows Registry Analzyer

Subject: Re: [Full-Disclosure] Windows Registry Analzyer
Date: Thu, 03 Mar 2005 12:54:09 -0500
Perhaps this is just the Unix user in me, but I ask:
How about just making a copy of the registry on boot (or at intervals)
and compare it to the last copy?

Note that the following example is untested, but should be mostly
accurate.

Under Windows 2003 and XP you could do:
deltree C:\REG_BACKUP\last
rename C:\REG_BACKUP\latest C:\REG_BACKUP\last
reg export HKLM\SOFTWARE C:\REG_BACKUP\latest\HKLM_SOFTWARE /y
reg export HKLM\SAM C:\REG_BACKUP\latest\HKLM_SAM /y
reg export HKLM\HARDWARE C:\REG_BACKUP\latest\HKLM_HARDWARE /y
rem ... etc, for each key and HKEY type.

rem Example with Windiff which comes with the Windows SDK.
rem Windiff will wish to display to the screen.
rem Try other diff utilities like the GNU diff
rem which you can install from the Cygwin distributon
rem if you wish to have it sent via email.
windiff C:\REG_BACKUP\latest C:\REG_BACKUP\last

rem Gnu diff/sendmail example:
rem c:\cygwin\usr\bin\diff.exe -u -r C:\REG_BACKUP\latest C:\REG_BACKUP
\last | c:\cygwin\usr\bin\sendmail.exe -t "Registry changes"
alerts@example.com

----------
Windows98 has the scanreg utility, but I'm not sure how it works.  As
far as I know, by default it saves to c:\<windir>\sysbckup, but it only
seems to throw .dll files there, the registry isn't saved in plain-text.

----------
I'm not sure how, if at all, to do this under Windows NT4 and Windows
2000.
----------

Once you have these .reg files, you can do all kinds of things with
them.  Compare the registries of various machines which should have an
identical configuration to help detect worms.  Create a web-based
registry editor.  Have them automatically printed, faxed, emailed,
telephoned (text->speech), etc.

Good luck.

-- 
Eric Windisch <lists@bwbohh.net>

_______________________________________________
Full-Disclosure - We believe in it.
Charter: http://lists.netsys.com/full-disclosure-charter.html

<Prev in Thread] Current Thread [Next in Thread>