Esempio n. 1
0
$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');
$pdf->Cell($pdf->widths[3], 8, _("Type"), 1, 0, 'C');
$pdf->Cell($pdf->widths[4], 8, _("Encryption"), 1, 0, 'C');
$pdf->Cell($pdf->widths[5], 8, _("WEP"), 1, 0, 'C');
$pdf->Cell($pdf->widths[6], 8, _("1st Seen"), 1, 0, 'C');
$pdf->Cell($pdf->widths[7], 8, _("Last Seen"), 1, 0, 'C');
$pdf->Cell($pdf->widths[8], 8, _("Connected To"), 1, 0, 'C');
$pdf->Cell($pdf->widths[9], 8, _("Attack"), 1, 0, 'C');
$pdf->Ln();
$pdf->SetFont('Arial', '', 6);
$pdf->hh = 4;
Esempio n. 2
0
$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));
$pdf->SetAligns(array('C', 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'));
$pdf->hh = 5;
foreach ($networks as $data) {
    $pdf->Ln();
    $pdf->SetFont('Helvetica', '', 9);
    $pdf->Cell(190, 8, "  " . _("Network SSID"), 1, 0, 'L');
    $pdf->Ln();
    $pdf->SetFillColor(242, 242, 242);
    $pdf->Cell(190, 8, "  " . $data["ssid"], 1, 0, 'L', 1);
    $pdf->Ln();
    $pdf->Cell($pdf->widths[0], 8, _("MAC"), 1, 0, 'C');
    $pdf->Cell($pdf->widths[1], 8, _("# Clients"), 1, 0, 'C');
    $pdf->Cell($pdf->widths[2], 8, _("Type"), 1, 0, 'C');
    $pdf->Cell($pdf->widths[3], 8, _("Channel"), 1, 0, 'C');
    $pdf->Cell($pdf->widths[4], 8, _("Speed"), 1, 0, 'C');
Esempio n. 3
0
$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');
$pdf->Cell(20, 8, _("1st Seen"), 1, 0, 'C');
$pdf->Cell(20, 8, _("Last Seen"), 1, 0, 'C');
$pdf->Cell(30, 8, _("Description"), 1, 0, 'C');
$pdf->Ln();
$pdf->SetFont('Arial', '', 8);
$i = 0;
$pdf->SetWidths(array(37, 15, 15, 18, 20, 15, 20, 20, 30));
$pdf->SetAligns(array('C', 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'L'));
foreach ($networks as $data) {
    if ($i++ % 2 == 0) {
        $pdf->SetFillColor(255, 255, 255);
    } else {
        $pdf->SetFillColor(242, 242, 242);
    }
    $dat = array();
    $dat[] = utf8_encode($data['ssid']);
    $dat[] = $data['aps'];
    $dat[] = $data['clients'];
    $dat[] = $data['type'];
    $dat[] = str_replace(",", " ", $data['encryption']);
    $dat[] = $data['cloaked'];
    $dat[] = $data['firsttime'];