diff --git a/webdata/destinationips.php b/webdata/destinationips.php index 996e5fb..c58f695 100644 --- a/webdata/destinationips.php +++ b/webdata/destinationips.php @@ -6,7 +6,7 @@
-

LiquidWeb Traffic Monitoring

+

Traffic Monitoring

Destination IPs by Source

@@ -16,10 +16,10 @@ $id - $name"; } - + //Check Connection if ($conn->connect_error) { die("Connection Failed: " . $conn->connect_error); @@ -65,27 +65,27 @@ if(isset($_GET['formIP'])) { $varIP = filter_var(trim($_GET['formIP']), FILTER_VALIDATE_IP); } - + // Create connection $conn2 = new mysqli($servername, $username, $password, $dbname); - + //Check Connection if ($conn2->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 ""; - + echo "
Source IP: $varIP Whois
Destination IPsNetblock
"; + while ($row = $result->fetch_assoc()) { - echo ""; + echo ""; } echo "
Source IP: $varIP Whois
Destination IPsNetblock
".$row["dst_ip"]."Netblock
".$row["dst_ip"]."Internal IP
"; } else { diff --git a/webdata/graphs.php b/webdata/graphs.php index 400d01f..e36e767 100644 --- a/webdata/graphs.php +++ b/webdata/graphs.php @@ -12,7 +12,7 @@
-

LiquidWeb Traffic Monitoring

+

Traffic Monitoring

Inbound Traffic Graphs

