Skip to content

Commit fe08903

Browse files
author
jvazquez-r7
committed
Land rapid7#2257, @wchen-r7's patch for [SeeRM rapid7#8317]
2 parents ceb0f56 + 1702cf2 commit fe08903

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

modules/auxiliary/scanner/http/svn_wcdb_scanner.rb

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,13 @@ def initialize
3535

3636
register_advanced_options(
3737
[
38-
OptString.new('BASE_PATH', [false, 'Path to the directory with the .svn folder.', nil])
38+
OptString.new('TARGETURI', [false, 'Base path to the .svn directory', '/.svn/'])
3939
], self.class)
4040
end
4141

4242
def run_host(ip)
43-
if datastore['BASE_PATH']
44-
get_wcdb(datastore['BASE_PATH'] + '/.svn/wc.db')
45-
else
46-
get_wcdb('/.svn/wc.db')
47-
end
43+
base_path = target_uri.path
44+
get_wcdb(normalize_uri(base_path, 'wc.db'))
4845
end
4946

5047
def get_wcdb(path)

0 commit comments

Comments
 (0)