> For the complete documentation index, see [llms.txt](https://www.ctfrecipes.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.ctfrecipes.com/pwn/protections.md).

# Protections

## Check binary protections&#x20;

The following command permit to check the protections status of the binary :&#x20;

```bash
$ pwn checksec binary_name
    Arch:     i386-32-little
    RELRO:    Partial RELRO
    Stack:    Canary found
    NX:       NX enabled
    PIE:      PIE enabled
```

{% hint style="info" %}
This command is a [pwntool](https://github.com/Gallopsled/pwntools) feature.&#x20;
{% endhint %}
