Esempio n. 1
0
//
$location = base64_decode(GET('location'));
$si = intval(GET('index'));
$sensors = isset($_SESSION['sensors'][$si]) ? $_SESSION['sensors'][$si] : "";
ossim_valid($sensors, OSS_ALPHA, OSS_PUNC, 'illegal: sensors');
ossim_valid($location, OSS_ALPHA, OSS_PUNC_EXT, 'illegal: location');
if (ossim_error()) {
    die(ossim_error());
}
$db = new ossim_db();
$conn = $db->connect();
$plugin_sids = Wireless::get_plugin_sids($conn);
$clients = Wireless::get_wireless_clients($conn, "", $sensors, "");
$db->close();
$now = date("Y-m-d H:i:s");
$pdf = new PDF_Table();
$pdf->AddPage();
$pdf->SetFont('Helvetica', 'B', 13);
$pdf->Image("../pixmaps/logo_siempdf.png", 10, 11, 40);
$pdf->Cell(0, 17, _("Wireless / Suspicious clients                             "), 1, 1, 'R', 0);
$pdf->SetFont('Helvetica', '', 10);
$pdf->Cell(70, 6, _("Location") . ": {$location}", 1, 0, 'L');
$pdf->Cell(60, 6, _("User") . ": " . $_SESSION["_user"], 1, 0, 'L');
$pdf->Cell(60, 6, _("Date") . ": {$now}", 1, 1, 'R');
$pdf->Ln();
$pdf->SetWidths(array(28, 23, 22, 15, 23, 10, 15, 15, 30, 9));
$pdf->SetAligns(array('C', 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'));
$pdf->SetFont('Helvetica', '', 8);
$pdf->Cell($pdf->widths[0], 8, _("Client Name"), 1, 0, 'C');
$pdf->Cell($pdf->widths[1], 8, _("MAC"), 1, 0, 'C');
$pdf->Cell($pdf->widths[2], 8, _("IP Addr"), 1, 0, 'C');
Esempio n. 2
0
            }
            if ($arr['encryption'] != 'None') {
                $yes = 1;
            }
        }
        if ($yes && $no) {
            $networks[] = $ne;
        }
    }
} else {
    $networks = $nets;
}
$db->close($conn);
$now = date("Y-m-d H:i:s");
//
$pdf = new PDF_Table();
$pdf->AddPage();
$pdf->SetFont('Helvetica', 'B', 13);
$pdf->Image("../pixmaps/logo_siempdf.png", 10, 11, 40);
if ($type == 1) {
    $pdf->Cell(0, 10, _("Wireless / Cloaked Networks having uncloaked APs            "), 1, 1, 'R', 0);
} elseif ($type == 2) {
    $pdf->Cell(0, 10, _("Wireless / Encrypted networks having unencrypted APs        "), 1, 1, 'R', 0);
} elseif ($type == 3) {
    $pdf->Cell(0, 10, _("Wireless / Networks using weak encryption                   "), 1, 1, 'R', 0);
}
$pdf->SetFont('Helvetica', '', 10);
$pdf->Cell(70, 6, _("Location") . ": {$location}", 1, 0, 'L');
$pdf->Cell(60, 6, _("User") . ": " . $_SESSION["_user"], 1, 0, 'L');
$pdf->Cell(60, 6, _("Date") . ": {$now}", 1, 1, 'R');
$pdf->SetWidths(array(38, 14, 18, 14, 12, 13, 25, 18, 18, 20));
Esempio n. 3
0
$location = base64_decode(GET('location'));
$si = intval(GET('index'));
$sensors = isset($_SESSION['sensors'][$si]) ? $_SESSION['sensors'][$si] : "";
ossim_valid($order, OSS_ALPHA, OSS_NULLABLE, 'illegal: order');
ossim_valid($sensors, OSS_ALPHA, OSS_PUNC, 'illegal: sensors');
ossim_valid($location, OSS_ALPHA, OSS_PUNC_EXT, 'illegal: location');
if (ossim_error()) {
    die(ossim_error());
}
$db = new ossim_db();
$conn = $db->connect();
$networks = Wireless::get_wireless_networks($conn, $order, $sensors);
$db->close();
$now = date("Y-m-d H:i:s");
//
$pdf = new PDF_Table();
$pdf->AddPage();
$pdf->SetFont('Helvetica', 'B', 13);
$pdf->Image("../pixmaps/logo_siempdf.png", 10, 11, 40);
$pdf->Cell(0, 17, _("    Wireless / Networks"), 1, 1, 'C', 0);
$pdf->SetFont('Helvetica', '', 10);
$pdf->Cell(70, 6, _("Location") . ": {$location}", 1, 0, 'L');
$pdf->Cell(60, 6, _("User") . ": " . $_SESSION["_user"], 1, 0, 'L');
$pdf->Cell(60, 6, _("Date") . ": {$now}", 1, 1, 'R');
$pdf->Ln();
$pdf->Cell(37, 8, _("Network SSID"), 1, 0, 'C');
$pdf->Cell(15, 8, _("# of APs"), 1, 0, 'C');
$pdf->Cell(15, 8, _("# Clients"), 1, 0, 'C');
$pdf->Cell(18, 8, _("Type"), 1, 0, 'C');
$pdf->Cell(20, 8, _("Encryption"), 1, 0, 'C');
$pdf->Cell(15, 8, _("Cloaked"), 1, 0, 'C');