first commit

This commit is contained in:
2019-02-18 01:29:38 -06:00
commit c957a948f4
10 changed files with 204 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
<!doctype html>
<head>
<title>GutterBox</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<table id="scan-table">
<?php
$myPDO = new PDO('sqlite:/home/pi/scanned.db');
?>
<?php
$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>";
}else{
echo "<td class='linux'></td>";
}
echo "<td>".$tar['hostname']."</td>";
echo "<td>".$tar['address']."</td>";
echo "<td>".$tar['ports']."</td>";
echo "</tr>";
}
?>
</table>
</body>
<html>