Add files via upload

This commit is contained in:
Jake Miller 2018-02-15 08:42:37 -06:00 committed by GitHub
parent c6e045a491
commit e50d6387ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()