[FixRM #8318] - Use normalize_uri properly
normalize_uri should be used when paths are being merged, not after.bug/bundler_fix
parent
9d53ff43a0
commit
246c2d82f9
|
@ -28,7 +28,7 @@ class Metasploit3 < Msf::Auxiliary
|
||||||
|
|
||||||
def run_host(ip)
|
def run_host(ip)
|
||||||
|
|
||||||
path = normalize_uri(datastore['PATH'])
|
path = datastore['PATH']
|
||||||
check1 = [
|
check1 = [
|
||||||
'iNotes/Forms5.nsf',
|
'iNotes/Forms5.nsf',
|
||||||
'iNotes/Forms6.nsf',
|
'iNotes/Forms6.nsf',
|
||||||
|
@ -53,8 +53,8 @@ class Metasploit3 < Msf::Auxiliary
|
||||||
check1.each do | check |
|
check1.each do | check |
|
||||||
|
|
||||||
res = send_request_raw({
|
res = send_request_raw({
|
||||||
'uri' => path+check,
|
'uri' => normalize_uri(path, check),
|
||||||
'method' => 'GET',
|
'method' => 'GET'
|
||||||
}, 10)
|
}, 10)
|
||||||
|
|
||||||
if (res.nil?)
|
if (res.nil?)
|
||||||
|
@ -101,8 +101,8 @@ class Metasploit3 < Msf::Auxiliary
|
||||||
check2.each do | check |
|
check2.each do | check |
|
||||||
|
|
||||||
res = send_request_raw({
|
res = send_request_raw({
|
||||||
'uri' => path+check,
|
'uri' => normalize_uri(path, check),
|
||||||
'method' => 'GET',
|
'method' => 'GET'
|
||||||
}, 10)
|
}, 10)
|
||||||
|
|
||||||
if (res.nil?)
|
if (res.nil?)
|
||||||
|
@ -137,8 +137,8 @@ class Metasploit3 < Msf::Auxiliary
|
||||||
check3.each do | check |
|
check3.each do | check |
|
||||||
|
|
||||||
res = send_request_raw({
|
res = send_request_raw({
|
||||||
'uri' => path+check,
|
'uri' => normalize_uri(path, check),
|
||||||
'method' => 'GET',
|
'method' => 'GET'
|
||||||
}, 10)
|
}, 10)
|
||||||
|
|
||||||
if (res.nil?)
|
if (res.nil?)
|
||||||
|
|
Loading…
Reference in New Issue