#Obfuscate method in java using javassist

8 messages · Page 1 of 1 (latest)

fathom cosmos
#

How can I change a method so that it cannot be read at first sight using javassist, I have no idea how to write all this at all

clear scrollBOT
#

This post has been reserved for your question.

Hey @fathom cosmos! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

lone solstice
#

you would need to change the bytecode to equivalent code that is a bit harder to parse or understand

#

that requires knowledge about how the jvm works, which bytecode instructions do what, and what they can be replaced with

#

example: you could replace iconst_5 with ```
ldc 54789531
ldc 54789534
ixor

#

and as always, consider using asm instead of javassist, it's not as complicated as it might look