Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while deobfuscating #978

Open
InstantlyMoist opened this issue Sep 21, 2023 · 1 comment
Open

Error while deobfuscating #978

InstantlyMoist opened this issue Sep 21, 2023 · 1 comment

Comments

@InstantlyMoist
Copy link

Hi, Trying to obfuscate a jar. this is the detection result:

[main] INFO com.javadeobfuscator.deobfuscator.Deobfuscator - Loading classpath [main] INFO com.javadeobfuscator.deobfuscator.Deobfuscator - Loading input [main] INFO com.javadeobfuscator.deobfuscator.Deobfuscator - Detecting known obfuscators [main] INFO com.javadeobfuscator.deobfuscator.Deobfuscator - [main] INFO com.javadeobfuscator.deobfuscator.Deobfuscator - RuleSourceFileAttribute: Some obfuscators don't remove the SourceFile attribute by default. This information can be recovered, and is very useful [main] INFO com.javadeobfuscator.deobfuscator.Deobfuscator - Found possible SourceFile attribute on kotlin/sequences/SequencesKt___SequencesJvmKt: _SequencesJvm.kt [main] INFO com.javadeobfuscator.deobfuscator.Deobfuscator - Recommend transformers: [main] INFO com.javadeobfuscator.deobfuscator.Deobfuscator - (Choose one transformer. If there are multiple, it's recommended to try the transformer listed first) [main] INFO com.javadeobfuscator.deobfuscator.Deobfuscator - com.javadeobfuscator.deobfuscator.transformers.normalizer.SourceFileClassNormalizer [main] INFO com.javadeobfuscator.deobfuscator.Deobfuscator - [main] INFO com.javadeobfuscator.deobfuscator.Deobfuscator - RuleStringDecryptorV3: This variant of Stringer's string decryptor makes use of invokedynamic obfuscation within the string decryption classes [main] INFO com.javadeobfuscator.deobfuscator.Deobfuscator - Found possible string decryption class com/wiesel/mod/handlers/Screenshot$Screenshot [main] INFO com.javadeobfuscator.deobfuscator.Deobfuscator - Recommend transformers: [main] INFO com.javadeobfuscator.deobfuscator.Deobfuscator - (Choose one transformer. If there are multiple, it's recommended to try the transformer listed first) [main] INFO com.javadeobfuscator.deobfuscator.Deobfuscator - com.javadeobfuscator.deobfuscator.transformers.stringer.StringEncryptionTransformer [main] INFO com.javadeobfuscator.deobfuscator.Deobfuscator - com.javadeobfuscator.deobfuscator.transformers.stringer.v9.StringEncryptionTransformer [main] INFO com.javadeobfuscator.deobfuscator.Deobfuscator - [main] INFO com.javadeobfuscator.deobfuscator.Deobfuscator - RuleHideAccess: Stringer most likely uses a seperate class to decrypt the encrypted calls. It then calls the encrypted class directly or through invokedynamic [main] INFO com.javadeobfuscator.deobfuscator.Deobfuscator - Found potential hideaccess decryptor class com/wiesel/mod/handlers/g [main] INFO com.javadeobfuscator.deobfuscator.Deobfuscator - Recommend transformers: [main] INFO com.javadeobfuscator.deobfuscator.Deobfuscator - (Choose one transformer. If there are multiple, it's recommended to try the transformer listed first) [main] INFO com.javadeobfuscator.deobfuscator.Deobfuscator - com.javadeobfuscator.deobfuscator.transformers.stringer.HideAccessObfuscationTransformer [main] INFO com.javadeobfuscator.deobfuscator.Deobfuscator - All detectors have been run. If you do not see anything listed, check if your file only contains name obfuscation. [main] INFO com.javadeobfuscator.deobfuscator.Deobfuscator - Do note that some obfuscators do not have detectors.

unfortunately with this config:

`input: rename.jar
output: output.jar
transformers:

  • stringer.StringEncryptionTransformer
  • stringer.HideAccessObfuscationTransformer
    `

I get this error:
** DO NOT OPEN AN ISSUE ON GITHUB ** Could not locate a class file. Have you added the necessary files to the -path argument? The error was: com.javadeobfuscator.deobfuscator.exceptions.NoClassInPathException: java.lang.String at com.javadeobfuscator.deobfuscator.executor.defined.types.JavaClass.<init>(JavaClass.java:70) at com.javadeobfuscator.deobfuscator.executor.defined.JVMMethodProvider$1$25.lambda$new$0(JVMMethodProvider.java:397) at com.javadeobfuscator.deobfuscator.executor.defined.JVMMethodProvider$Function3.applyUnchecked(JVMMethodProvider.java:972) at com.javadeobfuscator.deobfuscator.executor.defined.JVMMethodProvider.invokeMethod(JVMMethodProvider.java:887) at com.javadeobfuscator.deobfuscator.executor.providers.DelegatingProvider.invokeMethod(DelegatingProvider.java:35) at com.javadeobfuscator.deobfuscator.executor.MethodExecutor.execute(MethodExecutor.java:1394) at com.javadeobfuscator.deobfuscator.executor.MethodExecutor.execute(MethodExecutor.java:76) at com.javadeobfuscator.deobfuscator.transformers.stringer.StringEncryptionTransformer.lambda$decrypt$13(StringEncryptionTransformer.java:358) at com.javadeobfuscator.deobfuscator.executor.MethodExecutor.execute(MethodExecutor.java:1630) at com.javadeobfuscator.deobfuscator.executor.MethodExecutor.execute(MethodExecutor.java:76) at com.javadeobfuscator.deobfuscator.executor.defined.MappedMethodProvider.invokeMethod(MappedMethodProvider.java:54) at com.javadeobfuscator.deobfuscator.executor.providers.DelegatingProvider.invokeMethod(DelegatingProvider.java:35) at com.javadeobfuscator.deobfuscator.executor.MethodExecutor.execute(MethodExecutor.java:1394) at com.javadeobfuscator.deobfuscator.executor.MethodExecutor.execute(MethodExecutor.java:76) at com.javadeobfuscator.deobfuscator.executor.defined.MappedMethodProvider.invokeMethod(MappedMethodProvider.java:54) at com.javadeobfuscator.deobfuscator.executor.providers.DelegatingProvider.invokeMethod(DelegatingProvider.java:35) at com.javadeobfuscator.deobfuscator.executor.MethodExecutor.execute(MethodExecutor.java:1394) at com.javadeobfuscator.deobfuscator.executor.MethodExecutor.execute(MethodExecutor.java:76) at com.javadeobfuscator.deobfuscator.transformers.stringer.StringEncryptionTransformer.decrypt(StringEncryptionTransformer.java:419) at com.javadeobfuscator.deobfuscator.transformers.stringer.StringEncryptionTransformer.transform(StringEncryptionTransformer.java:105) at com.javadeobfuscator.deobfuscator.Deobfuscator.runFromConfig(Deobfuscator.java:477) at com.javadeobfuscator.deobfuscator.Deobfuscator.start(Deobfuscator.java:434) at com.javadeobfuscator.deobfuscator.DeobfuscatorMain.run(DeobfuscatorMain.java:106) at com.javadeobfuscator.deobfuscator.DeobfuscatorMain.run(DeobfuscatorMain.java:99) at com.javadeobfuscator.deobfuscator.DeobfuscatorMain.main(DeobfuscatorMain.java:36)

I'm not entirely sure how to add the rt.jar file. I tried -path, running it as JRE 1.8, adding the rt.jar file to the root. not too sure how to do this.

@Janmm14
Copy link
Contributor

Janmm14 commented Sep 22, 2023

The message is outdated.

Add path section to your config:

path:
 - C:/path/to/rt.jar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants