Vault 7: Projects

This publication series is about specific projects related to the Vault 7 main publication.
SECRET//NOFORN
3.8 Contains (Ignore Access Denied)
The “contains_ignore” verb states that a directory contains a file or directory of a
given name, but ignores ACCESS_DENIED errors. If any access errors are
encountered, the fact will assume that the target file or directory would not have
been located.
A depth is provided to perform a recursive search on subdirectories. A depth of 0
will not search any subdirectories, a depth of 1 will search the first level of
subdirectories, etc.
Usage
directory(<dir_path>).contains_ignore(<file_name>, <depth>)
dir_path
Path to directory on target file system
file_name
Name of file within directory
depth
Recursive search depth
Truth Table
TRUE
dir_path contains a file or directory file_name within depth levels
FALSE
dir_path does not contain a file or directory file_name within depth
levels
INVALID
Encountered error (excluding ACCESS_DENIED) during search; file
was not otherwise found
90
SECRET//NOFORN