/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
. suid是一种授予文件的权限类型,它允许用户使用者以文件所有者的权限来执行文件。
./vigr
如果二进制文件被 sudo 允许以超级用户身份运行,可能被用于访问文件系统、提升或维持特权访问。
sudo vigr