代码:
@set ollydbg=c:\olly\ollydbg.exe @set victim=fuckee.exe @tasklist /fi "imagename eq %victim%" /fo "list" | find "PID" > autoattach.lst @for /f "tokens=2" %%i in (autoattach.lst) do echo %%i > autoattach.pid @for /f %%i in (autoattach.pid) do start %ollydbg% -p %%i @del autoattach.lst @del autoattach.pid