Jump to content

CmP

Contributor
  • Posts

    663
  • Joined

  • Last visited

  • Days Won

    49

Files posted by CmP

  1. Embed libraries finder

    This script consists of a module (Lua code organized in certain way) for finding addresses of native libraries that are loaded directly from apk (which is the case when android:extractNativeLibs manifest attribute is set to "false") and several examples of how to use the module. The script works only for 64-bit processes.
    Finding name of libraries in the script is implemented by checking soname of memory regions that are loaded from apk (including splits), contents of which resemble library in ELF format. Libraries that don't have soname specified won't be found by the script. Though, typically, main libraries of interest in games have soname specified, so the script should be applicable in most cases when libraries are loaded directly from apk. If a library has soname specified, but the script doesn't find it, generate debug log (example 3 from the file) from attempt to find the library and include it in the comment with report of the issue.

    300 downloads

       (0 reviews)

    0 comments

    Updated

  2. Tagged pointers helper

    This script addresses GG not supporting tagged pointers natively by providing two features (going to pointer and searching pointers) that work for both regular and tagged pointers. Additionally, pointer search supports searching pointers for multiple targets at once.
    Script is used by selecting item(s) for desired operation in any of GG interface tabs and pressing "Sx" button to invoke script menu and choose the operation.
    Credits:
      - @BadCase - for method of searching for tagged pointers to multiple targets at once.

    207 downloads

       (0 reviews)

    0 comments

    Submitted

  3. Search results auto backup

    This script is a helper tool that automatically saves previous search results list so that it can be restored later.
    How to use:
    1. Start the script.
    2. Enter maximal count of saved results.
    3. Perform the searches or any other results list modifications until you need to restore previous results list.
    4. Activate script menu by pressing floating button with "Sx" text. This video can help to locate the button: https://gameguardian.net/forum/gallery/image/618-900-added-ui-button-for-scripts-gameguardian/
    5. Choose "Yes" to restore saved results list / choose "No" or cancel the dialogue to continue script execution / choose "Exit" to terminate the script.

    2,294 downloads

       (1 review)

    0 comments

    Updated

  4. Error handling for GG API functions template

    Note:
      This file is intended to be used by script developers.
      If you don't develop scripts or don't know what it is, ignore this file.
    Description:
      The file consists of three functions:
        - "attachHandler" function modifies a function in a way that when it returns a string, specified error handling function is called with that string as argument. It returns modified version of the function. This function should only be used on functions that return a string with error description when an error occurs. There is a list of such functions from GG API in the file.
        - "defaultHandler" function is an example of error handling function.
        - "testError" function (commented by default) "simulates" a function that has returned a string with error description, used for testing.
    How to use:
      1. Include contents of the file at the beginning of your code.
      2. Optionally create custom error handling functions. Error handling function has to accept 1 argument - a string with error description.
      3. Use "attachHandler" function to get modified version of the function and either redefine original function with it or store it in a new variable.
      4. Repeat step 3 for all desired functions.
    Examples: 
    -- Custom error handling function local function myHandler(errorText) gg.toast('Whoops, looks like something went wrong', true) gg.toast('Mysterious error: ' .. errorText) print('Description of the error that has occurred during script execution:\n' .. errorText) end -- Using default error handling function and redefining the original function gg.searchNumber = attachHandler(gg.searchNumber, defaultHandler) -- Using custom error handling function and storing modified function in a new variable local getResultsModified = attachHandler(gg.getResults, myHandler) -- If an error occurs, "defaultHandler" function will be called gg.searchNumber('123', gg.TYPE_DWORD) -- If an error occurs, no error handling function will be called local results1 = gg.getResults(100) -- If an error occurs, "myHandler" function will be called local results2 = getResultsModified(100)

    715 downloads

       (1 review)

    0 comments

    Updated

  5. Monitor saved values

    This script is intended for tracking changes of the values in the saved list. It will output details (time, name of saved list element, it's address, old value, new value) of recorded changes in a convenient form when user decides to finish monitoring.

    1,499 downloads

       (0 reviews)

    0 comments

    Updated

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.