Skip to content

Commit 477dc9d

Browse files
committed
修改bug
1 parent b6179f8 commit 477dc9d

3 files changed

Lines changed: 5 additions & 1 deletion

File tree

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ cd ScanWebShell
1616
```
1717

1818
* 配置环境
19+
* `php vld` 插件安装
20+
http://pecl.php.net/package/vld
21+
安装后`php -m`来确定是否安装
1922
* `settings.py`
2023
```bash
2124
cp ScanWebShell/settings.example.py ScanWebShell/settings.py

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ redis==3.5.3
2929
requests==2.25.1
3030
toml==0.10.1
3131
tornado==6.1
32+
scikit-learn==0.24.1
3233
urllib3==1.26.4
3334
vine==5.0.0
3435
wcwidth==0.2.5

utils/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def load_php_opcode(phpfilename):
3333
:return:
3434
"""
3535
try:
36-
output = subprocess.check_output(['php.exe', '-dvld.active=1', '-dvld.execute=0', phpfilename], stderr=subprocess.STDOUT).decode()
36+
output = subprocess.check_output(['php', '-dvld.active=1', '-dvld.execute=0', phpfilename], stderr=subprocess.STDOUT).decode()
3737
tokens = re.findall(r'\s(\b[A-Z_]{2,}\b)\s', output) # {2,} 至少匹配两次,规避一开始三个错误的结果
3838
t = " ".join(tokens)
3939
return t

0 commit comments

Comments
 (0)