Answer the question
In order to leave comments, you need to log in
How to identify and change string in java bytecode?
As the name suggests, I need to find and replace some data in the compiled class file.
Let's say we have:
public class MyClass {
public static String staticField = "MyStaticField";
public String myField = "MyField";
public static void main(String[] args) {
System.out.println("OutString");
}
}
Answer the question
In order to leave comments, you need to log in
I read a little (I recommend reading it briefly here: https://www.acloudtree.com/hacking-java-bytecode-f...
It's easier with bytecode - you can replace text strings without much concern. You can write a script in any programming language that is convenient for you , which will find the right one, replace it and write it back.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question