1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-14 11:48:57 +00:00

UnRAR: Allow unpack directly from memory (no files)

This commit is contained in:
philsmd 2020-09-08 10:44:34 +02:00
parent be4e3df01b
commit 9f380afa13
No known key found for this signature in database
GPG Key ID: 4F25D016D9D6A8AF
2 changed files with 8 additions and 0 deletions

View File

@ -326,3 +326,10 @@ void ComprDataIO::SetUnpackToMemory(byte *Addr,uint Size)
UnpackToMemoryAddr=Addr;
UnpackToMemorySize=Size;
}
void ComprDataIO::SetUnpackFromMemory(byte *Addr,uint Size)
{
UnpackFromMemory=true;
UnpackFromMemoryAddr=Addr;
UnpackFromMemorySize=Size;
}

View File

@ -74,6 +74,7 @@ class ComprDataIO
void SetAV15Encryption();
void SetCmt13Encryption();
void SetUnpackToMemory(byte *Addr,uint Size);
void SetUnpackFromMemory(byte *Addr,uint Size);
void SetCurrentCommand(wchar Cmd) {CurrentCommand=Cmd;}