# 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
…
- 52
- 53
- 54
- 55
- 56
…
- 106
- 107

SECRET//ORCON//NOFORN
1.11 OwnedBy
Description
The “owned_by” verb takes in a single parameter describing the user to check
for ownership. The fact will return true only if the directory is owned by the
provided user.
Note: doesn’t include the DOMAIN.
Usage
directory(<directory path>).owned_by(<user name>)
Example
directory(“c:\windows”).owned_by(“admin”)
The above example checks to see if the “c:\windows” directory is owned by
the user “admin”.
Return Values
Return
Code
Description
True If the path exists, is a directory, and the owner matches
False If the path exists, is a directory, and the owner doesn’t
match
Invalid If the path doesn’t exists, isn’t a directory, or access
denied
54
SECRET//ORCON//NOFORN

- 1
- 2
…
- 52
- 53
- 54
- 55
- 56
…
- 106
- 107