skidfuscatordev / skidfuscator-java-obfuscator

Public proof-of-concept obfuscator using the MapleIR framework designed by cts & bibl
MIT License
579 stars 59 forks source link

NumberEncryption not working #46

Open gamerover98 opened 1 year ago

gamerover98 commented 1 year ago

Hi, I'm trying to hide inline values but it doesn't work. This is an example:

double a = something.getValue();

if (a > 50) {
    // do something...
}

Obfuscated bytecode:

 while (true) {
  Label_0166: {
      if (dcmpl(n2, 50.0) > (0x28CF030F ^ nkxhdejreeseiinm)) {
      Label_1188:
          while (true) {
            ...

As you can see, the "50.0" is exposed and can be modified with a bytecode editor. I'm also trying to enable or disable the numberEncryption property, but nothing changes.

numberEncryption: {
    enabled: true
    exempt: []
}

Thanks!

terminalsin commented 1 year ago

Number encryption does not support doubles it seems. will introduce that in the future