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

Log when Class encryption transformer keys are out-of-bounds #4

Open
Col-E opened this issue May 18, 2020 · 0 comments
Open

Log when Class encryption transformer keys are out-of-bounds #4

Col-E opened this issue May 18, 2020 · 0 comments

Comments

@Col-E
Copy link

Col-E commented May 18, 2020

Using the class_key value with some number that is >= Short.MAX_VALUE causes

java -cp output.jar Loader
Exception in thread "main" java.lang.ClassFormatError: Incompatible magic value 2510415329 in class file MyApp
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:642)
        at MyLoader.loadClass(Unknown Source)
        at MyLoader.main(Unknown Source)

Illegal keys should be denied. The console should log a message like Cannot use key size out of range [Min, Max]

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

1 participant