Skip to content

Commit

Permalink
stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Flipout50 authored and mahaloz committed Dec 6, 2023
1 parent 8e1526f commit 45fb901
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions libbs/api/decompiler_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from collections import defaultdict
from functools import wraps
from typing import Dict, Optional, Union, Tuple, List
from pathlib import Path

import libbs
from libbs.api.artifact_lifter import ArtifactLifter
Expand Down Expand Up @@ -62,6 +63,8 @@ def __init__(
supports_undo: bool = False,
# these will be changed often by public API use
headless: bool = False,
headless_binary_path: Optional[Path] = None,
binary: Optional[Path] = None,
init_plugin: bool = False,
plugin_name: str = f"generic_libbs_plugin",
# [category/name] = (action_string, callback_func)
Expand All @@ -75,6 +78,8 @@ def __init__(
self.supports_undo = supports_undo
self.qt_version = qt_version
self._error_on_artifact_duplicates = error_on_artifact_duplicates
self.headless_binary_path = headless_binary_path
self.binary = binary

# GUI things
self.headless = headless
Expand All @@ -101,6 +106,7 @@ def __init__(
kwargs = ui_init_kwargs or {}
self._init_ui_components(*args, **kwargs)


#
# Decompiler GUI API
#
Expand Down
2 changes: 1 addition & 1 deletion libbs/decompilers/ghidra/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def __init__(self, loop_on_plugin=True, **kwargs):
# connect to the remote bridge, assumes Ghidra is already running!
if self.headless:
#TODO: Generalize this for all users
subprocess.Popen(["/home/flipout/.local/bin/ghidra_10.4_PUBLIC/support/analyzeHeadless",
subprocess.Popen([self.headless_binary_path,
"/home/flipout/", "ci",
"-import", "/home/flipout/Downloads/fauxware",
"-scriptPath", "/home/flipout/ghidra_scripts/",
Expand Down

0 comments on commit 45fb901

Please sign in to comment.