示例#1
0
文件: index.php 项目: jhbsz/ossimTest
}
?>
" frameborder="0" scrolling="no"></iframe>
				</td>
			</tr>
		</table>
	</div>
</form>
<!-- end of Asset form -->


<?php 
require_once 'classes/Scan.inc';
$scan = new Scan("");
if (GET('clearscan')) {
    Scan::del_scan($scan->nmap_completed_scan);
}
$lastscan = $scan->get_scan();
if (is_array($lastscan) && count($lastscan) > 0) {
    require_once 'scan_util.php';
    $_SESSION["_scan"] = $lastscan;
    scan2html($lastscan);
} else {
    echo "<!-- <p align=\"center\">";
    echo _("NOTE: This tool is a nmap frontend. In order to use all nmap functionality, you need root privileges.");
    echo "<br/>";
    echo _("For this purpose you can use suphp, or change group to the web-user and set suid to nmap binary (<strong>chgrp www-data /usr/bin/nmap ; chmod 4750 /usr/bin/nmap</strong>).");
    echo "</p> -->";
}
?>