mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-10 08:15:00 -04:00
Comments for OLE2 extractor.
This commit is contained in:
parent
c18ecb7974
commit
dd1729059c
1 changed files with 2 additions and 0 deletions
|
@ -3155,6 +3155,8 @@ export function extractOLE2(bytes, offset) {
|
||||||
|
|
||||||
// Attempt to determine what directory entry it is.
|
// Attempt to determine what directory entry it is.
|
||||||
for (const element of entries) {
|
for (const element of entries) {
|
||||||
|
|
||||||
|
// If the byte pattern matches.
|
||||||
if (stream.getBytes(element[1]).join("") === element[0].join("")) {
|
if (stream.getBytes(element[1]).join("") === element[0].join("")) {
|
||||||
stream.moveBackwardsBy(element[1]);
|
stream.moveBackwardsBy(element[1]);
|
||||||
found = true;
|
found = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue