- UID
- 2198
注册时间2005-6-29
阅读权限255
最后登录1970-1-1
副坛主
该用户从未签到
|
md %1_objs
cd %1_objs
for /F %%i in ('link -lib /list %1.lib') do link -lib /extract:%%i %1.lib
for %%i in (*.obj) do upcf %%i
sigmake -n"%1.lib" *.pat %1.sig
/* 以下四行来删除 exc 文件
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.lib" *.pat %1.sig
copy %1.sig ..\%1.sig
cd ..
del %1_objs /s /q
rd %1_objs
1. // 检查lib文件中所有的obj文件
link -lib /list %1.lib
C:\bin>C:\link -lib /list dscert.lib dscert.obj
2. // 提取lib文件中的某个obj文件
C:\bin>link -lib /extract:build\intel\st_obj\_ctype.obj libc.lib
3. OBJ -> PAT
C:\bin>upcf _ctype.obj
_ctype.obj: skipped 0, total 15
4. maklib PAT->SIG
sigmake -n dscert.pat d.sig
5. // Cracked Addr:
0040132C /$ 55 PUSH EBP ; retn |
|