@@ -23,10 +23,10 @@ $id - $name"; } - + //Check Connection if ($conn->connect_error) { die("Connection Failed: " . $conn->connect_error); diff --git a/webdata/includes/menu.php b/webdata/includes/menu.php index 8662a9a..88d9224 100644 --- a/webdata/includes/menu.php +++ b/webdata/includes/menu.php @@ -27,7 +27,6 @@
  • Traffic Map
  • -
  • NOC Nullrouter
  • diff --git a/webdata/index.php b/webdata/index.php index 29aee76..6ba8ef7 100644 --- a/webdata/index.php +++ b/webdata/index.php @@ -86,7 +86,7 @@
    -

    LiquidWeb Traffic Monitoring

    +

    Traffic Monitoring

    @@ -100,11 +100,11 @@ //Set MySQL connection variables // Create connection $conn2 = new mysqli($servername, $username, $password, $dbname); - + //Query - + $sql = "SELECT src_ip, COUNT(DISTINCT(dst_ip)), COUNT(src_ip) FROM `rawdata` WHERE `dst_port` = '22' AND time > (UNIX_TIMESTAMP() - 1800) GROUP BY src_ip ORDER BY COUNT(DISTINCT(dst_ip)) DESC LIMIT 10"; - + $result = $conn2->query($sql); //If there are results, display them in a table if ($result->num_rows >0) { @@ -112,7 +112,7 @@ echo "
    "; echo ""; while ($row = $result->fetch_assoc()) { - echo ""; + echo ""; } echo "
    Source IP# of targets# of connectionsSource WhoisDestination IPs
    ".$row["src_ip"]."".$row["COUNT(DISTINCT(dst_ip))"]."".$row["COUNT(src_ip)"]."WhoisList
    ".$row["src_ip"]."".$row["COUNT(DISTINCT(dst_ip))"]."".$row["COUNT(src_ip)"]."WhoisList
    "; } else { @@ -122,9 +122,9 @@ ?>
    - Total Connections, every 30 minutes for the past 24hrs. + Total Connections, every 30 minutes for the past 24hrs.
    - +
    diff --git a/webdata/mapping.php b/webdata/mapping.php index 1f16d77..c984632 100644 --- a/webdata/mapping.php +++ b/webdata/mapping.php @@ -17,13 +17,13 @@
    -

    LiquidWeb Traffic Monitoring

    +

    Traffic Monitoring

    Source IP Address Mapping

    @@ -101,10 +101,10 @@ $id - $name"; } - + //Check Connection if ($conn->connect_error) { die("Connection Failed: " . $conn->connect_error); @@ -149,23 +149,23 @@ }else{ $varPort = 0; } - + //Connect to DB to pull IPs - + // Create connection $conn1 = new mysqli($servername, $username, $password, $dbname); - + //Create dropdown $query1 = "SELECT src_ip FROM rawdata WHERE `dst_port` = '".$varPort."' AND time > (UNIX_TIMESTAMP() - 900) GROUP BY src_ip"; $iplist = mysqli_query($conn1, $query1); - + echo "Now Viewing data for Destination port: $varPort"; - + //Initialize your first couple variables $encodedString = ""; //This is the string that will hold all your location data $x = 0; //This is a trigger to keep the string tidy - - + + //Multiple rows are returned while ($row = mysqli_fetch_array($iplist)) { diff --git a/webdata/search.php b/webdata/search.php index 179e729..4fa6694 100644 --- a/webdata/search.php +++ b/webdata/search.php @@ -6,7 +6,7 @@
    -

    LiquidWeb Traffic Monitoring

    +

    Traffic Monitoring

    Source IP Search

    @@ -16,10 +16,10 @@ $id - $name"; } - + //Check Connection if ($conn->connect_error) { die("Connection Failed: " . $conn->connect_error); @@ -65,27 +65,27 @@ if(isset($_GET['formIP'])) { $varIP = filter_var(trim($_GET['formIP']), FILTER_VALIDATE_IP); } - + // Create connection $conn2 = new mysqli($servername, $username, $password, $dbname); - + //Check Connection if ($conn2->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 ""; - + while ($row = $result->fetch_assoc()) { - echo ""; + echo ""; } echo "
    Source IP# of targets# of connectionsSource WhoisDestination IPs
    ".$row["src_ip"]."".$row["COUNT(DISTINCT(dst_ip))"]."".$row["COUNT(src_ip)"]."WhoisList
    ".$row["src_ip"]."".$row["COUNT(DISTINCT(dst_ip))"]."".$row["COUNT(src_ip)"]."WhoisList
    "; } else { diff --git a/webdata/sourceips.php b/webdata/sourceips.php index 732c9db..baf7e26 100644 --- a/webdata/sourceips.php +++ b/webdata/sourceips.php @@ -6,7 +6,7 @@
    -

    LiquidWeb Traffic Monitoring

    +

    Traffic Monitoring

    Source IPs by Destination

    @@ -16,10 +16,10 @@ $id - $name"; } - + //Check Connection if ($conn->connect_error) { die("Connection Failed: " . $conn->connect_error); @@ -65,27 +65,27 @@ if(isset($_GET['formIP'])) { $varIP = filter_var(trim($_GET['formIP']), FILTER_VALIDATE_IP); } - + // Create connection $conn2 = new mysqli($servername, $username, $password, $dbname); - + //Check Connection if ($conn2->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 ""; - + echo "
    Destination IP: $varIP Netblock
    Source IPsWhois
    "; + while ($row = $result->fetch_assoc()) { - echo ""; + echo ""; } echo "
    Destination IP: $varIP Netblock
    Source IPsWhois
    ".$row["src_ip"]."Whois
    ".$row["src_ip"]."Whois
    "; } else { diff --git a/webdata/topdestinations.php b/webdata/topdestinations.php index 1243f5c..cd33a3a 100644 --- a/webdata/topdestinations.php +++ b/webdata/topdestinations.php @@ -12,7 +12,7 @@
    -

    LiquidWeb Traffic Monitoring

    +

    Traffic Monitoring

    Top Destination IPs

    @@ -24,10 +24,10 @@ $id - $name"; } - + //Check Connection if ($conn->connect_error) { die("Connection Failed: " . $conn->connect_error); @@ -69,11 +69,11 @@ } // Create connection $conn2 = new mysqli($servername, $username, $password, $dbname); - + //Query - + $sql = "SELECT dst_ip, COUNT(DISTINCT(src_ip)), COUNT(dst_ip) FROM `rawdata` WHERE `dst_port` = '".$varPort."' AND time > (UNIX_TIMESTAMP() - 1800) GROUP BY dst_ip ORDER BY COUNT(DISTINCT(src_ip)) DESC LIMIT 50"; - + $result = $conn2->query($sql); //If there are results, display them in a table if ($result->num_rows >0) { @@ -81,7 +81,7 @@ echo "
    "; echo ""; while ($row = $result->fetch_assoc()) { - echo ""; + echo ""; } echo "
    Destination IP# of sources# of connectionsDestination NetblockSource IPs
    ".$row["dst_ip"]."".$row["COUNT(DISTINCT(src_ip))"]."".$row["COUNT(dst_ip)"]."NetblockList
    ".$row["dst_ip"]."".$row["COUNT(DISTINCT(src_ip))"]."".$row["COUNT(dst_ip)"]."NetblockList
    "; } else { diff --git a/webdata/topsources.php b/webdata/topsources.php index 8a6cc65..10f2385 100644 --- a/webdata/topsources.php +++ b/webdata/topsources.php @@ -12,7 +12,7 @@
    -

    LiquidWeb Traffic Monitoring

    +

    Traffic Monitoring

    Top Source IPs

    @@ -23,10 +23,10 @@ $id - $name"; } - + //Check Connection if ($conn->connect_error) { die("Connection Failed: " . $conn->connect_error); @@ -68,11 +68,11 @@ } // Create connection $conn2 = new mysqli($servername, $username, $password, $dbname); - + //Query - + $sql = "SELECT src_ip, COUNT(DISTINCT(dst_ip)), COUNT(src_ip) FROM `rawdata` WHERE `dst_port` = '".$varPort."' AND time > (UNIX_TIMESTAMP() - 1800) GROUP BY src_ip ORDER BY COUNT(DISTINCT(dst_ip)) DESC LIMIT 50"; - + $result = $conn2->query($sql); //If there are results, display them in a table if ($result->num_rows >0) { @@ -80,7 +80,7 @@ echo "
    "; echo ""; while ($row = $result->fetch_assoc()) { - echo ""; + echo ""; } echo "
    Source IP# of targets# of connectionsSource WhoisDestination IPs
    ".$row["src_ip"]."".$row["COUNT(DISTINCT(dst_ip))"]."".$row["COUNT(src_ip)"]."WhoisList
    ".$row["src_ip"]."".$row["COUNT(DISTINCT(dst_ip))"]."".$row["COUNT(src_ip)"]."WhoisList
    "; } else { diff --git a/webdata/whoislookup.php b/webdata/whoislookup.php index ff91f4e..52e3c70 100644 --- a/webdata/whoislookup.php +++ b/webdata/whoislookup.php @@ -6,7 +6,7 @@
    -

    LiquidWeb Traffic Monitoring

    +

    Traffic Monitoring

    IP WhoIs Lookup