mirror of
https://gitlab.com/BinaryHardening/cfgrip
synced 2026-07-26 12:41:08 +00:00
readme: document --subs-only flag
This commit is contained in:
@@ -26,10 +26,11 @@ It handles indirect branches by:
|
|||||||
## usage
|
## usage
|
||||||
|
|
||||||
```
|
```
|
||||||
cfgrip <binary>
|
cfgrip [--subs-only] <binary>
|
||||||
```
|
```
|
||||||
|
|
||||||
That's it. Feed it a binary, get `<binary>.cfg` as output.
|
Feed it a binary, get `<binary>.cfg` as output.
|
||||||
|
Use `--subs-only` to extract only functions reachable from the entry point through the call graph — skips unreachable exports and prolog candidates.
|
||||||
|
|
||||||
---
|
---
|
||||||
Example:
|
Example:
|
||||||
@@ -415,5 +416,6 @@ cmake --build build --config Release
|
|||||||
| | Exports | YES |
|
| | Exports | YES |
|
||||||
| | `call` targets | YES |
|
| | `call` targets | YES |
|
||||||
| | Prolog scanning (`push rbp`, CET `endbr64`) | YES |
|
| | Prolog scanning (`push rbp`, CET `endbr64`) | YES |
|
||||||
|
| **Subs-only mode** | `--subs-only` flag | YES |
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user