diff options
| -rw-r--r-- | nmapscanner.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nmapscanner.py b/nmapscanner.py index 63b9d5a..feeb04d 100644 --- a/nmapscanner.py +++ b/nmapscanner.py @@ -16,7 +16,7 @@ def nmscan(hosts,ports,arguments='-sV'): lport = nm[host][proto].keys() #lport.sort() for port in lport: - print("Port : %s\tState : %s\tService : %s (%s - %s)" % (port, nm[host][proto][port]['state'], nm[host][proto][port]['name'], nm[host][proto][port]['product'], nm[host][proto][port]['version'])) + print("Port : {}\tState : {}\tService : {} ({} - {})".format(port, nm[host][proto][port]['state'], nm[host][proto][port]['name'], nm[host][proto][port]['product'], nm[host][proto][port]['version'])) # nmscan("xlinfo.fr","22-443") # nmscan("xlinfo.fr","53","-sU -sV") en sudo... |
