mirror of
https://github.com/nmap/nmap.git
synced 2025-12-10 09:49:05 +00:00
Don't mark vulns as NOT_VULN if we don't find RDP.
Patch by Djalal.
This commit is contained in:
@@ -174,7 +174,8 @@ action = function(host, port)
|
|||||||
status, response = socket:receive_bytes(0)
|
status, response = socket:receive_bytes(0)
|
||||||
if response ~= bin.pack("H","0300000b06d00000123400") then
|
if response ~= bin.pack("H","0300000b06d00000123400") then
|
||||||
--probably not rdp at all
|
--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
|
end
|
||||||
status, err = socket:send(connectInitial)
|
status, err = socket:send(connectInitial)
|
||||||
status, err = socket:send(userRequest) -- send attach user request
|
status, err = socket:send(userRequest) -- send attach user request
|
||||||
|
|||||||
Reference in New Issue
Block a user