Skip to content

Commit c2c05a8

Browse files
committed
Force uripath and srvport options
1 parent e56e801 commit c2c05a8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

modules/auxiliary/gather/ie_sandbox_findfiles.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,11 @@ def initialize(info={})
4343
register_options(
4444
[
4545
OptString.new('SHARENAME', [ true, "The name of the top-level share.", "falcon" ]),
46-
OptPort.new('SRVPORT', [ true, "The daemon port to listen on (do not change)", 80 ]),
47-
OptString.new('URIPATH', [true, "The URI to use (do not change).", "/" ]),
4846
OptString.new('PATHS', [ true, "The list of files to check (comma separated).", "Testing/Not/Found/Check.txt, Windows/System32/calc.exe, Program Files (x86)/Mozilla Firefox/firefox.exe, Program Files/VMware/VMware Tools/TPAutoConnSvc.exe" ]),
4947
], self.class)
5048

51-
deregister_options('SSL', 'SSLVersion', 'SSLCert') # no SSL
49+
# no SSL
50+
deregister_options('SSL', 'SSLVersion', 'SSLCert', 'SRVPORT', 'URIPATH')
5251
end
5352

5453
def js
@@ -386,6 +385,8 @@ def gen_datestamp(ttype=nil)
386385
end
387386

388387
def run
388+
datastore['URIPATH'] = '/'
389+
datastore['SRVPORT'] = 80
389390
exploit
390391
end
391392
end

0 commit comments

Comments
 (0)