webshell 搭建

来源:互联网 发布:动画片制作软件 编辑:程序博客网 时间:2024/05/21 21:46

环境配置

yum install openssl python pyOpenSSL
wget https://files.cnblogs.com/files/pariese/WebShell-0.9.6.zip
unzip WebShell-0.9.6.zip
cd WebShell-0.9.6

生成SSL的证书

./make_certificate.sh

一步就行了,很简单。
运行WebShell
执行:

[root@www webshell]# ./webshell.py

WebShell (https) at 0.0.0.0, port 8022
提示现在可以连接 https://IP:8022/ 了,注意使用https协议。

安装PIP

wget http://soft.laozuo.org/git/get-pip.pypython get-pip.py

第三、安装tornado、Pillow

pip install 'tornado==2.4.1'pip install Pillow

第四、下载GateOne且安装

wget https://github.com/downloads/liftoff/GateOne/gateone-1.1.tar.gztar -zxvf gateone-1.1.tar.gzcd GateOnepython setup.py install

第五、运行GateOne

cd /opt/gateone./gateone.py

第六、修改GateOne配置远程管理

/opt/gateone/server.confdtach = Falseorigins = "http://localhost;https://localhost;http://127.0.0.1;https://127.0.0.1;https://47.94.11.195:4200"session_timeout = "20m"

如果你想让其后台运行,请使用serveri来启动

/etc/init.d/gateone start

https://ip:4200访问