This commit is contained in:
2019-02-18 01:42:50 -06:00
parent c957a948f4
commit aa9176bb6b
2 changed files with 1 additions and 2 deletions
-2
View File
@@ -9,9 +9,7 @@
<?php <?php
$myPDO = new PDO('sqlite:/home/pi/scanned.db'); $myPDO = new PDO('sqlite:/home/pi/scanned.db');
?>
<?php
$targets = $myPDO->query("SELECT os,hostname,address,ports FROM targets"); $targets = $myPDO->query("SELECT os,hostname,address,ports FROM targets");
foreach($targets as $tar) foreach($targets as $tar)
{ {
+1
View File
@@ -53,6 +53,7 @@ def main():
add_item(conn, "windows", "localhost", 1, "80,69,8080") add_item(conn, "windows", "localhost", 1, "80,69,8080")
# Close the database connection # Close the database connection
conn.commit()
conn.close() conn.close()
if __name__ == '__main__': if __name__ == '__main__':