Skip to content

Commit e0aedfe

Browse files
author
奇淼(piexlmax
authored
Merge pull request #161 from HXSecurity/issue-145
update:change php deploy
2 parents 9a972c2 + 078015e commit e0aedfe

File tree

6 files changed

+14
-12
lines changed

6 files changed

+14
-12
lines changed

.env

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ VUE_APP_ATOM_API = '/atom-webapi'
77

88
# target host
99

10-
# VUE_TARGET_HOST = 'http://192.168.2.181:8000'
11-
VUE_TARGET_HOST = 'https://iast-test.huoxian.cn'
10+
VUE_TARGET_HOST = 'http://192.168.2.181:8002'
11+
# VUE_TARGET_HOST = 'https://iast-test.huoxian.cn'
1212
# VUE_TARGET_HOST = 'http://52.81.92.214:30485'
1313
# VUE_TARGET_HOST = 'http://iast.huoxian.cn'
1414

src/config/lang/en.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -198,14 +198,14 @@ export default {
198198
'Note: If you cannot configure the system environment variables, you can change the agent configuration file, modify the project name, and find the path address of the python installation agent extension package, for example: /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site -packages/dongtai_agent_python modify project.name in dongtai_agent_python/config.json, the priority of system environment variable projectName is higher than project.name in configuration file;',
199199
},
200200
php: {
201-
ManualInstallation: 'Manual Installation',
202-
term1: 'Python Version: 8.0.9 and above',
201+
Manualinstallation: 'manual installation',
202+
term1: 'PHP version no less than 8.0.9',
203203
manualInstallationDesc1:
204-
'a. Manually unzip php-agent-test.tar.gz. There are three files in PHP agent test: Dongtai_ php_ Agent.so & test.json & run-tests.php, copy Dongtai_ php_ Agent.so to the extension in the PHP installation environment, for example:/usr/local/lib/php/pecl/20200930.',
204+
'A. manually decompress php-agent.tar.gz. There are three files in PHP agent: dongtai_php_agent.so & policy.json & dongtai-php-property.ini. Copy dongtai_php_agent.so to the extension in the PHP installation environment, for example: / usr / local / lib / PHP / PECL / 20200930',
205205
manualInstallationDesc2:
206-
'b. Find php.ini, use the command: PHP - I | grep php.ini, and add: extension in php.ini_ Dir = "path of dongtai_php_agent.so inside PHP", extension = Dongtai_ php_ Agent, then execute PHP – V, the PHP version information is displayed normally, and there will be Dongtai in PHP – M_ php_ Agent, that is, the installation is successful.',
206+
'B. find the configuration file directory of PHP, add: dongtai-php-property.ini, then execute PHP – m, and check that there will be dongtai_php_agent, that is, the installation is successful.',
207207
manualInstallationDesc3:
208-
'c. Through the terminal, enter PHP agent test, execute PHP run-tests.php test results, or enter the shooting range test. The shooting range address is: https://github.com/jinghao1/phpvul',
208+
'C. through the terminal, enter PHP agent and execute PHP run-tests.php test results. You can also enter the shooting range for test. The shooting range address is: https://github.com/jinghao1/phpvul ',
209209
},
210210
},
211211
search: {

src/config/lang/zh_cn.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,11 +202,11 @@ export default {
202202
ManualInstallation: '手动安装',
203203
term1: 'PHP版本不低于8.0.9',
204204
manualInstallationDesc1:
205-
'a. 手动解压缩php-agent-test.tar.gz,php-agent-test里面有三个文件,分别是:dongtai_php_agent.so& test.json & run-tests.php,复制dongtai_php_agent.so到php安装环境中的extension中,例如:/usr/local/lib/php/pecl/20200930',
205+
'a. 手动解压缩php-agent.tar.gz,php-agent里面有三个文件,分别是:dongtai_php_agent.so& policy.json &dongtai-php-property.ini,复制dongtai_php_agent.so到php安装环境中的extension中,例如:/usr/local/lib/php/pecl/20200930',
206206
manualInstallationDesc2:
207-
'b. 找到php.ini,使用命令:php -i | grep php.ini,在php.ini添加:extension_dir = " dongtai_php_agent.so在php内部的路径" , extension=dongtai_php_agent,之后执行php –v,正常显示PHP版本信息,php –m 查看会有dongtai_php_agent,即安装成功。',
207+
'b. 找到php的配置文件目录,添加:dongtai-php-property.ini,之后执行php –m, 查看会有dongtai_php_agent,即安装成功。',
208208
manualInstallationDesc3:
209-
'c. 通过终端,进入php-agent-test,执行 php run-tests.php测试结果,也可以进入靶场测试,靶场地址:https://github.com/jinghao1/phpvul',
209+
'c. 通过终端,进入php-agent,执行 php run-tests.php测试结果,也可以进入靶场测试,靶场地址:https://github.com/jinghao1/phpvul',
210210
},
211211
},
212212
search: {

src/services/deploy.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ export default () =>
3333
link.href = window.URL.createObjectURL(blob)
3434
if (language === 'java') {
3535
link.download = 'agent.jar'
36+
} else if (language === 'php') {
37+
link.download = 'php-agent.tar.gz'
3638
} else {
3739
link.download = 'dongtai-agent-python.tar.gz'
3840
}

src/views/deploy/Deploy.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ export default class Deploy extends VueBase {
465465
case 'python':
466466
return `curl -X GET "${this.uri}/api/v1/agent/download?url=${this.uri}&language=python&projectName=Demo%20Project" -H 'Authorization: Token ${this.token}' -o dongtai-agent-python.tar.gz -k`
467467
case 'php':
468-
return `curl -X GET "${this.uri}/api/v1/agent/download?url=${this.uri}&language=php" -H 'Authorization: Token ${this.token}' -o php-agent-test.tar.gz`
468+
return `curl -X GET "${this.uri}/api/v1/agent/download?url=${this.uri}&language=php" -H 'Authorization: Token ${this.token}' -o php-agent.tar.gz`
469469
}
470470
}
471471
get pythonShell() {

src/views/setting/SysInfo.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
<div class="moudleTitle-th">
3030
{{ $t('views.sysInfo.vul_verifiy') }}
3131
<el-popover placement="top-start" width="340" trigger="hover">
32-
<p>{{ $t('views.sysInfo.open') }}</p>
32+
<p>{{ $t('views.sysInfo.vul') }}</p>
3333
<span slot="reference"> <i class="el-icon-question"></i>: </span>
3434
</el-popover>
3535
</div>

0 commit comments

Comments
 (0)