Skip to content

Commit 9893579

Browse files
Some cosmetical improvements (part of #42)
1 parent 64e84c4 commit 9893579

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

datagather_modules/networking_processor.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,14 @@ def query_internetdb(ip, report_file_extension):
6868
if not tags:
6969
tags = ['Tags were not found']
7070
if not vulns:
71-
vulns = ['Vulnerabilities were not found ']
71+
vulns = ['Vulnerabilities were not found']
7272
if report_file_extension == 'pdf':
7373
return ports, hostnames, cpes, tags, vulns
7474
elif report_file_extension == 'xlsx':
75-
return ports, ' // '.join(hostnames), ' // '.join(cpes), ' // '.join(tags), vulns
75+
return ports, ', '.join(hostnames), ', '.join(cpes), ', '.join(tags), vulns
7676
else:
7777
print(Fore.RED + "No information was found on InternetDB" + Style.RESET_ALL)
78-
ports = hostnames = cpes = tags = vulns = "No info about this web resource on InternetDB"
78+
ports = hostnames = cpes = tags = vulns = ["No info about this web resource on InternetDB"]
7979
return ports, hostnames, cpes, tags, vulns
8080

8181
def get_robots_txt(url, robots_path):

0 commit comments

Comments
 (0)