-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request #19
Comments
I'm giving this feature a go, but I am not a java programmer. I think I understand the basic components that are needed, but I am having a problem with syntax. This change belongs in the analyze-community-ghidra-plugin/XMLParser.java Lines 135 to 136 in d91411c
Here is where I am: case "code_reuse":
String codeReuseString = data.toString();
String substring = "malicious";
if (codeReuseString.toLowerCase().contains(substring)) {
}
row.setCodeReuse(codeReuseString); Where I am stuck is instantiating the https://ghidra.re/ghidra_docs/api/ghidra/app/util/ColorAndStyle.html The color object I think should be used for malicious is https://ghidra.re/ghidra_docs/api/ghidra/util/WebColors.html Once the class is instantiated properly, I think the form that should be used will be the following or something like this: codeReuseString = ColorAndStyle.toHtml(codeReuseString) If anyone out there has a suggestion for how to get this over the finish line, please post something here. |
I have started a branch in my dev fork for this feature: https://github.com/utkonos/analyze-community-ghidra-plugin/tree/code_reuse_colors |
Hi,
a nice feature it's colorize the code reused in the listing of ghidra, it's very usefull to see quickly the function to analyze.
The text was updated successfully, but these errors were encountered: