Gencoding/ida_file_cerate.bat

21 lines
474 B
Batchfile
Raw Normal View History

@echo off
2023-12-28 14:10:34 +08:00
setlocal EnableDelayedExpansion
set "IDA_PATH=D:\IDA_Pro_v6.8\idaq.exe"
2023-12-28 14:10:34 +08:00
set "FOLDER_PATH=D:\bishe\Gencoding\train_malware"
set "SCRIPT_PATH=../raw-feature-extractor/preprocessing_ida.py"
2023-12-28 14:10:34 +08:00
set "SAVE_PATH=../train_malware_result/"
2023-12-28 14:10:34 +08:00
for %%f in ("%FOLDER_PATH%\*.*") do (
echo %%f
if /i "%%~xf"==".idb" (
echo Found IDB file: %%f
) else (
echo !time! %%f
%IDA_PATH% -c -A -S"%SCRIPT_PATH% --path %SAVE_PATH%" %%f
)
2023-12-28 14:10:34 +08:00
)
endlocal