Add vipw and vigr

master
Andrea Cardaci 2021-02-05 13:40:01 +01:00 committed by GitHub
commit a30bc93b1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 0 deletions

8
_gtfobins/vigr.md Normal file
View File

@ -0,0 +1,8 @@
---
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`.
functions:
suid:
- code: ./vigr
sudo:
- code: sudo vigr
---

8
_gtfobins/vipw.md Normal file
View File

@ -0,0 +1,8 @@
---
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`.
functions:
suid:
- code: ./vipw
sudo:
- code: sudo vipw
---