📄 pecompact oep finder.txt
字号:
var helper //set variables for use
var csection
var csize
gmi eip, CODEBASE // get base of code
mov csection,$RESULT // save base of code to csection
gmi eip, CODESIZE // get code-size
mov csize,$RESULT // mov code-size to csize
mov helper,eip // set helper-variable to eip
inc helper // increase helper-variable
mov helper,[helper] // mov helper-variable to the eax-value (B8XXXXXX)
go helper // execute Olly till we reach this adress
rtr // step till we hit a ret-instruction
bprm csection,csize // set a memory-breakpoint on code-section
cob // break if we hit breakpoint
run // run
bpmc // clear memory-breakpoint
sto // step to next instruction
findop eip,#FFE0# // find "JMP EAX"
go $RESULT // execute till "JMP EAX"
sto // step to OEP (EAX-value)
msg "OEP found!" // print message
ret // end script
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -