IDA sig签名批量脚本

md %1_objs
cd %1_objs
for /f %%i in ('link -lib /list %1') do link -lib /extract:%%i %1
for %%i in (*.obj) do ..\pcf %%i
..\sigamke -n "%1" *.pat %1.sig
if exist %1.exc for %%i in (%1.exc) do find /v ";" %%i>abc.exc
if exist %1.exc for %%i in(%1.exc) do >abc.exc more +2 "%%i"
copy abc.exc %1.exc
del abc.exc
../sigmake -n "%1" *.pat %1.sig
copy %1.sig ..\%1.sig
cd ..
del %1_objs /s /q
rd %1_objs

 

posted @ 2021-09-06 16:26  紅人  阅读(113)  评论(0编辑  收藏  举报