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 `src_ip` = '".$varIP."' AND `dst_port` = '".$varPort."' GROUP BY dst_ip ORDER BY dst_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 "
Source IP: $varIP Whois |
---|
Destination IPs | Netblock |
";
while ($row = $result->fetch_assoc()) {
echo "".$row["dst_ip"]." | Internal IP |
";
}
echo "
";
} else {
echo "No Results, something is likely broken.";
}
$conn2->close();
?>