Python加载的文件哪里去了?(2)

其实这个标题并不确切,其实应该是ImmDbg调试器加载的文件哪里去了。加载文件脚本还是下面的样子:

"""
(c) Mars Security. 2009-2012
Institute Of Information Serurity From Mars
Email:root@h4ck.ws
U{By obaby. http: //www.h4ck.org.cn}
"""
#sys.path.append("C:\\Program Files\\Immunity Inc\\Immunity Debugger\\Libs")

DESC="""Load Binary file test!"""

import immlib
import immutils
import os

def main(args):
    imm = immlib.Debugger()
    imm.log ("--------------------------------------------------------------------------------" )
    imm.log ("[*] Start Loading file " )
    imm.log ("--------------------------------------------------------------------------------" )
             
    rcFileHandle = open ('C:\\test.bin','rb')
    rcFileData = rcFileHandle.read()
    
    rcFileLength = len(rcFileData)
        
    imm.log ("[*] FileLength is 0x%08x and filedata is loaded at address 0x%08x" %(rcFileLength,id(rcFileData)))    

    imm.log ("[*] Finished Loading " )
    imm.log ("--------------------------------------------------------------------------------" )
        
    return "[*] Data has been Loaded!"


关于这个问题并没有想象的那么复杂,其实是自己脑子短路了。2b了,哈哈。

此时的Python模块并不是独立运行的,而是有ImmDbg调试器直接加载的。打开一个新的调试器挂载ImmDbg调试器进程:

此时到模块 列表就能找到python27.dll模块了,该模块并不是独立运行的,刚开始以为这个模块会独立运行起来其实是傻逼鸟。

现在跟随到上面的得到的那个地址1db19f8就看到熟悉的那段字符串啦。嘎嘎

话说他竟然在这里,太2鸟。嘎嘎 :[

 


分享文章:

猜你喜欢:

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注