mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-20 23:06:16 -04:00
Comments for OLE2 extractor.
This commit is contained in:
parent
25ca8d85a6
commit
7386c145ef
1 changed files with 2 additions and 0 deletions
|
@ -2994,6 +2994,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