-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.php
23 lines (21 loc) · 940 Bytes
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
/**
* PrestaShop security vulnerability checker.
*
* @author Maksim T. <zapalm@yandex.com>
* @copyright 2019 Maksim T.
* @license https://opensource.org/licenses/MIT MIT
* @link https://github.com/zapalm/prestashop-security-vulnerability-checker GitHub
* @link https://prestashop.modulez.ru/en/tools-scripts/70-security-vulnerability-checker.html Homepage
*
* This is the script, that checks vulnerabilities and prints a report.
*/
$configPath = dirname(__FILE__) . '/../config/config.inc.php';
if (false === file_exists($configPath)) {
exit('Can not execute the tool. You should place the folder of this tool to the root of your PrestaShop installation directory.' . PHP_EOL);
}
require_once $configPath;
require_once __DIR__ . '/PrestaShopSecurityVulnerabilityChecker.php';
$checker = new \zapalm\PrestaShopSecurityVulnerabilityChecker();
$report = $checker->check();
$checker->printReport($report);