Exemple #1
0
    exit;
}
if (isset($_GET["uncompress-root"])) {
    uncompress_root();
    exit;
}
if (isset($_GET["arp-resolve"])) {
    arp_resolve();
    exit;
}
if (isset($_GET["backup-restore-new"])) {
    backup_restore();
    exit;
}
if (isset($_GET["nmap-scan-single"])) {
    nmap_scan_single();
    exit;
}
if (isset($_GET["ntopng-installed"])) {
    ntopng_installed();
    exit;
}
if (isset($_GET["ntopng-restart"])) {
    ntopng_restart();
    exit;
}
if (isset($_GET["ntopng-status"])) {
    ntopng_status();
    exit;
}
if (isset($_GET["set-apache-perms"])) {
Exemple #2
0
    exit;
}
if ($argv[1] == "--scan-results") {
    nmap_scan_results();
    exit;
}
if ($argv[1] == "--scan-period") {
    nmap_scan_period();
    exit;
}
if ($argv[1] == "--scan-squid") {
    nmap_scan_squid();
    exit;
}
if ($argv[1] == "--scan-single") {
    nmap_scan_single($argv[2], $argv[3]);
    exit;
}
if ($argv[1] == "--scan-ping") {
    nmap_scan_pingnet();
    exit;
}
$GLOBALS["COMPUTER"] = $argv[1];
$GLOBALS["COMPUTER"] = str_replace('$', "", $GLOBALS["COMPUTER"]);
if ($GLOBALS["COMPUTER"] == null) {
    echo "no computer name set {$argv[1]}!\n";
    die;
}
$users = new usersMenus();
$sock = new sockets();
$ComputersAllowNmap = $sock->GET_INFO("ComputersAllowNmap");