EldoS | Feel safer!

Software components for data protection, secure storage and transfer

RawDisk

Also by EldoS: SecureBlackbox
200+ components and classes for digital security, signing, encryption and secure networking.
#10380
Posted: 06/13/2009 04:22:53
by  Jack
hello

I try to backup my sam file using RawDisk(c:\windows\system32\config\sam), but I find that the backuped sam file is different from the file that I backuped using other tools. At the same time the sam file is not identified by L0phtCrack(LC5). So I need your help. How can I unlocked the sam file and backup it?
#10384
Posted: 06/13/2009 11:12:19
by Volodymyr Zinin (EldoS Corp.)

Hello,

Do you use the RawDisk.CreateFile method for backup? If not then try it.
#10387
Posted: 06/14/2009 20:10:22
by  Jack
Thanks for your reply.
After I create a file using RawDisk.CreateFile method, I use CFile.Read method to copy the file.

I can get the right result if I use the following c++ code

//////////////////////////
...
CFile myFile((int)hFile);
unsigned long nBytesRead,len;
len = myFile.GetLength();
do
(
nBytesRead = myFile.Read(inbuffer,4096);
myFile.Seek(nBytesRead ,CFile::current);
len -= nBytesRead;
}
while(len > 0);

//////////////

While I cannot get the right result using the follow code. And I find that in each loop nBytesRead is the same value 4096. That is to say the file pointer cannot find the file end .
////////////////////
...
CFile myFile((int)hFile);
unsigned long nBytesRead,len;
len = myFile.GetLength();
do
(
nBytesRead = myFile.Read(inbuffer,4096);
//myFile.Seek(nBytesRead ,CFile::current);
len -= nBytesRead;
}
while(len > 0);
////////////////////////
#10388
Posted: 06/15/2009 00:15:09
by Eugene Mayevski (EldoS Corp.)

Moved to HelpDesk.


Sincerely yours
Eugene Mayevski

Reply

Statistics

Topic viewed 3929 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!