Esempio n. 1
0
def main(args):
    bp = __import__('bp')

    bp.main(('ws2_32.send+0x90', '#E:\\Desktop\\f**k.py', 'send'))
    bp.main(('ws2_32.recv+0x9A', '#E:\\Desktop\\f**k.py', 'recv'))

    return ''

    global pak
    pak = open(r"E:\Desktop\yx\Hopeless Masquerade\th135.pak", 'rb')
    try:
        fuckfiles()
    except Exception as e:
        imm.log(e)

    debugger.pyresetall()
    return ''

    imm.clearHardbreakpoints()
    imm.deleteBreakpoint(0, -1)

    mod = imm.getModule('09sa.dll')

    # 开始解压代码
    codebase = mod.baseaddress + 0x1000
    imm.setHardwareBreakpoint(codebase, HB_WRITE)
    imm.run()
    imm.deleteHbIndex(0)

    # 解压完成
    imm.setHardwareBreakpoint(imm.getAddress('kernel32.LocalAlloc'),
                              HB_ONESHOT)
    imm.run()
    imm.deleteHbIndex(0)

    oep = mod.baseaddress + 0x165C3
    getaddr = mod.baseaddress + 0x4CCD262
    writeaddr = mod.baseaddress + 0x4D29AD1

    imm.setHardwareBreakpoint(oep, HB_CODE)

    DumpIAT(getaddr, writeaddr)

    imm.erun()

    return ''
Esempio n. 2
0
def main(args):
    bp = __import__('bp')

    bp.main(('ws2_32.send+0x90', '#E:\\Desktop\\f**k.py', 'send'))
    bp.main(('ws2_32.recv+0x9A', '#E:\\Desktop\\f**k.py', 'recv'))

    return ''

    global pak
    pak = open(r"E:\Desktop\yx\Hopeless Masquerade\th135.pak", 'rb')
    try:
        fuckfiles()
    except Exception as e:
        imm.log(e)

    debugger.pyresetall()
    return ''

    imm.clearHardbreakpoints()
    imm.deleteBreakpoint(0, -1)

    mod = imm.getModule('09sa.dll')

    # 开始解压代码
    codebase = mod.baseaddress + 0x1000
    imm.setHardwareBreakpoint(codebase, HB_WRITE)
    imm.run()
    imm.deleteHbIndex(0)

    # 解压完成
    imm.setHardwareBreakpoint(imm.getAddress('kernel32.LocalAlloc'), HB_ONESHOT)
    imm.run()
    imm.deleteHbIndex(0)

    oep = mod.baseaddress + 0x165C3
    getaddr = mod.baseaddress + 0x4CCD262
    writeaddr = mod.baseaddress + 0x4D29AD1

    imm.setHardwareBreakpoint(oep, HB_CODE)

    DumpIAT(getaddr, writeaddr)

    imm.erun()

    return ''
Esempio n. 3
0
def main(args):
    ExportHooks()
    return ""

    global pak
    pak = open(r"E:\Desktop\yx\Hopeless Masquerade\th135.pak", "rb")
    try:
        fuckfiles()
    except Exception as e:
        imm.log(e)

    debugger.pyresetall()
    return ""

    imm.clearHardbreakpoints()
    imm.deleteBreakpoint(0, -1)

    mod = imm.getModule("09sa.dll")

    # 开始解压代码
    codebase = mod.baseaddress + 0x1000
    imm.setHardwareBreakpoint(codebase, HB_WRITE)
    imm.run()
    imm.deleteHbIndex(0)

    # 解压完成
    imm.setHardwareBreakpoint(imm.getAddress("kernel32.LocalAlloc"), HB_ONESHOT)
    imm.run()
    imm.deleteHbIndex(0)

    oep = mod.baseaddress + 0x165C3
    getaddr = mod.baseaddress + 0x4CCD262
    writeaddr = mod.baseaddress + 0x4D29AD1

    imm.setHardwareBreakpoint(oep, HB_CODE)

    DumpIAT(getaddr, writeaddr)

    imm.erun()

    return ""
Esempio n. 4
0
def main(args):
    debugger.pyresetall()
    return 'reset py'
Esempio n. 5
0
def main(args):
    debugger.pyresetall()
    return 'reset py'