Spaces:
Sleeping
Sleeping
Commit
·
2fba160
1
Parent(s):
5f7c7b0
minor
Browse files
main.py
CHANGED
|
@@ -16,7 +16,7 @@ def get_functions(file):
|
|
| 16 |
shell=True,
|
| 17 |
)
|
| 18 |
except Exception as e:
|
| 19 |
-
raise gr.Error(f"Unable to run Ghidra on {file}: {e}
|
| 20 |
|
| 21 |
if not os.path.exists(f"{TEMP_DIR}/funcs.json"):
|
| 22 |
raise gr.Error(f"DIRTY Ghidra failed to produce output: {output}")
|
|
@@ -51,8 +51,7 @@ with gr.Blocks() as demo:
|
|
| 51 |
gr.Markdown(
|
| 52 |
"""
|
| 53 |
Great, you selected an executable! Now pick the function you would like
|
| 54 |
-
to analyze.
|
| 55 |
-
you may have to try a few before you find one that works.
|
| 56 |
"""
|
| 57 |
)
|
| 58 |
|
|
|
|
| 16 |
shell=True,
|
| 17 |
)
|
| 18 |
except Exception as e:
|
| 19 |
+
raise gr.Error(f"Unable to run Ghidra on {file}: {e}")
|
| 20 |
|
| 21 |
if not os.path.exists(f"{TEMP_DIR}/funcs.json"):
|
| 22 |
raise gr.Error(f"DIRTY Ghidra failed to produce output: {output}")
|
|
|
|
| 51 |
gr.Markdown(
|
| 52 |
"""
|
| 53 |
Great, you selected an executable! Now pick the function you would like
|
| 54 |
+
to analyze.
|
|
|
|
| 55 |
"""
|
| 56 |
)
|
| 57 |
|