Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolving Signature Extraction and Script Generation Issues #26

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Evil0ctal
Copy link

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:

  1. Fallback Signature Handling: Implemented a try-except block in the extract_original_signature() function to handle signature extraction errors. When an error occurs, the function now returns None as a fallback value.
  2. Fallback Value in Script Generation: In the copy_script_temp() function, added a fallback value "FALLBACK_SIGNATURE" for the signature variable. If the extracted signature is None, 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

**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:**

1. **Fallback Signature Handling:** Implemented a try-except block in the `extract_original_signature()` function to handle signature extraction errors. When an error occurs, the function now returns `None` as a fallback value.
2. **Fallback Value in Script Generation:** In the `copy_script_temp()` function, added a fallback value "FALLBACK_SIGNATURE" for the `signature` variable. If the extracted signature is `None`, 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](https://github.com/Evil0ctal/)**
# Resolving Signature Extraction and Script Generation Issues

**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:**

1. **Fallback Signature Handling:** Implemented a try-except block in the `extract_original_signature()` function to handle signature extraction errors. When an error occurs, the function now returns `None` as a fallback value.
2. **Fallback Value in Script Generation:** In the `copy_script_temp()` function, added a fallback value "FALLBACK_SIGNATURE" for the `signature` variable. If the extracted signature is `None`, 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](https://github.com/Evil0ctal/)**
@Evil0ctal
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant