Spaces:
Running
Running
Edward J. Schwartz
commited on
Commit
·
8750a82
1
Parent(s):
8d4b813
debug
Browse files
main.py
CHANGED
@@ -12,8 +12,7 @@ def new_binary(file):
|
|
12 |
|
13 |
# python3 generate.py --ghidra PATH_TO_GHIDRA_ANALYZEHEADLESS -t NUM_THREADS -n [NUM_FILES|None] -b BINARIES_DIR -o OUTPUT_DIR
|
14 |
print("Running DIRTY-Ghidra...", file=sys.stderr)
|
15 |
-
|
16 |
-
print(output, file=sys.stderr)
|
17 |
subprocess.run(f"ls -lR {TEMP_DIR}", shell=True)
|
18 |
subprocess.run(f"ls -lR {OUTPUT_DIR}", shell=True)
|
19 |
|
|
|
12 |
|
13 |
# python3 generate.py --ghidra PATH_TO_GHIDRA_ANALYZEHEADLESS -t NUM_THREADS -n [NUM_FILES|None] -b BINARIES_DIR -o OUTPUT_DIR
|
14 |
print("Running DIRTY-Ghidra...", file=sys.stderr)
|
15 |
+
subprocess.run(f"python /DIRTY/dataset-gen-ghidra/generate.py --verbose --ghidra /ghidra/support/analyzeHeadless -t 1 -b {TEMP_DIR} -o {OUTPUT_DIR}", shell=True)
|
|
|
16 |
subprocess.run(f"ls -lR {TEMP_DIR}", shell=True)
|
17 |
subprocess.run(f"ls -lR {OUTPUT_DIR}", shell=True)
|
18 |
|