Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
EpicPlayerA10 committed Sep 7, 2024
1 parent 7fa00c0 commit 69e84f3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class SandboxClassLoader extends ClassLoader {

public SandboxClassLoader(Context context) {
if (System.getSecurityManager() == null) {
LOGGER.error("SecurityManager is not initialized. It mandatory to secure you from running arbitrary code on your machine. Please use the built-in task in IntelliJ called 'Bootstrap' (see README.md)");
LOGGER.error("SecurityManager is not initialized. It is required to secure you from running arbitrary code on your machine. Please use the built-in IntelliJ task named 'Bootstrap' (see README.md)");
throw new SecurityException("SecurityManager is not initialized");
}
this.context = context;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import org.objectweb.asm.tree.AbstractInsnNode;
import org.objectweb.asm.tree.MethodInsnNode;
import org.objectweb.asm.tree.MethodNode;
import uwu.narumi.deobfuscator.api.asm.ClassWrapper;
import uwu.narumi.deobfuscator.api.asm.InstructionContext;
import uwu.narumi.deobfuscator.api.asm.MethodContext;
Expand All @@ -14,15 +13,10 @@
import uwu.narumi.deobfuscator.api.context.Context;
import uwu.narumi.deobfuscator.api.execution.SandboxClassLoader;
import uwu.narumi.deobfuscator.api.helper.AsmHelper;
import uwu.narumi.deobfuscator.api.transformer.FramedInstructionsTransformer;
import uwu.narumi.deobfuscator.api.transformer.Transformer;

import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Stream;

/**
* Decrypts {@code long} numbers <a href="https://www.zelix.com/klassmaster/featuresLongEncryption.html">https://www.zelix.com/klassmaster/featuresLongEncryption.html</a>
Expand Down Expand Up @@ -98,11 +92,7 @@ protected void transform(ClassWrapper scope, Context context) throws Exception {

// Set field to decrypted long value!
insnContext.methodNode().instructions.insertBefore(insnContext.insn(), AsmHelper.getNumber(value));

// Add decrypter classes to remove

markChange();

} catch (ClassNotFoundException | NoSuchMethodException | InvocationTargetException | IllegalAccessException e) {
throw new RuntimeException(e);
}
Expand Down

0 comments on commit 69e84f3

Please sign in to comment.