Restructure source code.

This commit is contained in:
Andy Nguyen 2021-11-05 18:23:20 +01:00
parent 8d7ad41156
commit 036746d7da
6 changed files with 9 additions and 10 deletions

View File

@ -8,12 +8,12 @@ TOOLS = tools
CLASSES = \
$(SRC)/com/bdjb/ExploitXlet.java \
$(SRC)/com/bdjb/Exploit.java \
$(SRC)/com/bdjb/UnsafeInterface.java \
$(SRC)/com/bdjb/UnsafeJdkImpl.java \
$(SRC)/com/bdjb/UnsafeSunImpl.java \
$(SRC)/com/bdjb/API.java \
$(SRC)/com/bdjb/JIT.java \
$(SRC)/com/bdjb/Screen.java \
$(SRC)/com/bdjb/api/API.java \
$(SRC)/com/bdjb/api/UnsafeInterface.java \
$(SRC)/com/bdjb/api/UnsafeJdkImpl.java \
$(SRC)/com/bdjb/api/UnsafeSunImpl.java \
$(SRC)/com/bdjb/exploit/sandbox/ExploitSandboxInterface.java \
$(SRC)/com/bdjb/exploit/sandbox/ExploitDefaultImpl.java \
$(SRC)/com/bdjb/exploit/sandbox/ExploitUserPrefsImpl.java \

View File

@ -7,6 +7,7 @@
package com.bdjb;
import com.bdjb.api.API;
import java.io.RandomAccessFile;
/**

View File

@ -5,7 +5,7 @@
* of the MIT license. See the LICENSE file for details.
*/
package com.bdjb;
package com.bdjb.api;
import java.io.ByteArrayOutputStream;
import java.lang.reflect.Constructor;
@ -136,7 +136,6 @@ public final class API {
}
__Ux86_64_setcontext = dlsym(LIBKERNEL_MODULE_HANDLE, UX86_64_SETCONTEXT_SYMBOL);
if (__Ux86_64_setcontext == 0) {
// In earlier versions, there's a bug where only the main executable's handle is used.
executableHandle = JVM_NativePath & ~(4 - 1);
@ -148,7 +147,6 @@ public final class API {
// Try again.
__Ux86_64_setcontext = dlsym(LIBKERNEL_MODULE_HANDLE, UX86_64_SETCONTEXT_SYMBOL);
}
if (__Ux86_64_setcontext == 0) {
throw new IllegalStateException("Could not find __Ux86_64_setcontext.");
}

View File

@ -5,7 +5,7 @@
* of the MIT license. See the LICENSE file for details.
*/
package com.bdjb;
package com.bdjb.api;
import java.lang.reflect.Field;

View File

@ -5,7 +5,7 @@
* of the MIT license. See the LICENSE file for details.
*/
package com.bdjb;
package com.bdjb.api;
import java.lang.reflect.Field;
import java.lang.reflect.Method;

View File

@ -5,7 +5,7 @@
* of the MIT license. See the LICENSE file for details.
*/
package com.bdjb;
package com.bdjb.api;
import java.lang.reflect.Field;
import sun.misc.Unsafe;