Skip to main content

๐Ÿ”ฉ Hexadecimal Patch Tools

Utilities for patching and searching hexadecimal data.


hex_patchโ€‹

Replaces hex fragments in a file.

ArgumentDescription
OLDHex code to find
NEWNew hex code
FILEFile to patch
hex_patch "74696d65" "00696d65" "/system/bin/testfile"

Searches for hex lines in a file.

ArgumentDescription
-include OPTInclude digits (e.g., "after:10 before:5")
HEXHex code to find
FILEFile to search
hex_search -include "after:10 before:5" "74696d65" "/system/bin/testfile"

hex_checkโ€‹

Checks if a hex fragment exists in a file.

ArgumentDescription
HEXHex code to find
FILEFile to check
if hex_check "74696d65" "/system/bin/testfile"; then ui_print "Found"; fi