Use TARGETURI
parent
3c27520e10
commit
1702cf2af9
|
@ -35,17 +35,13 @@ class Metasploit3 < Msf::Auxiliary
|
||||||
|
|
||||||
register_advanced_options(
|
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)
|
], self.class)
|
||||||
end
|
end
|
||||||
|
|
||||||
def run_host(ip)
|
def run_host(ip)
|
||||||
if datastore['BASE_PATH']
|
base_path = target_uri.path
|
||||||
|
get_wcdb(normalize_uri(base_path, 'wc.db'))
|
||||||
get_wcdb(Rex::FileUtils.normalize_unix_path(datastore['BASE_PATH'] + '/.svn/wc.db'))
|
|
||||||
else
|
|
||||||
get_wcdb('/.svn/wc.db')
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_wcdb(path)
|
def get_wcdb(path)
|
||||||
|
|
Loading…
Reference in New Issue