From 9baf78e24ae7b696e0c969fefd0ff43b47f576c6 Mon Sep 17 00:00:00 2001 From: david Date: Thu, 29 Mar 2012 17:03:39 +0000 Subject: [PATCH] Don't mark vulns as NOT_VULN if we don't find RDP. Patch by Djalal. --- scripts/rdp-vuln-ms12-020.nse | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/rdp-vuln-ms12-020.nse b/scripts/rdp-vuln-ms12-020.nse index 21ce6bcdc..c2fc8673f 100644 --- a/scripts/rdp-vuln-ms12-020.nse +++ b/scripts/rdp-vuln-ms12-020.nse @@ -174,7 +174,8 @@ action = function(host, port) status, response = socket:receive_bytes(0) if response ~= bin.pack("H","0300000b06d00000123400") then --probably not rdp at all - return report:make_output(rdp_vuln_0152,rdp_vuln_0002) + stdnse.print_debug(1, "%s: not RDP", SCRIPT_NAME) + return nil end status, err = socket:send(connectInitial) status, err = socket:send(userRequest) -- send attach user request