MCPcopy Create free account
hub / github.com/GCMiner/GCMiner / objectInit

Method objectInit

src/main/java/com/ExploitGenerator.java:64–70  ·  view source on GitHub ↗
(String classname)

Source from the content-addressed store, hash-verified

62 }
63
64 public static Object objectInit (String classname) throws Exception {
65 Class<?> target_classname = Class.forName(classname);
66 Field f = Unsafe.class.getDeclaredField("theUnsafe");
67 f.setAccessible(true);
68 Unsafe unsafe = (Unsafe) f.get(null);
69 return unsafe.allocateInstance(target_classname);
70 }
71
72
73 @Override

Callers 1

configureMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected