Skip to content
Extraits de code Groupes Projets
Valider 5bf3b333 rédigé par Thomas Saquet's avatar Thomas Saquet
Parcourir les fichiers

fixed a failure when the lib behind a port is unknown

parent 1891c6a4
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -89,9 +89,16 @@ ports.push("router")
for port in ports
if port == "router" then
lib = getRouter(ipAddress)
if (lib == null) then
continue
end if
else
lib = getLib(ipAddress, port)
if (lib == null) then
continue
end if
end if
libId = lib.lib_name + "_" + lib.version
existingVulnerabilityFile = getFile(globals.vulnerabilitiesDirectoryName, libId)
......@@ -107,6 +114,9 @@ for port in ports
end if
print("Scanning lib " + libId)
scanResults = metaxploit.scan(lib)
if (scanResults == null) then
continue
end if
// example with port 25, usefull to debug
//scanResults = ["0x19189A45", "0x1C021A4C", "0x5D601DE4"]
vulnerabilitiesMap = {}
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter