Comments (2)
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 XMLParser.java
script. This is where the code needs to be changed:
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 ColorAndStyle
container properly. The documentation for that class is here:
https://ghidra.re/ghidra_docs/api/ghidra/app/util/ColorAndStyle.html
The color object I think should be used for malicious is ghidra.util.WebColors.RED
. The documentation for that class is here:
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.
from analyze-community-ghidra-plugin.
I have started a branch in my dev fork for this feature:
https://github.com/utkonos/analyze-community-ghidra-plugin/tree/code_reuse_colors
from analyze-community-ghidra-plugin.
Related Issues (12)
- Error while running script on Ghidra 9.2 HOT 8
- Python Requests Error HOT 2
- Error when running script HOT 5
- Ghidra 10.1.1 not showing up? HOT 4
- Ghidra Bridge / Python3 port HOT 1
- OS Name Not Detected Properly in Ubuntu 22.04 LTS
- AttributeError HOT 4
- UnicodeEncodeError HOT 3
- Incompatibility with the current Jython? HOT 7
- os.name is 'java' for me, not 'posix' HOT 6
- Error running script HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from analyze-community-ghidra-plugin.