detect_rep/tool/ida提取代码段文件.py
2023-04-05 10:04:49 +08:00

12 lines
358 B
Python

import subprocess
import os
import time
from tqdm import tqdm
IDA_PATH=r"D:\tool\IDA 7.0\IDA 7.0\idat64.exe" # IDA path
file_path=r"C:\Users\Administrator\Desktop\test1\bin"
file_list=os.listdir(file_path)
# print(file_list)
for item_file in tqdm(file_list):
subprocess.call([IDA_PATH, "-b", "-B", os.path.join(file_path,item_file)])
time.sleep(0.1)