This commit is contained in:
2019-02-20 23:11:53 +00:00
parent a50d6d8908
commit a37d45e49d
3 changed files with 22 additions and 3 deletions
+2 -2
View File
@@ -73,7 +73,7 @@ def main():
id integer PRIMARY KEY,
os text,
hostname text,
address integer,
address text,
ports text
); """
create_table(conn, targetTableCreate)
@@ -98,7 +98,7 @@ def main():
for addr in host.iter('address'):
if(addr.attrib['addrtype'] == 'ipv4'):
address = str(addr.attrib['addr']).split('.')[-1]
address = str(addr.attrib['addr'])
for port in host.iter('port'):
ports.append(str(port.attrib['portid']))