mirror of
https://github.com/NetsecExplained/Nmap-XML-to-CSV.git
synced 2026-08-27 08:20:12 +03:00
Update nmap_xml_parser.py
This commit is contained in:
parent
3b80713471
commit
92a993089a
@ -242,7 +242,7 @@ def main():
|
|||||||
contents = fh.read()
|
contents = fh.read()
|
||||||
if '<!entity' in contents.lower():
|
if '<!entity' in contents.lower():
|
||||||
print("[-] Error! This program does not permit XML entities. Exiting!")
|
print("[-] Error! This program does not permit XML entities. Exiting!")
|
||||||
exit()
|
continue
|
||||||
data = parse_xml(filename)
|
data = parse_xml(filename)
|
||||||
if not data:
|
if not data:
|
||||||
print("[*] Zero hosts identitified as 'Up'. Exiting.")
|
print("[*] Zero hosts identitified as 'Up'. Exiting.")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user