Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add sym_hash() example to mach-o module docs #251

Merged
merged 1 commit into from
Nov 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions site/content/docs/modules/macho.md
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,27 @@ rule import_hash_example {
}
```

### sym_hash()

Returns an MD5 hash of the symbol table entries designated in the Mach-O binary.

{{< callout title="Notice">}}

The returned hash string is always in lowercase.

{{< /callout >}}

#### Example

```yara
import "macho"

rule sym_hash_example {
condition:
macho.sym_hash() == "a9ccc7c7b8bd33a99dc7ede4e8d771b4"
}
```

------

### Module structure
Expand Down
Loading