Spaces:
Sleeping
Sleeping
Commit
·
7d65418
1
Parent(s):
ddf7ec4
dev
Browse files
main.py
CHANGED
|
@@ -10,7 +10,7 @@ def new_binary(file):
|
|
| 10 |
shutil.copy2(file.name, TEMP_DIR)
|
| 11 |
|
| 12 |
# python3 generate.py --ghidra PATH_TO_GHIDRA_ANALYZEHEADLESS -t NUM_THREADS -n [NUM_FILES|None] -b BINARIES_DIR -o OUTPUT_DIR
|
| 13 |
-
output = subprocess.check_output(f"python /DIRTY/dataset-gen-ghidra/generate.py --ghidra /ghidra/support/analyzeHeadless -t 1 -b {TEMP_DIR} -o {OUTPUT_DIR}")
|
| 14 |
print(output)
|
| 15 |
|
| 16 |
|
|
|
|
| 10 |
shutil.copy2(file.name, TEMP_DIR)
|
| 11 |
|
| 12 |
# python3 generate.py --ghidra PATH_TO_GHIDRA_ANALYZEHEADLESS -t NUM_THREADS -n [NUM_FILES|None] -b BINARIES_DIR -o OUTPUT_DIR
|
| 13 |
+
output = subprocess.check_output(f"python /DIRTY/dataset-gen-ghidra/generate.py --ghidra /ghidra/support/analyzeHeadless -t 1 -b {TEMP_DIR} -o {OUTPUT_DIR}", shell=True)
|
| 14 |
print(output)
|
| 15 |
|
| 16 |
|