Tidying
1 parent 2acb97c commit 41453062f7199a3a3b23b7b95dc149a0b66d150e
root authored on 16 Dec 2019
Showing 2 changed files
View
3
■■
ReportToolz/ns2json.php
 
$xmlfile = file_get_contents($filter->getParam("doc"));
$nessus= simplexml_load_file($filter->getParam("doc"));
 
 
//print_r($configData);
//file_put_contents('/mnt/hgfs/Pentest/pentests/2019/Remploy/test/array.x', print_r($configData, true));
$resultsFolder = substr($filter->getParam("doc"), 0, strrpos( $filter->getParam("doc"), '/') )."/";
$vulnarray = array();
 
foreach ($nessus->Report[0]->ReportHost as $host) {
View
2
■■■
ReportToolz/pt2json.php
$ob= simplexml_load_string($xmlfile);
$json = json_encode($ob);
$configData = json_decode($json, true);
 
//print_r($configData);
//file_put_contents('/mnt/hgfs/Pentest/pentests/2019/Remploy/test/array.x', print_r($configData, true));
$resultsFolder = substr($filter->getParam("doc"), 0, strrpos( $filter->getParam("doc"), '/') )."/";
 
foreach ($configData['report_sections']['section']['subsection'] as $key => $value) {
# code...
Buy Me A Coffee