Trying ProduKey to extract winXP from harddrive --

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
rcp.paulson
Level 1
Level 1
Posts: 5
Joined: Fri Dec 02, 2011 3:45 am

Trying ProduKey to extract winXP from harddrive --

Post by rcp.paulson »

get error 1314 ; Privilege not held

I put the copied registry hive everywhere and always the same
even on a FAT32 flash drive

always the same

google ProduKey for free code

I can get u a hive/registry if you wish to try it

ie /windows/system32/config/software

This can be very useful for ppl wanting to install a fresh version of windows
when their win32 system is dead from virus and they lost their keys--opps
rcp.paulson
Level 1
Level 1
Posts: 5
Joined: Fri Dec 02, 2011 3:45 am

Post by rcp.paulson »

Re past post,

I am trying to to recover lost win XP keycode to allow reinstalling of WIN into VM of whatever form
rcp.paulson
Level 1
Level 1
Posts: 5
Joined: Fri Dec 02, 2011 3:45 am

Post by rcp.paulson »

There is no windows install with this program. It is standalone trying to recover the CD key for Win xp.

I have a drive on an IDE with win XP, I boot in ubuntu and can copy the hive
/registry to anywhere needed

then use wine to run ProduKey and give it the loc of the hive...not matter what... I get priv violation
User avatar
dimesio
Moderator
Moderator
Posts: 13202
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

rcp.paulson wrote:There is no windows install with this program. It is standalone trying to recover the CD key for Win xp.

I have a drive on an IDE with win XP, I boot in ubuntu and can copy the hive
/registry to anywhere needed

then use wine to run ProduKey and give it the loc of the hive...not matter what... I get priv violation
Wine can't read Windows' binary registry files, so neither can any app running under it.
rcp.paulson
Level 1
Level 1
Posts: 5
Joined: Fri Dec 02, 2011 3:45 am

Post by rcp.paulson »

produkey.exe can read a binary hive from another system
so i have two partions, a ubuntu and a winxp
i can copy /windows/system32/config/software
<software is the registry hive >

the program can read this binary and find the encrypted XP system key and decrypt it

but it gives the error re permissions
i even copied the file to a thumbdrive formatted fat32 where there are no permissions and wine/linux stops access to the file
rcp.paulson
Level 1
Level 1
Posts: 5
Joined: Fri Dec 02, 2011 3:45 am

to clarify which registry

Post by rcp.paulson »

clearly i am not trying to copy the real winxp hive in binary to the wine hive<ascii>
and then have produkey.exe work on that

it can work directly on the ext system hive binary to decypt the keys
lahmbi5678
Level 7
Level 7
Posts: 823
Joined: Thu Aug 27, 2009 6:23 am

Post by lahmbi5678 »

Hi rcp.paulson,

this may be a bug in wine, wine isn't very good, when it comes to system related utilities, so feel free to file a bug.

If you need a solution right now, you could either try to connect your harddisk to ( or copy your windows partition to) a working windows computer and run the produkey tool from there. Or you might try something like a boot cd for windows, see e.g.
http://www.ubcd4win.com/contents.htm
They've a keyfinder.exe application, which probably is what you want.
lahmbi5678
Level 7
Level 7
Posts: 823
Joined: Thu Aug 27, 2009 6:23 am

Post by lahmbi5678 »

Hi rcp.paulson,

thinking about it, you probably will need a working windows anyway, as there is no precompiled ISO image for UBCD, due to copyright issues. You will have to run a .exe (kind of installer), which creates the iso using an (your) original Win XP cd.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: to clarify which registry

Post by vitamin »

rcp.paulson wrote:it can work directly on the ext system hive binary to decypt the keys
No, by itself it [ProduKey] can't read binary windows registry files. It still uses system to do that:

Code: Select all

0009:Call advapi32.RegLoadKeyA(80000002,0040c7f8 "$$PRODUCKEY_TEMP_HIVE$$",0014af5c "software") ret=0040327b
0009:Ret  advapi32.RegLoadKeyA() retval=00000522 ret=0040327b
And you've been told that it won't work on Wine.
User avatar
SpawnHappyJake
Level 5
Level 5
Posts: 272
Joined: Sun Feb 06, 2011 5:57 am

Post by SpawnHappyJake »

Ah. So the Magic Jelly Bean Keyfinder must be the same way. I was wondering why it didn't work in Wine. It's supposed to be able to load hive files, but even that uses a system call to parse the binary. Gotcha.

Jake
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

SpawnHappyJake wrote:Ah. So the Magic Jelly Bean Keyfinder must be the same way.
Just look at relay log to be sure.
tlhonmey
Newbie
Newbie
Posts: 1
Joined: Mon May 04, 2015 11:39 pm

Re: Trying ProduKey to extract winXP from harddrive --

Post by tlhonmey »

I realise this is an old thread, but I just ran across it along with a reference to the hivex subproject of libguestfs.org which provides a library for manipulating Windows binary registry files. I don't know if it would work to implement the functionality needed for these kinds of programs, but it might be worth a look by someone who actually knows enough about it to decide. :)
Locked