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, COUNT(DISTINCT(dst_ip)), COUNT(src_ip) FROM `rawdata` WHERE `src_ip` = '".$varIP."' AND `dst_port` = '".$varPort."'";
$result = $conn2->query($sql);
//If there are results, display them in a table
if ($result->num_rows >0) {
echo "Now viewing data for IP: $varIP for Destination Port: $varPort";
echo "
Source IP | # of targets | # of connections | Source Whois | Destination IPs |
";
while ($row = $result->fetch_assoc()) {
echo "".$row["src_ip"]." | ".$row["COUNT(DISTINCT(dst_ip))"]." | ".$row["COUNT(src_ip)"]." | Whois | List |
";
}
echo "
";
} else {
echo "No Results, something is likely broken.";
}
$conn2->close();
?>