One Step to the OEP Method
The so-called one-step OEP shelling method is based on the characteristics of the shelling, looking for the assembly instruction closest to OEP, then the int3 breakpoint, and the dump program when the program goes to OEP.
For example, some compression shells tend to be particularly close to OEP or large jmp. Therefore, using Ollydbg's search function, you can search the shell's feature assembly code to achieve the effect of one step breakpoint to OEP.
要点¶
- ctrl+f find popad
- ctrl+l jumps to the next match
- Find the match, confirm that the shell is ready to jump to the OEP part, then set the breakpoint to run there.
- Only for a very small number of compression shells
example¶
The sample program can be downloaded here: 3_direct2oep.zip
Still use the original notepad.exe to illustrate, after opening with Ollydbg
, we press ctrl+f
to find the specified string, like popad
is a typical feature, some shells are commonly used. Popadto restore state, so search for
popad` as shown below.
In this example, when the searched 'popaddoes not meet our requirements, you can press
ctrl+l` to search for the next match, about three or four times, we found a jump to OEP. Location.
本页面的全部内容在 CC BY-NC-SA 4.0 协议之条款下提供,附加条款亦可能应用。