Git Product home page Git Product logo

Comments (2)

utkonos avatar utkonos commented on July 20, 2024

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:

case "code_reuse":
row.setCodeReuse(data.toString());

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.

utkonos avatar utkonos commented on July 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.