Class AnalyzeHeadless

  • All Implemented Interfaces:
    GhidraLaunchable

    public class AnalyzeHeadless
    extends java.lang.Object
    implements GhidraLaunchable
    Launcher entry point for running headless Ghidra.
    • Constructor Summary

      Constructors 
      Constructor Description
      AnalyzeHeadless()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void launch​(GhidraApplicationLayout layout, java.lang.String[] args)
      The entry point of 'analyzeHeadless.bat'.
      static void usage​(java.lang.String execCmd)
      Prints out the usage details and exits the Java application with an exit code that indicates error.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AnalyzeHeadless

        public AnalyzeHeadless()
    • Method Detail

      • launch

        public void launch​(GhidraApplicationLayout layout,
                           java.lang.String[] args)
                    throws java.lang.Exception
        The entry point of 'analyzeHeadless.bat'. Parses the command line arguments to the script and takes the appropriate headless actions.
        Specified by:
        launch in interface GhidraLaunchable
        Parameters:
        args - Detailed list of arguments is in 'analyzeHeadlessREADME.html'
        layout - The application layout to use for the launch.
        Throws:
        java.lang.Exception - if there was a problem with the launch.
      • usage

        public static void usage​(java.lang.String execCmd)
        Prints out the usage details and exits the Java application with an exit code that indicates error.
        Parameters:
        execCmd - the command used to run the headless analyzer from the calling method.