From 1702cf2af997800b22b8f6b31cbae899e51c953d Mon Sep 17 00:00:00 2001 From: sinn3r Date: Tue, 20 Aug 2013 13:23:32 -0500 Subject: [PATCH] Use TARGETURI --- modules/auxiliary/scanner/http/svn_wcdb_scanner.rb | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/modules/auxiliary/scanner/http/svn_wcdb_scanner.rb b/modules/auxiliary/scanner/http/svn_wcdb_scanner.rb index 6df56ba6f6..b7ef80a53a 100644 --- a/modules/auxiliary/scanner/http/svn_wcdb_scanner.rb +++ b/modules/auxiliary/scanner/http/svn_wcdb_scanner.rb @@ -35,17 +35,13 @@ class Metasploit3 < Msf::Auxiliary register_advanced_options( [ - OptString.new('BASE_PATH', [false, 'Path to the directory with the .svn folder.', nil]) + OptString.new('TARGETURI', [false, 'Base path to the .svn directory', '/.svn/']) ], self.class) end def run_host(ip) - if datastore['BASE_PATH'] - - get_wcdb(Rex::FileUtils.normalize_unix_path(datastore['BASE_PATH'] + '/.svn/wc.db')) - else - get_wcdb('/.svn/wc.db') - end + base_path = target_uri.path + get_wcdb(normalize_uri(base_path, 'wc.db')) end def get_wcdb(path)