📚
OpenRCE
is preserved as a read-only archive. Launched at RECon Montreal in 2005. Registration and posting are disabled.
About
Articles
Book Store
Distributed RCE
Downloads
Event Calendar
Forums
Live Discussion
Reference Library
RSS Feeds
Search
Users
What's New
Customize Theme
bluegrey
blackgreen
metal
simple
Flag:
Tornado!
Hurricane!
Login:
Password:
Remember Me
Register
Blogs
>>
kizi
's Blog
Created: Sunday, December 16 2007 09:06.46 CST
Printer Friendly ...
don't work...
Author:
kizi
# Views:
2271
I wrote immdbg python script as follows.
#-----------------------------------------
# hooktest.py
class TestHook( libhook.LogBpHook ):
def __init__( self ):
libhook.LogBpHook.__init__( self );
def run( self, regs ):
ImmDbgr = immlib.Debugger();
ImmDbgr.Log( "Test" );
def main(args):
T = TestHook();
T.add( "TestHook", int( args[0], 16 ) );
return "set hook";
#----------------------------------
copied it to PyCommand,
and, invoked at commandline as "!hooktest 0x412120"
0x412120 is the head address of function that I wanted to hook.
finally i ran the immdbg.
when the above script invoked, it output "Test" in Log window,
and hang up...
what's wrong with me...orz
Blog Comments
adityaks
Posted: Tuesday, December 18 2007 03:54.15 CST
The problem of this kind inherits an element of
Return Value Failure.[b] Usually this kind of behavior is shown when an object does not return the unique value. This means the object is not returned properly.
In multithreading enviornment , this type of problem occurs when number of threads are activated and one out of them perform malfunctioning. Other cause is failure in returning the thread. This is due to cross referential interdependencies of various functional threads in the code.
In your case , it has been oberved that the hook function does not return properly and entangled some where after performing the task.
Another possible cause is [b]Argument Specification
. The passing arguments should be scrutinized properly.
Try to check the Hook functions.One can set practical Debug Checks while
Traversing Hooks
in a code.
Add New Comment
Comment:
There are
31,328
total registered users.
Recently Created Topics
[help] Unpacking VMP...
Mar/12
Reverse Engineering ...
Jul/06
let 'IDAPython' impo...
Sep/24
set 'IDAPython' as t...
Sep/24
GuessType return une...
Sep/20
About retrieving the...
Sep/07
How to find specific...
Aug/15
How to get data depe...
Jul/07
Identify RVA data in...
May/06
Question about memor...
Dec/12
Recent Forum Posts
Finding the procedur...
rolEYder
Question about debbu...
rolEYder
Identify RVA data in...
sohlow
let 'IDAPython' impo...
sohlow
How to find specific...
hackgreti
Problem with ollydbg
sh3dow
How can I write olly...
sh3dow
New LoadMAP plugin v...
mefisto...
Intel pin in loaded ...
djnemo
OOP_RE tool available?
Bl4ckm4n
Recent Blog Entries
halsten
Mar/14
Breaking IonCUBE VM
oleavr
Oct/24
Anatomy of a code tracer
hasherezade
Sep/24
IAT Patcher - new tool for ...
oleavr
Aug/27
CryptoShark: code tracer ba...
oleavr
Jun/25
Build a debugger in 5 minutes
More ...
Recent Blog Comments
nieo
on:
Mar/22
IAT Patcher - new tool for ...
djnemo
on:
Nov/17
Kernel debugger vs user mod...
acel
on:
Nov/14
Kernel debugger vs user mod...
pedram
on:
Dec/21
frida.github.io: scriptable...
capadleman
on:
Jun/19
Using NtCreateThreadEx for ...
More ...
Imagery
SoySauce Blueprint
Jun 6, 2008
[+] expand
View Gallery
(11) /
Submit