diff --git a/CHANGELOG.md b/CHANGELOG.md index e598a01..63a6468 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.1.1] - 2023-07-29 + +### Fixed + +- **Native**: Added multi-thread support for base64 conversion. + ## [1.1.0] - 2023-06-27 ### Added @@ -44,6 +50,7 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - Initial Release. +[1.1.1]: https://github.com/hyugogirubato/Frida-CodeShare/releases/tag/v1.1.1 [1.1.0]: https://github.com/hyugogirubato/Frida-CodeShare/releases/tag/v1.1.0 [1.0.3]: https://github.com/hyugogirubato/Frida-CodeShare/releases/tag/v1.0.3 [1.0.2]: https://github.com/hyugogirubato/Frida-CodeShare/releases/tag/v1.0.2 diff --git a/scripts/android-native/native.js b/scripts/android-native/native.js index 7f86ff7..5fe5d3e 100644 --- a/scripts/android-native/native.js +++ b/scripts/android-native/native.js @@ -1,10 +1,10 @@ /**@@@+++@@@@****************************************************************** ** - ** Android Native Interceptor frida script v1.4 hyugogirubato + ** Android Native Interceptor frida script v1.5 hyugogirubato ** ** frida -D "DEVICE" -l "native.js" -f "PACKAGE" ** - ** Update: Added "UUID" support for hex format. + ** Update: Added multi-thread support for base64 conversion. ** ***@@@---@@@@****************************************************************** */ @@ -20,7 +20,6 @@ const FUNCTION = true; // attach functions let index = 0; // color index -const BASE64 = Java.use("java.util.Base64"); const COLORS = { red: '\x1b[31m', green: '\x1b[32m', @@ -113,9 +112,11 @@ const showVariable = (address, colorKey, argIndex = 0, hexValue = false) => { } // Base64 - const byteBuffer = Java.array("byte", byteArrayView); - const base64Data = BASE64.getEncoder().encodeToString(byteBuffer); - console.log(`${colorKey} --> [${argIndex}] Base64: ${base64Data}${COLORS.reset}`); + Java.perform(function () { + const byteBuffer = Java.array("byte", byteArrayView); + const base64Data = Java.use("java.util.Base64").getEncoder().encodeToString(byteBuffer); + console.log(`${colorKey} --> [${argIndex}] Base64: ${base64Data}${COLORS.reset}`); + }); } } }