equifox / instagram-unpinner Goto Github PK
View Code? Open in Web Editor NEWUtility used to patch Instagram APK in order to disable Certificate Pinning protection.
Utility used to patch Instagram APK in order to disable Certificate Pinning protection.
Traceback (most recent call last):
File ".\IG_Unpinner.py", line 311, in <module>
main()
File ".\IG_Unpinner.py", line 295, in main
if apply_patches():
File ".\IG_Unpinner.py", line 252, in apply_patches
if native_ssl_verify_patch(work_dir):
File ".\IG_Unpinner.py", line 209, in native_ssl_verify_patch
return arm32_ssl_verify_patch(project_folder)
File ".\IG_Unpinner.py", line 176, in arm32_ssl_verify_patch
method_offset = hex_string.find("c0f8c8100ab1c0f8cc207047")
TypeError: a bytes-like object is required, not 'str'
Targeting Instagram apk ver 27.0.0.7.97 on ARM, with successful output as show below
> python .\IG_Unpinner.py .\com.instagram.android.apk
********************************************
** Decoding APK file **
********************************************
Running: java -jar C:\Users\Admin\Downloads\Instagram-Unpinner-master\Instagram-Unpinner-master\IG_Unpinner/Tools/apktool.jar d .\com.instagram.android.apk -o C:\Users\Admin\Downloads\Instagram-Unpinner-master\Instagram-Unpinner-master\IG_Unpinner/com.instagram.android -f
I: Using Apktool 2.3.0 on com.instagram.android.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Admin\AppData\Local\apktool\framework\1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Baksmaling classes.dex...
I: Baksmaling classes2.dex...
I: Baksmaling assets/java.com.facebook.exoplayer.common/java.com.facebook.exoplayer.common2.dex...
I: Baksmaling assets/java.com.instagram.business.charts/java.com.instagram.business.charts2.dex...
I: Baksmaling assets/java.com.instagram.business.instantexperiences/java.com.instagram.business.instantexperiences2.dex...
I: Baksmaling assets/java.com.instagram.debug.devoptions/java.com.instagram.debug.devoptions2.dex...
I: Baksmaling assets/java.com.instagram.exoplayer.analytics/java.com.instagram.exoplayer.analytics2.dex...
I: Baksmaling assets/java.com.instagram.exoplayer.service/java.com.instagram.exoplayer.service2.dex...
I: Baksmaling assets/java.com.instagram.gpslocation.impl/java.com.instagram.gpslocation.impl2.dex...
I: Baksmaling assets/java.com.instagram.location.impl/java.com.instagram.location.impl2.dex...
I: Baksmaling assets/java.com.instagram.nux.deviceverification.impl/java.com.instagram.nux.deviceverification.impl2.dex...
I: Baksmaling assets/libraries.fbcore.src.main.java.com.facebook.common.executors/libraries.fbcore.src.main.java.com.facebook.common.executors2.dex...
I: Baksmaling assets/third.party.java.google.play.services.11.0.2.play.services.base.jar/third.party.java.google.play.services.11.0.2.play.services.base.jar2.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
APK Decoded !
======> Instagram 27.0.0.7.97 (84433655) <======
********************************************
** Applying Modifications **
********************************************
==> Prevented Connection Dropping !
==> Disabled SSL Session Validation !
==> Prevented Connection Dropping !
==> Disabled ZeroProtocol Policy !
==> Authorized Any Certificate !
==> Prevented Keystore Initialization !
==> Disabled Native OpenSSL Verification !
All Patches Applied !
********************************************
** Rebuilding APK **
********************************************
Repackaging...
Running: java -jar C:\Users\Admin\Downloads\Instagram-Unpinner-master\Instagram-Unpinner-master\IG_Unpinner/Tools/apktool.jar b C:\Users\Admin\Downloads\Instagram-Unpinner-master\Instagram-Unpinner-master\IG_Unpinner/com.instagram.android -o C:\Users\Admin\Downloads\Instagram-Unpinner-master\Instagram-Unpinner-master\IG_Unpinner/com.instagram.android-UNPINNED.apk
I: Using Apktool 2.3.0
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Checking whether sources has changed...
I: Smaling smali_assets folder into assets.dex...
I: Checking whether sources has changed...
I: Smaling smali_classes2 folder into classes2.dex...
I: Checking whether resources has changed...
I: Building resources...
I: Copying libs... (/lib)
I: Building apk file...
I: Copying unknown files/dir...
Signing...
Running: java -jar "C:\Users\Admin\Downloads\Instagram-Unpinner-master\Instagram-Unpinner-master\IG_Unpinner/Tools/apksigner.jar" sign --ks "C:\Users\Admin\Downloads\Instagram-Unpinner-master\Instagram-Unpinner-master\IG_Unpinner/Tools/UnpinnerKey.jks" --ks-pass pass:Hannah123 --key-pass pass:Hannah123 "C:\Users\Admin\Downloads\Instagram-Unpinner-master\Instagram-Unpinner-master\IG_Unpinner/com.instagram.android-UNPINNED.apk"
Completed !
There's no traffic to be found in mitmproxy, and no connections attempts are made from the app.
The app shows a network error upon attempting login or any other interaction with the API.
APK failing to install, ARM ver 27.0.0.7.97.
Error:
adb install .\com.instagram.android-UNPINNED.apk
adb: failed to install .\com.instagram.android-UNPINNED.apk: Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES: Failed to collect certificates from /data/app/vmdl1311446584.tmp/base.apk: Attempt to get length of null array]
Any idea what is throwing this error and how to fix it?
Hi,
Trying to unpin the latest version of the Instagram APK (v42-0-0-8-95), but there seems to be a problem when the script gets to the native_ssl_verify_patch function, specifically that the method_offset comes back as -1. I'm not sure if this is related to a new verson of libliger.so being used.
Really appreciate the work on this repo, its extremely useful to me so I hope this change can get patched in!
Mike
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.