Data displayed here is from the last 7 days, and is updated every 5 minutes.
$id - $name";
}
//Check Connection
if ($conn->connect_error) {
die("Connection Failed: " . $conn->connect_error);
}
$conn->close();
?>
connect_error) {
die("Connection Failed: " . $conn2->connect_error);
}
//Query
$sql = "SELECT src_ip, dst_ip FROM `rawdata` WHERE `dst_ip` = '".$varIP."' AND `dst_port` = '".$varPort."' AND time > (UNIX_TIMESTAMP() - 86400) GROUP BY src_ip ORDER BY src_ip;";
$result = $conn2->query($sql);
//If there are results of the query, display them.
if ($result->num_rows >0) {
echo "Now viewing data for Destination Port: $varPort";
echo "
Destination IP: $varIP Netblock |
---|
Source IPs | Whois |
";
while ($row = $result->fetch_assoc()) {
echo "".$row["src_ip"]." | Whois |
";
}
echo "
";
} else {
echo "No Results, something is likely broken.";
}
$conn2->close();
?>