minor tweaks to the output colors

This commit is contained in:
ekultek 2017-11-08 20:00:27 -06:00
parent 1445ac4a2e
commit 61d25ec6be

View file

@ -98,7 +98,7 @@ def perform_port_scan(url, scanner=NmapHook, verbose=False, opts=None, **kwargs)
))
found_ip_address = socket.gethostbyname(url)
lib.core.settings.logger.info(lib.core.settings.set_color(
"found IP address for given URL -> '{}'...".format(found_ip_address)
"found IP address for given URL -> '{}'...".format(found_ip_address), level=25
))
if verbose:
lib.core.settings.logger.debug(lib.core.settings.set_color(
@ -144,7 +144,7 @@ def perform_port_scan(url, scanner=NmapHook, verbose=False, opts=None, **kwargs)
install_nmap_command = shlex.split("sudo sh {}".format(lib.core.settings.NMAP_INSTALLER_TOOL))
subprocess.call(install_nmap_command)
lib.core.settings.logger.info(lib.core.settings.set_color(
"nmap has been successfully installed, re-running..."
"nmap has been successfully installed, re-running...", level=25
))
perform_port_scan(url, verbose=verbose, opts=opts)
else: