PHP code example of reconmap / command-output-parsers
1. Go to this page and download the library: Download reconmap/command-output-parsers library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
reconmap / command-output-parsers example snippets
$processorFactory = new ProcessorFactory();
$processor = $processorFactory->createFromOutputParserName('acunetix');
$result = $processor->process('resources/nessus.xml');
echo $result->getVulnerabilities()[4]->remediation), PHP_EOL; # Prints 'Protect your target with an IP filter.'
foreach($result->getAssets() as $asset) {
echo $asset->getValue(), PHP_EOL;
}