mirror of
https://github.com/NetsecExplained/Nmap-XML-to-CSV.git
synced 2026-08-27 08:20:12 +03:00
Add files via upload
This commit is contained in:
parent
c6e045a491
commit
e50d6387ca
@ -219,7 +219,12 @@ def print_filtered_port(data, filtered_port):
|
||||
filtered_port. If it matches, print the IP address
|
||||
"""
|
||||
for item in data:
|
||||
port = item[4]
|
||||
try:
|
||||
port = item[4]
|
||||
except IndexError as e:
|
||||
if args.debug:
|
||||
print(e)
|
||||
continue
|
||||
if port == filtered_port:
|
||||
print(item[0])
|
||||
|
||||
@ -277,4 +282,4 @@ if __name__ == '__main__':
|
||||
exit()
|
||||
|
||||
csv_name = args.csv
|
||||
main()
|
||||
main()
|
||||
Loading…
x
Reference in New Issue
Block a user