am dum
This commit is contained in:
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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__':
|
||||||
|
|||||||
Reference in New Issue
Block a user