Windows registry editing, with Python, for Linux

I am looking for the Python API (or C API that I want to bind) to edit Windows registries from XP to 7 from a Linux system.

The purpose of Windows is to install a volume under Linux.

I would like to code a library if it does not exist. Therefore, any documents or internal elements in the registry will also be convenient.

Any help much suggested.

+4
source share
4 answers

Ok, so what are you after the bush file editor?

I wrote a winregistry module that does this (for both NT and win9x). It was not really ready for the public, but it worked well with the data that I used at that time. I'm not sure in what condition I left it, and I did not test it with Win7 hives, but maybe we could get its fix for release? If you're curious, I could perhaps dump it in the source element somewhere to work on.

The document I was working from was ntpasswd the well-known WinReg.txt , however I found a lot of flaws in it (it might also lash out at my annotations on that one). Since then, these documents have been prepared, which at first glance can improve the situation.

+7
source

You might want to watch this project . The original idea was to recover passwords, but all the tools were there to edit registry entries.

This sounds like a dangerous idea, but I would rather find a way to run a Python script - even remotely - with _winreg in my own environment, but that doesn't seem like it to you. Also note that I did not see mention of Windows 7 in my project.

+1
source

I think you are out of luck because I could not find such a lib. when I need such a thing a few years ago (to change the Windows image file). It is also not easy to write, and I also could not find any MS document describing the format.

Here are some links that appear on a Google search and describe the format partially http://www.sentinelchicken.com/research/registry_format/ http://home.eunet.no/pnordahl/ntpasswd/WinReg.txt

0
source

Creddump is written in Python (without C extensions) and has code for reading the registry (although not writing it). This may help you get started:

http://code.google.com/p/creddump/

0
source

All Articles