Esempio n. 1
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');
    $pdf->Cell($pdf->widths[5], 8, _("Cloaked"), 1, 0, 'C');
    $pdf->Cell($pdf->widths[6], 8, _("Encryption"), 1, 0, 'C');
    $pdf->Cell($pdf->widths[7], 8, _("1st Seen"), 1, 0, 'C');
    $pdf->Cell($pdf->widths[8], 8, _("Last Seen"), 1, 0, 'C');
    $pdf->Cell($pdf->widths[9], 8, _("Sensor"), 1, 0, 'C');
    $pdf->Ln();
    $pdf->SetFont('Arial', '', 7);
    $i = 0;
Esempio n. 2
0
$pdf->Cell($pdf->widths[9], 8, _("Attack"), 1, 0, 'C');
$pdf->Ln();
$pdf->SetFont('Arial', '', 6);
$pdf->hh = 4;
$i = 0;
$sids = array();
foreach ($clients as $arr) {
    $view = false;
    foreach ($arr['sids'] as $sid) {
        if ($sid != 0 && $sid != 3 && $sid != 19) {
            $view = true;
        }
    }
    if ($view) {
        if ($i++ % 2 != 0) {
            $pdf->SetFillColor(255, 255, 255);
        } else {
            $pdf->SetFillColor(242, 242, 242);
        }
        $dat = array();
        $dat[] = $arr['name'];
        $dat[] = $arr['mac'] . "\n" . $arr["vendor"];
        $dat[] = $arr['ip'];
        $dat[] = $arr['type'];
        $dat[] = str_replace(",", " ", $arr['encryption']);
        $dat[] = $arr['encoding'];
        $dat[] = $arr['firsttime'];
        $dat[] = $arr['lasttime'];
        $dat[] = implode("\n", $arr['connected']);
        $dat[] = $arr['sid'];
        foreach ($arr['sids'] as $sid) {