mirror of
https://github.com/gchq/CyberChef
synced 2025-12-12 06:13:31 +00:00
Improved continueUntil, added consumeWhile and made the EVTX extractor more complete
This commit is contained in:
@@ -3348,11 +3348,11 @@ export function extractEVTX(bytes, offset) {
|
||||
while (stream.hasMore()) {
|
||||
|
||||
// Loop through ELFCHNKs.
|
||||
if (stream.getBytes(7).join("") === [0x45, 0x6c, 0x66, 0x43, 0x68, 0x6e, 0x6b].join(""))
|
||||
stream.moveForwardsBy(0xfff9);
|
||||
else
|
||||
break;
|
||||
if (stream.getBytes(7).join("") !== [0x45, 0x6c, 0x66, 0x43, 0x68, 0x6e, 0x6b].join(""))
|
||||
break;
|
||||
stream.moveForwardsBy(0xfff9);
|
||||
}
|
||||
stream.consumeWhile(0x00);
|
||||
return stream.carve();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user