1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39 |
cd /root
wget http://192.168.2.3/install/crazyeye/get-pip.py
python get-pip.py
pip install Django==1.8.5
pip install django-suit==0.2.15
pip install django-session-security
pip install paramiko
yum install MySQL-python
pip install MySQL-python
#用于后台运行Python django server
yum install tmux
cd /root
wget http://192.168.2.3/install/crazyeye/shellinabox-master.zip
unzip shellinabox-master.zip
cd shellinabox-master/
./configure
make && make install
cd
wget http://192.168.2.3/install/crazyeye/CrazyEye-master.zip
unzip CrazyEye-master.zip
mv CrazyEye-master /usr/local/crazyeye
sed -i "s/'PASSWORD': ''/'PASSWORD': '123456'/" /usr/local/crazyeye/CrazyEye/settings.py
sed -i "s/'host':'192.168.2.200',/'host':'192.168.1.74',/" /usr/local/crazyeye/CrazyEye/settings.py
sed -i "s/'username':'crazy_audit2',/'username':'admin123',/" /usr/local/crazyeye/CrazyEye/settings.py
sed -i "s/'password': '123'/'password': '123456'/" /usr/local/crazyeye/CrazyEye/settings.py
python manage.py syncdb
python manage.py makemigrations
python manage.py migrate
python manage.py createsuperuser
useradd admin123
passwd admin123
#输入密码123456
echo "python /usr/local/crazyeye/crazy_eyes_mgr.py run" >> /home/crazyeyeadmin/.bashrc
echo "logout" >> /home/crazyeyeadmin/.bashrc
shellinaboxd -b -t
tmux
cd /usr/local/crazyeye
python manage.py runserver 0.0.0.0:8000
#这个页面直接关掉了。 |