# Vault 7: Projects

This publication series is about specific projects related to the Vault 7 main publication.

### Grasshopper

# Grasshopper-v1_1-AdminGuide

1 December, 2013

- 1
- 2
…
- 44
- 45
- 46
- 47
- 48
…
- 106
- 107

SECRET//ORCON//NOFORN
1.3 Contains
Description
The “contains” verb takes in a name of a file or directory and a depth. If a file
exists in the provided directory, or within sub-directories up to the provided
depth, it will return true.
Usage
directory(<directory path>).contains(<file name>, <depth>)
Example
directory(“c:\windows”).contains(“notepad.exe”, 3)
The above example will search the directory: “c:\windows” and up to three
sub levels looking for a file called “notepad.exe”.
Return Values
Return
Code
Description
True A matching file is found anywhere within the search
area
False No matching file is found in the search area
Invalid An error (including ACCESS_DENIED) occurred, and the
file was not otherwise found
46
SECRET//ORCON//NOFORN

- 1
- 2
…
- 44
- 45
- 46
- 47
- 48
…
- 106
- 107