# 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
…
- 34
- 35
- 36
- 37
- 38
…
- 106
- 107

SECRET//ORCON//NOFORN
1 And
Description
The “and” operator allows for one or more embedded rules. If any of the
embedded rules returns False, the operator will return false. If no false rules
are embedded, but one rule returns invalid, an invalid will return. Otherwise it
will return true.
Short Circuit
If at any point during processing of the embedded rules, a false is discovered,
the remaining rules will be ignored and the operator will return false.
Usage
and {
<rule>
…
}
Example
and {
grasshopper.bitness(32)
grasshopper.access_at_least(“admin”)
}
The above example will return true only if the grasshopper binary is 32-bit
and the run level is administrator or higher.
Return Values
Return
Code
Description
True All embedded rules are true
False One or more embedded rules returns false
Invalid No embedded rules return false and at least one returns
invalid
36
SECRET//ORCON//NOFORN

- 1
- 2
…
- 34
- 35
- 36
- 37
- 38
…
- 106
- 107