ODbgScript
脚本可以更加灵活的控制OllyDBG
,以下根据《加密与解密(第三版)》ISO的第二章和官方文档而写。相关文件:OllyScript
《加密与解密》的光盘中的OllyDBG
自带ODbgScript
插件,这里使用ODbgScript的1.82版本。参看ODbgScript入门系列.chm和ODBGScript.chm给出下面的ODbgScript
和注释
。
cmp $VERSION,"1.60"
;jae jump if above or equal
jae ver_ok
msg "error"
ret
ver_ok:
;msg "ok"
var entry
;bp 0100137B
alloc 1000
log $RESULT
free $RESULT,1000
gpa "GetDlgItemTextA","user32.dll"
;GPA proc, lib, [0,1] Get the address of the specified procedure in the specified library
bp $RESULT
log $RESULT
;esto
;Executes SHIFT-F9 in OllyDbg. Run with Ignore Exceptions e run
;Shift+F9 Pass exception to standard handler and run
bc $RESULT
;GMI addr, info
;Get information about a module to which the specified address belongs.
; MODULEBASE, MODUL