You are not logged in.

#1 2006-02-17 21:23:18

MaceM
Member
From: Austria
Registered: 2003-11-26
Posts: 47

chntpw and gcc4

Hi

Just in case anyone tries to compile chntpw with the current gcc (4.0.3-1) or use the aur package provided by Mikos, here are the diffs that got it to compile on my machine.
otherwise you'd get some "invalid lvalue in assignment" errors.
credits go to this guide!

chntpw.c

514c514
<     *((unsigned int*)vp+0xa8) = (ntpw_offs - 0xcc);
---
>     (unsigned int)*(vp+0xa8) = ntpw_offs - 0xcc;
624c624
<        *((unsigned int*)vp+0xa8) = ntpw_offs - 0xcc;
---
>        (unsigned int)*(vp+0xa8) = ntpw_offs - 0xcc;
630,631c630,631
<        *((unsigned char*)vp+ntpw_offs+i) = despw[i];
<        if (lmpw_len >= 16) *((unsigned char*)vp+lmpw_offs+i) = newlandes[i];
---
>        (unsigned char)*(vp+ntpw_offs+i) = despw[i];
>        if (lmpw_len >= 16) (unsigned char)*(vp+lmpw_offs+i) = newlandes[i];

ntreg.c

2517,2518c2517,2518
<   kr->data = ((int)kr->data);
<   
---
>   (int)kr->data = dword;
> 

i'm no exactly sure about what should happen to the dword statement, but it compiled anyway wink

hope someone finds this helpful.

By the way: does anyone know any other tools to reset/unset WinXP passwords? thx in advance.

Offline

Board footer

Powered by FluxBB