mirror of
https://github.com/hashcat/hashcat.git
synced 2025-01-03 04:11:06 +00:00
UnRAR: Allow unpack directly from memory (no files)
This commit is contained in:
parent
be4e3df01b
commit
9f380afa13
7
deps/unrar/rdwrfn.cpp
vendored
7
deps/unrar/rdwrfn.cpp
vendored
@ -326,3 +326,10 @@ void ComprDataIO::SetUnpackToMemory(byte *Addr,uint Size)
|
|||||||
UnpackToMemoryAddr=Addr;
|
UnpackToMemoryAddr=Addr;
|
||||||
UnpackToMemorySize=Size;
|
UnpackToMemorySize=Size;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ComprDataIO::SetUnpackFromMemory(byte *Addr,uint Size)
|
||||||
|
{
|
||||||
|
UnpackFromMemory=true;
|
||||||
|
UnpackFromMemoryAddr=Addr;
|
||||||
|
UnpackFromMemorySize=Size;
|
||||||
|
}
|
||||||
|
1
deps/unrar/rdwrfn.hpp
vendored
1
deps/unrar/rdwrfn.hpp
vendored
@ -74,6 +74,7 @@ class ComprDataIO
|
|||||||
void SetAV15Encryption();
|
void SetAV15Encryption();
|
||||||
void SetCmt13Encryption();
|
void SetCmt13Encryption();
|
||||||
void SetUnpackToMemory(byte *Addr,uint Size);
|
void SetUnpackToMemory(byte *Addr,uint Size);
|
||||||
|
void SetUnpackFromMemory(byte *Addr,uint Size);
|
||||||
void SetCurrentCommand(wchar Cmd) {CurrentCommand=Cmd;}
|
void SetCurrentCommand(wchar Cmd) {CurrentCommand=Cmd;}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user