mirror of
https://github.com/TheOfficialFloW/bd-jb
synced 2024-11-28 03:32:22 -05:00
Restructure source code.
This commit is contained in:
parent
8d7ad41156
commit
036746d7da
8
Makefile
8
Makefile
@ -8,12 +8,12 @@ TOOLS = tools
|
|||||||
CLASSES = \
|
CLASSES = \
|
||||||
$(SRC)/com/bdjb/ExploitXlet.java \
|
$(SRC)/com/bdjb/ExploitXlet.java \
|
||||||
$(SRC)/com/bdjb/Exploit.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/JIT.java \
|
||||||
$(SRC)/com/bdjb/Screen.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/ExploitSandboxInterface.java \
|
||||||
$(SRC)/com/bdjb/exploit/sandbox/ExploitDefaultImpl.java \
|
$(SRC)/com/bdjb/exploit/sandbox/ExploitDefaultImpl.java \
|
||||||
$(SRC)/com/bdjb/exploit/sandbox/ExploitUserPrefsImpl.java \
|
$(SRC)/com/bdjb/exploit/sandbox/ExploitUserPrefsImpl.java \
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
|
|
||||||
package com.bdjb;
|
package com.bdjb;
|
||||||
|
|
||||||
|
import com.bdjb.api.API;
|
||||||
import java.io.RandomAccessFile;
|
import java.io.RandomAccessFile;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* of the MIT license. See the LICENSE file for details.
|
* of the MIT license. See the LICENSE file for details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.bdjb;
|
package com.bdjb.api;
|
||||||
|
|
||||||
import java.io.ByteArrayOutputStream;
|
import java.io.ByteArrayOutputStream;
|
||||||
import java.lang.reflect.Constructor;
|
import java.lang.reflect.Constructor;
|
||||||
@ -136,7 +136,6 @@ public final class API {
|
|||||||
}
|
}
|
||||||
|
|
||||||
__Ux86_64_setcontext = dlsym(LIBKERNEL_MODULE_HANDLE, UX86_64_SETCONTEXT_SYMBOL);
|
__Ux86_64_setcontext = dlsym(LIBKERNEL_MODULE_HANDLE, UX86_64_SETCONTEXT_SYMBOL);
|
||||||
|
|
||||||
if (__Ux86_64_setcontext == 0) {
|
if (__Ux86_64_setcontext == 0) {
|
||||||
// In earlier versions, there's a bug where only the main executable's handle is used.
|
// In earlier versions, there's a bug where only the main executable's handle is used.
|
||||||
executableHandle = JVM_NativePath & ~(4 - 1);
|
executableHandle = JVM_NativePath & ~(4 - 1);
|
||||||
@ -148,7 +147,6 @@ public final class API {
|
|||||||
// Try again.
|
// Try again.
|
||||||
__Ux86_64_setcontext = dlsym(LIBKERNEL_MODULE_HANDLE, UX86_64_SETCONTEXT_SYMBOL);
|
__Ux86_64_setcontext = dlsym(LIBKERNEL_MODULE_HANDLE, UX86_64_SETCONTEXT_SYMBOL);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (__Ux86_64_setcontext == 0) {
|
if (__Ux86_64_setcontext == 0) {
|
||||||
throw new IllegalStateException("Could not find __Ux86_64_setcontext.");
|
throw new IllegalStateException("Could not find __Ux86_64_setcontext.");
|
||||||
}
|
}
|
@ -5,7 +5,7 @@
|
|||||||
* of the MIT license. See the LICENSE file for details.
|
* 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.Field;
|
||||||
|
|
@ -5,7 +5,7 @@
|
|||||||
* of the MIT license. See the LICENSE file for details.
|
* 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.Field;
|
||||||
import java.lang.reflect.Method;
|
import java.lang.reflect.Method;
|
@ -5,7 +5,7 @@
|
|||||||
* of the MIT license. See the LICENSE file for details.
|
* 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.Field;
|
||||||
import sun.misc.Unsafe;
|
import sun.misc.Unsafe;
|
Loading…
Reference in New Issue
Block a user