BIG push, should all be working

This commit is contained in:
2019-02-18 06:16:43 -06:00
parent aa9176bb6b
commit e58a1774b6
9 changed files with 128 additions and 109 deletions
+28 -11
View File
@@ -2,30 +2,47 @@
<head>
<title>GutterBox</title>
<link rel="stylesheet" type="text/css" href="style.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
</head>
<body>
<table id="scan-table">
<h2>This might help</h2>
<table id="scan-table">
<thead>
<tr class="table-header">
<th>OS</td>
<th>HOSTNAME</td>
<th>ADDRESS</td>
<th>PORTS</td>
</tr>
</thead>
<tbody>
<?php
$myPDO = new PDO('sqlite:/home/pi/scanned.db');
//echo class_exists("PDO");
$myPDO = NULL;
$myPDO = new PDO("sqlite:scanned.db");
$targets = $myPDO->query("SELECT os,hostname,address,ports FROM targets");
foreach($targets as $tar)
{
echo "<tr>";
if($tar['os'] == "windows"){
echo "<td class='windows'></td>";
echo "\t<tr>\n";
if(strtolower($tar['os']) == "windows"){
echo "\t\t<td class='windows'><img src='media/windows.png'></td>\n";
}else if(strtolower($tar['os']) == "linux"){
echo "\t\t<td class='linux'><img src='media/linux.png'></td>\n";
}else{
echo "<td class='linux'></td>";
echo "\t\t<td class='linux'><img src='media/unsure.png'></td>\n";
}
echo "<td>".$tar['hostname']."</td>";
echo "<td>".$tar['address']."</td>";
echo "<td>".$tar['ports']."</td>";
echo "</tr>";
echo "\t\t<td>".$tar['hostname']."</td>\n";
echo "\t\t<td>".$tar['address']."</td>\n";
echo "\t\t<td>".$tar['ports']."</td>\n";
echo "\t</tr>\n";
}
?>
</tbody>
</table>
</body>
<html>
<html>