Flag: Tornado! Hurricane!

Error: Authentication required to access requested resource.

 Forums >>    >> 

Topic created on: by .


  sagar     October 29, 2009 07:37.35 CDT
Another test that showed strange behavior importing gtk module is this:

- open the immunity debugger python shell
- import gtk
- close the shell window

If you just try to open the shell, the whole debugger hangs...and you have to kill the process.

gtk module must be doing something strange...

  hockeyhater   November 4, 2011 08:05.49 CDT
Hello there, it occurs to me, that a very possible fix to this is, keep up with the hockey, bro.


> sagar: Hi everybody,
> I\'m having a strange problem with immunity debugger v1.73
>
> I have a simple script that I run:
>
> import immlib
> import gtk
>
> def main():
>     imm = immlib.Debugger()    
>     imm.Log(\"Testing import gtk...\")  
>     imm.Log(\"GTK = %s\" % str(gtk))
>    
> if __name__==\"__main__\":
>     pass
>

>
> This works fine the first time I run it (ALT + F3)
> I doesn\'t show anything abnormal.
>
> But if I run the script a second time, I get this error message:
>
> Traceback (most recent call last):
> File \"C:\\Program Files\\Immunity Inc\\Immunity Debugger\\PyScript\\TestGTK.py\", line 3, in <module>
>   import gtk
> File \"./Libs\\immutils.py\", line 89, in __MOSDEFimport__
>   return sys.modules[\'__builtin__\'].__import__orig(*args)
> File \"D:\\Python25\\Lib\\site-packages\\gtk-2.0\\gtk\\__init__.py\", line 50, in <module>
>   import gdk
> File \"./Libs\\immutils.py\", line 89, in __MOSDEFimport__
>   return sys.modules[\'__builtin__\'].__import__orig(*args)
> ImportError: No module named gdk
>

>
> I have tried deactivating the MOSDEFimport hook inside immutils.py but the same error happens.
> The strange thing is that it seems to happen only with gtk module. I\'m able to import other external modules without problems.
> If I try to run the script a third time, then the debugger fails and closes.
>
> The weird thing is that the first time works ok... I\'m able to create windows and use gtk module, but only once.
>
> I\'ve tried to modify the immutils.py to import gtk module and add a function that simply returns that module object. Then I changed my simple script to import immutils and use that function instead of importing gtk, and the first time it works, but the second time the gtk module it is not defined...
>
> Any ideas?
>
> Regards,
>
> Sagar

Note: Registration is required to post to the forums.

Active in Last 5 Minutes
waleedassar

There are 28,224 total registered users.


Recently Created Topics
Reverse Engineering ...
Jan/23
Career: DoD Agency I...
Jan/22
"Disappearing&q...
Jan/17
Career: Software Sec...
Jan/11
Where is the call st...
Jan/07
IDA Pro 6.1 Breakpoi...
Jan/01
How to create data s...
Dec/30
can i search all mod...
Dec/23
IDA symbol table exp...
Dec/20
An anti-attach trick
Dec/17


Recent Forum Posts
Reverse Engineering ...
NirIzr
"Disappearing&q...
NirIzr
Reverse Engineering ...
charlie
"Disappearing&q...
charlie
An anti-attach trick
Bass
An anti-attach trick
waleeda...
An anti-attach trick
Bass
An anti-attach trick
waleeda...
An anti-attach trick
Bass
Looking for value in...
NirIzr


Recent Blog Entries
cmathieu
Feb/07
Hacker Carnival

waleedassar
Feb/06
OllyDbg v1.10 And Hardware ...

waleedassar
Jan/31
Yet Another Anti-Debug Trick

RolfRolles
Jan/22
Finding Bugs in VMs with a ...

waleedassar
Jan/13
An OllyDbg Bug Disables Sof...

More ...


Recent Blog Comments
waleedassar on:
Feb/07
OllyDbg v1.10 And Hardware ...

NirIzr on:
Feb/07
OllyDbg v1.10 And Hardware ...

NirIzr on:
Feb/05
Yet Another Anti-Debug Trick

trolotou on:
Feb/05
Doudoune Moncler -Pennies F...

waleedassar on:
Feb/01
Yet Another Anti-Debug Trick

More ...


Imagery
SoySauce Blueprint
Jun 6, 2008

[+] expand

View Gallery (11) / Submit