Graham
2292b9449c
Ensure flow obstructor initializers always read a static field
...
This fixes a bug when deobfuscating the build 225 client, which has code
that looks like a flow obstructor initializer, but it reads an argument
rather than a static variable.
Signed-off-by: Graham <gpe@openrs2.org>
2 years ago
Graham
7b6c0cf1fd
Use block comments for multi-line comments
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
3cb7ee13f9
Rename deob to deob-bytecode
...
This is in preparation for adding a new deob module which invokes the
bytecode deobfuscator, decompiler and AST deobfuscator in turn.
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
f143eef142
Move Kotlin files from src/{main,test}/java to src/{main,test}/kotlin
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
ce5b76ef0f
Rename dev.openrs2 package to org.openrs2
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
232ba32bbd
Enable explicit API mode
...
This already caught some cases of public members that should have been
private and one case where the inferred type was too specific.
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
ccf7056a93
Use private companion objects where possible
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
7e422447ef
Convert hasCode() to a property
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
05a03d5bdc
Inject transformers in the bundler and deobfuscator
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
9cbe8b5b28
Simplify excluding the opaque predicate when removing the initializer
4 years ago
Graham
248cad99e3
Improve safety of IFEQ/IFNE check in OpaquePredicateTransformer
4 years ago
Graham
c4e08242aa
Fix handling of opaque predicate embedded in flow obstructor initializer
4 years ago
Graham
abf803f017
Replace contains() calls with the in operator
...
These are artifacts of the Java port.
4 years ago
Graham
64abe46971
Replace forEach calls with for loops
...
These are artifacts of the Java port.
4 years ago
Graham
d9762d65bc
Fix Kotlin inspections
4 years ago
Graham
06b8af41e2
Replace Stream with Sequence
4 years ago
Graham
e9a9a8f962
Format with ktlint
4 years ago
Graham
f56b288663
Convert OpaquePredicateTransformer to Kotlin
4 years ago