Nmap Development mailing list archives

Problem with http-virustotal.nse and shortport.lua


From: Jost Krieger <Jost.Krieger+nmap () rub de>
Date: Fri, 25 Apr 2014 15:08:26 +0200

Some time ago, http-virustotal.nse stopped working for me (I use this
heavily).

My analysis showed the following fixed it for me, but I'm not sure if
that has other implications.

Index: nselib/shortport.lua
===================================================================
--- nselib/shortport.lua        (revision 32850)
+++ nselib/shortport.lua        (working copy)
@@ -197,7 +197,7 @@
 -- @usage
 -- portrule = shortport.ssl
 function ssl(host, port)
-  return port.version.service_tunnel == "ssl" or
+  return port.version and port.version.service_tunnel == "ssl" or
     port_or_service(LIKELY_SSL_PORTS, LIKELY_SSL_SERVICES, {"tcp", "sctp"})(host, port)
 end

Mit freundlichen Grüßen
Jost Krieger
-- 
| Öffnen und lesen Sie Ihre Briefe mit der Küchenmaschine?         |
| Aber Ihre E-Mail lesen und verwalten Sie mit Outlook?            |
| Postmaster, JAPH, manchmal Wahrsager               am RZ der RUB |
_______________________________________________
Sent through the dev mailing list
http://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/


Current thread: