Lep's World 2 [MacOS] [BitSlicer]

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

  1. erfg12

    erfg12 Administrator Staff Member

    Joined:
    Oct 20, 2016
    Messages:
    34
    Likes Received:
    3
    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 = 0x100050B4C #pointing to some instruction in memory
            self.destinationAddress = vm.allocate()
            self.originalBytes = debug.bytesBeforeInjection(ADDRESS_TO_HOOK_INTO, self.destinationAddress)
            debug.writeBytes(ADDRESS_TO_HOOK_INTO, debug.assemble('inc edx'))
        def finish(self):
            debug.writeBytes(ADDRESS_TO_HOOK_INTO, self.originalBytes)
            vm.deallocate(self.destinationAddress)
    
    Throwing nuts increases quantity
    Code:
    #Inject our code
    from bitslicer import VirtualMemoryError, DebuggerError
    
    class Script(object):
        def __init__(self):
            ADDRESS_TO_HOOK_INTO = 0x100053829 #pointing to some instruction in memory
            self.destinationAddress = vm.allocate()
            self.originalBytes = debug.bytesBeforeInjection(ADDRESS_TO_HOOK_INTO, self.destinationAddress)
            debug.writeBytes(ADDRESS_TO_HOOK_INTO, debug.assemble('inc dword [rbx+rax]'))
        def finish(self):
            debug.writeBytes(ADDRESS_TO_HOOK_INTO, self.originalBytes)
            vm.deallocate(self.destinationAddress)
    

    Attached Files:

Share This Page