Croc's World [MacOS] [BitSlicer]

Discussion in 'MacOS Game Hacking' started by erfg12, Nov 9, 2016.

  1. erfg12

    erfg12 Administrator Staff Member

    Joined:
    Oct 20, 2016
    Messages:
    36
    Likes Received:
    4
    Trophy Points:
    8
    Blog User:
    newage
    Arena Points:
    test
    Time increases instead of decreases
    Code:
    #Inject our code
    from bitslicer import VirtualMemoryError, DebuggerError
    
    class Script(object):
        def __init__(self):
            ADDRESS_TO_HOOK_INTO = vm.base() + 0x12EA0 #pointing to some instruction in memory
            self.destinationAddress = vm.allocate()
            self.originalBytes = debug.bytesBeforeInjection(ADDRESS_TO_HOOK_INTO, self.destinationAddress)
            debug.injectCode(ADDRESS_TO_HOOK_INTO, self.destinationAddress, debug.assemble("\n".join(['addss xmm0, [rbp-0x18c]',''])))
        def finish(self):
            debug.writeBytes(ADDRESS_TO_HOOK_INTO, self.originalBytes)
            vm.deallocate(self.destinationAddress)
    
    1 gem is worth 999 points
    Code:
    #Inject our code
    from bitslicer import VirtualMemoryError, DebuggerError
    
    class Script(object):
        def __init__(self):
            ADDRESS_TO_HOOK_INTO = vm.base() + 0x15848 #pointing to some instruction in memory
            self.destinationAddress = vm.allocate()
            self.originalBytes = debug.bytesBeforeInjection(ADDRESS_TO_HOOK_INTO, self.destinationAddress)
            debug.injectCode(ADDRESS_TO_HOOK_INTO, self.destinationAddress, debug.assemble("\n".join(['add dword [rbx+rax], 0x3e7',''])))
        def finish(self):
            debug.writeBytes(ADDRESS_TO_HOOK_INTO, self.originalBytes)
            vm.deallocate(self.destinationAddress)
    
    1 gem = 1 up
    Code:
    #Inject our code
    from bitslicer import VirtualMemoryError, DebuggerError
    
    class Script(object):
        def __init__(self):
            ADDRESS_TO_HOOK_INTO = vm.base() + 0x15866 #pointing to some instruction in memory
            self.destinationAddress = vm.allocate()
            self.originalBytes = debug.bytesBeforeInjection(ADDRESS_TO_HOOK_INTO, self.destinationAddress)
            debug.injectCode(ADDRESS_TO_HOOK_INTO, self.destinationAddress, debug.assemble("\n".join(['add ecx, 999','mov [rbx+rdx], ecx'])))
        def finish(self):
            debug.writeBytes(ADDRESS_TO_HOOK_INTO, self.originalBytes)
            vm.deallocate(self.destinationAddress)
    

    Attached Files:

Share This Page