Skip to content

Commit b6179f8

Browse files
committed
修改 README.md settings.example.py requirements.txt
1 parent 773b2b0 commit b6179f8

3 files changed

Lines changed: 20 additions & 6 deletions

File tree

README.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ ScanWebShell 为基于机器学习的PHP-WebShell扫描工具,该版本为web服
88

99
# Usage
1010

11-
邮箱(用于注册和重置密码功能)需要在`settings.py`中配置如下参数:
12-
13-
![image-20210421180717445](http://img.xzaslxr.xyz/image-20210421180717445.png)
1411

1512
* 下载
1613
```bash
@@ -19,6 +16,24 @@ cd ScanWebShell
1916
```
2017

2118
* 配置环境
19+
* `settings.py`
20+
```bash
21+
cp ScanWebShell/settings.example.py ScanWebShell/settings.py
22+
```
23+
出于安全角度,`SECRET_KEY`参数强烈建议修改,修改方法如下:
24+
```python
25+
#进入Django shell
26+
#python3 manage.py shell
27+
#加载utils模块
28+
from django.core.management import utils
29+
#生成密钥
30+
utils.get_random_secret_key()
31+
```
32+
邮箱(用于注册和重置密码功能)还需要在`settings.py`中配置如下参数:
33+
34+
![image-20210421180717445](http://img.xzaslxr.xyz/image-20210421180717445.png)
35+
36+
2237
```bash
2338
python3 -m pip install -r requirements.txt
2439
python3 manage.py makemigrations

ScanWebShell/settings.example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
# See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/
2323

2424
# SECURITY WARNING: keep the secret key used in production secret!
25-
SECRET_KEY = ''
25+
SECRET_KEY = '-ngct$xw+vko9m%u7a+ln_1ua)9t2xyf2+w+)2+an8bq#1m0l_' #出于安全角度,强烈建议更换 SECRET_KEY
2626

2727
# SECURITY WARNING: don't run with debug turned on in production!
2828
DEBUG = False

requirements.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,13 @@ click-didyoumean==0.0.3
1111
click-plugins==1.1.1
1212
click-repl==0.1.6
1313
colorama==0.4.3
14-
cryptography==3.4.7
1514
Django==3.2
1615
django-celery-results==2.0.1
1716
django-ranged-response==0.2.0
1817
django-simple-captcha==0.5.14
1918
humanize==3.4.1
2019
idna==2.10
21-
joblib=1.0.1
20+
joblib==1.0.1
2221
mccabe==0.6.1
2322
msgpack==1.0.2
2423
Pillow==8.1.2

0 commit comments

Comments
 (0)