Resolving Signature Extraction and Script Generation Issues #26
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Commit Message:
This commit addresses signature extraction and script generation issues in the
patch_apk.py
script, ensuring successful operation with both modded and original APKs.Changes Made:
extract_original_signature()
function to handle signature extraction errors. When an error occurs, the function now returnsNone
as a fallback value.copy_script_temp()
function, added a fallback value "FALLBACK_SIGNATURE" for thesignature
variable. If the extracted signature isNone
, the script now uses the fallback value to proceed with script generation.Testing:
Tested the modified code using both modded and original APK files. The Frida script was successfully executed, and SSL pinning bypassed as expected in both cases.
Recommendations:
While the fallback signature enables script generation, it may not match the original APK signature. Users are advised to obtain unmodified APKs from reliable sources for accurate patching.
Note:
These changes ensure the script can handle modded APKs and still function with unmodified APKs. Should there be any further issues or requirements, consider exploring specialized tools or additional adjustments tailored to specific APKs.
Commit Author:Evil0ctal