Re: Windows Registry Dump

2006-05-19 Thread Dirk Hagemann
@Diez: I'm not trying to hack into somebody's computer - it is about
collecting data from my company's anti-virus-parent-server. And all the
information is only available in the registry (thanks Symantec...).

@Tim, olso and Fredrik: THANKS - I will have a closer look at these
modules.

regards
Dirk

-- 
http://mail.python.org/mailman/listinfo/python-list


RE: Windows Registry Dump

2006-05-19 Thread Tim Golden
[Dirk Hagemann]

| @Diez: I'm not trying to hack into somebody's computer - it is about
| collecting data from my company's anti-virus-parent-server. 
| And all the
| information is only available in the registry (thanks Symantec...).
| 
| @Tim, olso and Fredrik: THANKS - I will have a closer look at these
| modules.

One thing occurred to me later, Dirk: are you trying to
get the conventional .reg dump file, ie something which
you could reload later into the same or another computer?
Or are you simply looking for a textual representation of
the registry for analysis etc.? From your comment above
it sounds like the latter.

Be aware, btw, if you go down the .reg route (the one
I suggested): the data in the files are UTF-16 encoded.

TJG


This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Windows Registry Dump

2006-05-19 Thread Dirk Hagemann
Hi Tim!

I want to do some analysis (as always ;-) ) and for that reason I think
it's more practical to go trough a text-file. I can produce this
text-file also by right-click on the key (the  folder) in the registry
and select Export. There one can select Text-File and the place where
to save the text-file. This I want to be done by python automatically.

Dirk

-- 
http://mail.python.org/mailman/listinfo/python-list


RE: Windows Registry Dump

2006-05-19 Thread Tim Golden
[Dirk Hagemann]

| I want to do some analysis (as always ;-) ) and for that 
| reason I think
| it's more practical to go trough a text-file. I can produce this
| text-file also by right-click on the key (the  folder) in the registry
| and select Export. There one can select Text-File and the 
| place where
| to save the text-file. This I want to be done by python automatically.

Well, unless you want to go to the effort of recreating
the .reg file format, it's probably worth trying to call
regedit with a param or two:

http://www.windowsitlibrary.com/Content/237/2.html

suggests that something like:

regedit /e c:\temp\desktop.reg HKEY_CURRENT_USER\Control Panel\Desktop

will do the business. (And it worked for me a on a simple test run).

TJG


This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk

-- 
http://mail.python.org/mailman/listinfo/python-list


RE: Windows Registry Dump

2006-05-18 Thread Tim Golden
[Dirk Hagemann]

| Does someone know how I can make a Text-Dump-File of a remote
| Windows-Computer's Registry (not the whole registry - only a part of
| it)?

Well, your question doesn't seem to rule out this option
so I thought I'd offer it:

Use regedit to connect to the remote registry, then
do the usual right-click Export stuff

Maybe not what you wanted (doesn't use Python at all,
unless you do: 

import os
os.system (regedit)

but it certainly works!

TJG


This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Windows Registry Dump

2006-05-18 Thread Diez B. Roggisch
Dirk Hagemann wrote:

 Hi!
 
 Does someone know how I can make a Text-Dump-File of a remote
 Windows-Computer's Registry (not the whole registry - only a part of
 it)?
 
 Thanks a lot for some code or a helpful link!

I suggest you try asking the darker side of the internet - after all,
accessing the registry remotely and all possibly privacy and security
related issues that is of utmost importance to crackers and hackers.
BackOrifice and your average Trojan spring into mind - maybe for a small
fee the allow you to piggyback your (surely good-intended!) code on theirs!

Diez
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Windows Registry Dump

2006-05-18 Thread olsongt

Dirk Hagemann wrote:
 Hi!

 Does someone know how I can make a Text-Dump-File of a remote
 Windows-Computer's Registry (not the whole registry - only a part of
 it)?

 Thanks a lot for some code or a helpful link!

 regards
 Dirk

the win32api module has a bunch of Reg* functions that let you do this.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Windows Registry Dump

2006-05-18 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote:

 Does someone know how I can make a Text-Dump-File of a remote
 Windows-Computer's Registry (not the whole registry - only a part of
 it)?

 Thanks a lot for some code or a helpful link!
 
 the win32api module has a bunch of Reg* functions that let you do this.

most (all?) of which are also available in the _winreg module in the 
standard distribution.

/F

-- 
http://mail.python.org/mailman/listinfo/python-list