diff --git a/_gtfobins/vigr.md b/_gtfobins/vigr.md new file mode 100644 index 0000000..a755222 --- /dev/null +++ b/_gtfobins/vigr.md @@ -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 +--- diff --git a/_gtfobins/vipw.md b/_gtfobins/vipw.md new file mode 100644 index 0000000..da55154 --- /dev/null +++ b/_gtfobins/vipw.md @@ -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 +---