mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-20 14:56:19 -04:00
Improved continueUntil, added consumeWhile and made the EVTX extractor more complete
This commit is contained in:
parent
d240d65c5f
commit
8e2345cf9e
2 changed files with 2 additions and 2 deletions
|
@ -3349,7 +3349,7 @@ export function extractEVTX(bytes, offset) {
|
||||||
|
|
||||||
// Loop through ELFCHNKs.
|
// Loop through ELFCHNKs.
|
||||||
if (stream.getBytes(7).join("") !== [0x45, 0x6c, 0x66, 0x43, 0x68, 0x6e, 0x6b].join(""))
|
if (stream.getBytes(7).join("") !== [0x45, 0x6c, 0x66, 0x43, 0x68, 0x6e, 0x6b].join(""))
|
||||||
break;
|
break;
|
||||||
stream.moveForwardsBy(0xfff9);
|
stream.moveForwardsBy(0xfff9);
|
||||||
}
|
}
|
||||||
stream.consumeWhile(0x00);
|
stream.consumeWhile(0x00);
|
||||||
|
|
|
@ -189,7 +189,7 @@ export default class Stream {
|
||||||
found = true;
|
found = true;
|
||||||
|
|
||||||
// Loop through the elements comparing them to val.
|
// Loop through the elements comparing them to val.
|
||||||
for (let x = length-1; x != -1; x--) {
|
for (let x = length-1; x !== -1; x--) {
|
||||||
if (this.bytes[(this.position-length) + x] !== val[x]) {
|
if (this.bytes[(this.position-length) + x] !== val[x]) {
|
||||||
found = false;
|
found = false;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue