GithubHelp home page GithubHelp logo

invokedynamic about obfuscator HOT 9 CLOSED

 avatar commented on June 14, 2024
invokedynamic

from obfuscator.

Comments (9)

superblaubeere27 avatar superblaubeere27 commented on June 14, 2024

Can you tell me how Invokedynamic obfuscation works? Then I would add it.

from obfuscator.

 avatar commented on June 14, 2024

It replaces method invocations (and sometimes field accesses) with an invokedynamic opcode which was introduced in java 7. The invokedynamic bootstrap returns a CallSite containing a MethodHandle to the target we want to invoke/access.

Virtual invocations use an objectref to invoke upon the object they are instantiated upon so you need to account for this by adding an extra object parameter into the invokedynamic bootstrap (another issue with your invokedynamic transformer, you forgot to account for objectref on stack).

The array issue is an bug/issue with the hotspot so it's generally casted.

from obfuscator.

superblaubeere27 avatar superblaubeere27 commented on June 14, 2024

Ok

from obfuscator.

superblaubeere27 avatar superblaubeere27 commented on June 14, 2024

@ByteCode-Dan Can you send me a documentation of invokedynamic? I will start with it

from obfuscator.

 avatar commented on June 14, 2024

Hmmm, there isn't much documentation on it.

https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-4.html#jvms-4.10.1.9.invokedynamic

from obfuscator.

superblaubeere27 avatar superblaubeere27 commented on June 14, 2024

I am working on it. If there's no error, I will commit the changes today.

from obfuscator.

superblaubeere27 avatar superblaubeere27 commented on June 14, 2024

@ByteCode-Dan Got it. Start the obfuscator with --invokeDynamic. https://github.com/superblaubeere27/obfuscator/releases

from obfuscator.

ItzSomebody avatar ItzSomebody commented on June 14, 2024

@superblaubeere27 Just tested it, seems fine to me.

from obfuscator.

superblaubeere27 avatar superblaubeere27 commented on June 14, 2024
  • Field access obfuscation

from obfuscator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.