예제 #1
0
<?php

require_once "Scan.class.php";
$type = $_GET['type'];
$scan = Scan::FromDB($_GET['id']);
if ($type == "ap") {
    ?>
    <table class="table">
        <h3>APs - <?php 
    echo $scan->getAPCount();
    ?>
</h3>
        <thead>
            <tr>
                <th>#</th>
                <th>BSSID</th>
                <th>ESSID</th>
                <th>First seen</th>
                <th>Last seen</th>
                <th>Channel</th>
                <th>Privacy</th>
                <th>Power</th>
                <th>Beacons</th>
                <th>IVs</th>
            </tr>
        </thead>
        <tbody>
<?php 
    $aps = $scan->getAPs("power", "DESC");
    $a = 0;
    if (count($aps) != 0) {
예제 #2
0
파일: scanner.php 프로젝트: Beasta/Wicker
                                    <th>Date</th>
                                </tr>
                            </thead>
                            <tbody>
<?php 
if (!$hidden) {
    $action = "hide";
    $statement = $wicker->db->con()->prepare("SELECT * FROM `scans` WHERE `status` <> 3 AND `individual` <> 1 ORDER BY `id` DESC");
} else {
    $action = "unhide";
    $statement = $wicker->db->con()->prepare("SELECT * FROM `scans` WHERE `status` = 3 AND `individual` <> 1 ORDER BY `id` DESC");
}
$statement->execute();
for ($a = 0; $a < $statement->rowCount(); $a++) {
    $info = $statement->fetchObject();
    $scan = Scan::FromDB($info->id);
    ?>
                                <tr>
                                    <td><?php 
    echo $a + 1;
    ?>
</td>
                                    <td><a href="scanview.php?id=<?php 
    echo $scan->getID();
    ?>
">View</a> | <a href="scanner.php?do=<?php 
    echo $action;
    ?>
&id=<?php 
    echo $scan->getID();
    ?>