<!-- Copyright (c) 2026 defconxt. All rights reserved. -->
<!-- Licensed under AGPL-3.0 — see LICENSE file for details. -->
<!-- NERF is a trademark of defconxt. -->
# performing-return-to-libc-attacks — API Reference

## Agent Script

| Command | Description |
|---------|-------------|
| `identify --leaked-func <name> --leaked-addr <hex>` | Identify libc version |
| `exploit --binary <path> --libc <path> --offset <n>` | Generate ret2libc exploit |
| `onegadget --libc <path>` | Find one_gadget offsets |
