Shadow Fight 2 [MacOS] [BitSlicer]

Discussion in 'MacOS Game Hacking' started by erfg12, Nov 7, 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
    Add 9999 to fight timer
    Code:
    #Inject our code
    from bitslicer import VirtualMemoryError, DebuggerError
    
    class Script(object):
        def __init__(self):
            ADDRESS_TO_HOOK_INTO = vm.base("/ShadowFight2.s86") + 0x222641 #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, self.originalBytes + debug.assemble("\n".join(['add eax, 9999','mov [esi+0x120], eax'])))
        def finish(self):
            debug.writeBytes(ADDRESS_TO_HOOK_INTO, self.originalBytes)
            vm.deallocate(self.destinationAddress)
    

    Attached Files:

    silverwings and jim7raynor like this.
  2. kelvin

    kelvin New Member

    Joined:
    Nov 8, 2016
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Blog User:
    yungkid123
    Arena Points:
    test
  3. jim7raynor

    jim7raynor New Member

    Joined:
    Jan 24, 2017
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Arena Points:
    test
  4. silverwings

    silverwings New Member

    Joined:
    Mar 27, 2017
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Arena Points:
    test

Share This Page