From 246c2d82f9085609a022a5f0eb4d543b9da84f80 Mon Sep 17 00:00:00 2001 From: sinn3r Date: Mon, 19 Aug 2013 18:04:12 -0500 Subject: [PATCH] [FixRM #8318] - Use normalize_uri properly normalize_uri should be used when paths are being merged, not after. --- .../scanner/lotus/lotus_domino_version.rb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/modules/auxiliary/scanner/lotus/lotus_domino_version.rb b/modules/auxiliary/scanner/lotus/lotus_domino_version.rb index 45e92c2714..ce2b3799d5 100644 --- a/modules/auxiliary/scanner/lotus/lotus_domino_version.rb +++ b/modules/auxiliary/scanner/lotus/lotus_domino_version.rb @@ -28,7 +28,7 @@ class Metasploit3 < Msf::Auxiliary def run_host(ip) - path = normalize_uri(datastore['PATH']) + path = datastore['PATH'] check1 = [ 'iNotes/Forms5.nsf', 'iNotes/Forms6.nsf', @@ -53,8 +53,8 @@ class Metasploit3 < Msf::Auxiliary check1.each do | check | res = send_request_raw({ - 'uri' => path+check, - 'method' => 'GET', + 'uri' => normalize_uri(path, check), + 'method' => 'GET' }, 10) if (res.nil?) @@ -101,8 +101,8 @@ class Metasploit3 < Msf::Auxiliary check2.each do | check | res = send_request_raw({ - 'uri' => path+check, - 'method' => 'GET', + 'uri' => normalize_uri(path, check), + 'method' => 'GET' }, 10) if (res.nil?) @@ -137,8 +137,8 @@ class Metasploit3 < Msf::Auxiliary check3.each do | check | res = send_request_raw({ - 'uri' => path+check, - 'method' => 'GET', + 'uri' => normalize_uri(path, check), + 'method' => 'GET' }, 10) if (res.nil?)