A simple hexdump module for Python.
The preferred installation method is:
pip install simple-hexdump
| /* | |
| Decompiled from GetMeIn: https://forum.xda-developers.com/web-os/general/getmein-one-time-rooting-jailbreaking-t3887904 | |
| tl;dr it scans memory for its own `struct cred` in memory, changes its uid/gids to root. | |
| */ | |
| int __fastcall do_the_patching(uint8_t *a1, unsigned __int8 *creds, int a3, unsigned int a4) | |
| { | |
| int i; // [sp+20h] [bp-Ch] | |
| uint8_t *memptr; // [sp+24h] [bp-8h] |
| #!/usr/bin/python3 | |
| import sys | |
| import os | |
| import signal | |
| PATTERN = b"root:x:0:0:root" | |
| REPLACE = b"root::00:0:root" |
| using System; | |
| using System.IO.Ports; | |
| using System.Threading; | |
| namespace LGTV_BootloaderAccess | |
| { | |
| internal class Program | |
| { | |
| private static void Main(string[] args) | |
| { |
| import idc | |
| import idautils | |
| import idaapi | |
| FUNCTIONS_REGISTERS = {"g_log": "rcx", "g_log_error": "rdx"} | |
| def get_string_for_function(call_func_addr, register): | |
| """ | |
| :param start_addr: The function call address |