MCPcopy Create free account
hub / github.com/CheckPointSW/Karta / pluginMain

Function pluginMain

src/karta_identifier.py:156–181  ·  view source on GitHub ↗

Run the Karta (identifier) plugin.

()

Source from the content-addressed store, hash-verified

154 disas.messageBox(f"Results were saved to file: {result_file}")
155
156def 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

Callers 1

Calls 4

constructInitLogPathFunction · 0.85
initUtilsFunction · 0.85
identifyLibrariesFunction · 0.85

Tested by

no test coverage detected