Run the Karta (identifier) plugin.
()
| 154 | disas.messageBox(f"Results were saved to file: {result_file}") |
| 155 | |
| 156 | def pluginMain(): |
| 157 | """Run the Karta (identifier) plugin.""" |
| 158 | global logger, disas |
| 159 | |
| 160 | # Use the basic logger on the init phase |
| 161 | init_logger = Logger(LIBRARY_NAME) |
| 162 | init_logger.linkHandler(logging.FileHandler(constructInitLogPath(), "w")) |
| 163 | disas = createDisassemblerHandler(init_logger) |
| 164 | # In case of a dependency issue, disas will be None |
| 165 | if disas is None: |
| 166 | return |
| 167 | |
| 168 | # Can now safely continue on |
| 169 | logger = Logger(LIBRARY_NAME, [], use_stdout=False, min_log_level=logging.INFO) |
| 170 | initUtils(logger, disas) |
| 171 | logger.info("Started the Script") |
| 172 | |
| 173 | # Init the strings list (Only once, because it's heavy to calculate) |
| 174 | logger.info("Building a list of all of the strings in the binary") |
| 175 | |
| 176 | # Start identifying the libraries |
| 177 | logger.info("Going to identify the open (and closed) source libraries") |
| 178 | identifyLibraries() |
| 179 | |
| 180 | # Finished successfully |
| 181 | logger.info("Finished Successfully") |
| 182 | |
| 183 | |
| 184 | # Start to analyze the file |
no test coverage detected