• Welcome Guest to the new PlayerSquared! Please be aware the site is a work in progress & we'd appreciate your help in letting us know which features from the old site we're currently missing as well as report any bugs you find via this thread here: Bugs/Missing Features
  • As of today April 26th, 2024 you are only permitted to have 1 shop thread. This means if you have multiple threads for various boosting services you must condense them down into one thread. You will have 1 week from April 26th, 2024 to make this change.
  • If this is your first visit You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. Sign up today to get the latest PS4 GameSaves, Game Mods and much more!
  • If you've previously logged in via'Google or Discord and are now unable to do so you'll need to request a password reset which will be emailed to you via the link here: Lost password

Python Script designed to patch executable libraries

Status
Not open for further replies.

SyrenRemix

Reverse Engineer
STAFF
JIMZO-F
October 25, 2020
400
2,894
93
3,019
LiThdg6.jpg


An accomplished developer from Ireland, has created a python-based tool that streamlines the patching process for arm64 and arm32 architectures. This tool offers a straightforward solution by handling all essential value settings seamlessly. It facilitates modifications of specified offsets within the binary, allowing the retrieval of desired values like boolean true/false, integer zero/max, long zero/64-bit, float/double zero, and void with nop. The tool leverages the powerful radare2 framework and the r2pipe module for efficient binary patching. For installing radare2, refer to the accompanying installation guide. Additionally, the tool includes extensive documentation for every function, ensuring a comprehensive understanding of the codebase and enabling users to explore its capabilities thoroughly.

Moreover,the Python Script addresses potential errors proactively, offering fixes for eight common issues:

  1. Detection of missing radare2 installation.
  2. Detection of missing r2pipe installation.
  3. Check for an active internet connection.
  4. Validation of an empty file path.
  5. Validation of an incorrect file path.
  6. Verification of the file's executability.
  7. Validation of an unsupported architecture.
  8. Verification of invalid offset formats.

Advantages:

  1. User-friendly experience: the lib patcher boasts an intuitive interface, presenting a simple 3-step process that accommodates users of all programming proficiency levels.
  2. Automatic architecture detection: lib patcher intelligently detects the target binary's architecture, eliminating the need for manual intervention. This ensures the accurate application of patches based on the detected architecture.
  3. Simultaneous patching of multiple offsets: lib patcher enables patching of multiple offsets in a single operation. This feature streamlines the process and saves valuable time.

How you can use the script:

  1. Extract the executable library into your directory.
  2. Run the script using the command 'python patcher.py
Sophisticated Python Script
[hide]patch[/hide]

The 'offsets' variable contains different data types and their corresponding offsets in the library. You can customize the patches by adding or removing offsets as needed. The script supports various data types such as boolean values, integers, longs, floats, and void (with a NOP instruction). It's important to note that this script requires a certain level of technical knowledge and expertise to use properly. It is recommended for professional modders who are comfortable working with reverse engineering tools and making changes to executable libraries. Feel free to modify and customize the script based on your specific needs without removing credits that's all I ask. Il2CppDumperGUI is a graphical user interface tool that works in conjunction with the Il2CppDumper script. It helps with the analysis and extraction of metadata and code from IL2CPP (Intermediate Language to C++)-based applications, which are commonly found in Unity-based games and apps.

Here's an explanation of what Il2CppDumperGUI does and how it can be used:

  1. Analysis of IL2CPP files:
  2. - IL2CPP is a Unity-developed technology that converts C# and other managed code into C++ for performance optimization.
  3. - Il2CppDumperGUI analyzes IL2CPP files (usually found in Android or iOS apps) to extract information about the classes, methods, properties, and other metadata present in the application.
  4. Extraction of code and metadata:
  5. - The tool helps extract the IL2CPP binary code and metadata from the target application, allowing you to access and analyze the internal workings of the app.
  6. - It can identify the memory offsets where the code and metadata are stored within the application's executable or shared library file.
  7. Dumping the code for analysis:
  8. - Il2CppDumperGUI facilitates the dumping of the IL2CPP code, which converts the IL2CPP binary into a more human-readable format, typically C# or C++ code.
  9. - The dumped code can then be analyzed and studied to understand the application's logic, reverse engineer certain functionalities, or create mods.
  10. Handling obfuscation and anti-tampering techniques:
  11. - Il2CppDumperGUI is designed to handle various obfuscation and anti-tampering techniques commonly employed in Unity-based applications.
  12. - It helps identify and navigate through obfuscated or encrypted code, making it easier to analyze and understand the application's structure.
  13. Providing a user-friendly interface:
  14. - The GUI interface of Il2CppDumperGUI simplifies the process of using the Il2CppDumper script.
  15. - It allows you to select the IL2CPP executable file, configure extraction options, and initiate the analysis and dumping process using intuitive buttons and menus.
Download Il2CppDumperGUI
Il2CppDumperGUI_2.0.1
Il2CppDumperGUI is a valuable tool for those interested in modding or understanding the inner workings of IL2CPP-based applications. However, it's worth noting that working with IL2CPP requires a certain level of technical knowledge, including familiarity with programming languages like C# or C++, and reverse engineering concepts.

I hope this explanation gives you a good understanding of what the Python Script & Il2CppDumperGUI does. If you want me to make a video on how to use the script I will.
 
Last edited:
Re: New Python Script designed to patch executable libraries

LiThdg6.jpg


This python-based tool was created by myself SyrenRemix, an accomplished developer from Ireland, aims to streamline the patching process for arm64 and arm32 architectures. It offers a straightforward solution by handling all essential value settings seamlessly. This tool facilitates modifications of specified offsets within the binary, enabling the retrieval of desired values like boolean true/false, integer zero/max, long zero/64-bit, float/double zero, and void with nop. Leveraging the powerful radare2 framework and the r2pipe module, lib patcher accomplishes efficient binary patching. To install radare2, please consult the accompanying installation guide. The tool comes with extensive documentation for every function, ensuring a comprehensive understanding of the codebase, and enabling users to delve deeply into its capabilities.

The 'offsets' variable contains different data types and their corresponding offsets in the library. You can customize the patches by adding or removing offsets as needed. The script supports various data types such as boolean values, integers, longs, floats, and void (with a NOP instruction). It's important to note that this script requires a certain level of technical knowledge and expertise to use properly. It is recommended for professional modders who are comfortable working with reverse engineering tools and making changes to executable libraries. Feel free to modify and customize the script based on your specific needs without removing credits that's all I ask. Il2CppDumperGUI is a graphical user interface tool that works in conjunction with the Il2CppDumper script. It helps with the analysis and extraction of metadata and code from IL2CPP (Intermediate Language to C++)-based applications, which are commonly found in Unity-based games and apps.

Il2CppDumperGUI is a valuable tool for those interested in modding or understanding the inner workings of IL2CPP-based applications. However, it's worth noting that working with IL2CPP requires a certain level of technical knowledge, including familiarity with programming languages like C# or C++, and reverse engineering concepts.

I hope this explanation gives you a good understanding of what the Python Script & Il2CppDumperGUI does. If you want me to make a video on how to use the script I will.

Minor Update
x86_64 & x86 No longer supported
Reduced offset change from 4secs to 2secs
 
Last edited:
Status
Not open for further replies.