Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Editing Windows registry, from Python, Under Linux

I am looking for a Python API (or a C API as I am willing to bind) for editing Windows registries from XP to 7 from within a Linux system.

The Windows target will be a mounted volume under Linux.

I would be willing to code a library if none exists. Therefore, any docs or internals on the registry would be handy too.

Any help, much appriciated.

like image 622
Aiden Bell Avatar asked Mar 01 '23 02:03

Aiden Bell


1 Answers

OK, so you're after a hive file editor?

I wrote a winregistry module that does this (for both NT and win9x hives). It's not really ready for the public but worked quite well with the data I was using at the time. I'm not sure what state I left it in and I haven't tested it with Win7 hives, but maybe we could get it fixed up for release? If you're interested I could probably dump it in a source control somewhere to work on.

The document I worked from was ntpasswd's well-known WinReg.txt, however I found many flaws in it (can also chuck you my annotations on that). Since then these documents have been produced, which at first glance may cover matters better.

like image 189
bobince Avatar answered Mar 08 '23 17:03

bobince