GTFOBins.github.io/_gtfobins/vipw.md

9 lines
439 B
Markdown
Raw Normal View History

2021-02-05 13:34:14 +01:00
---
2021-02-05 13:37:16 +01:00
description: This command allows to edit some designated files (`/etc/passwd`, `/etc/group`, `/etc/shadow` and `/etc/gshadow`) safely by spawning the default editor (falling back to [`vim`](/gtfobins/vim/), other functions may apply). Despite requiring superuser privileges to run, the editor is executed as the unprivileged user when run as SUID or with `sudo`.
2021-02-05 13:34:14 +01:00
functions:
suid:
2021-02-05 13:37:16 +01:00
- code: ./vipw
2021-02-05 13:34:14 +01:00
sudo:
2021-02-05 13:37:16 +01:00
- code: sudo vipw
2021-02-05 13:34:14 +01:00
---