EquiFox / Instagram-Unpinner

Utility used to patch Instagram APK in order to disable Certificate Pinning protection.
8 stars 3 forks source link

Network error after running Instagram-Unpinner #4

Open GHXST01 opened 6 years ago

GHXST01 commented 6 years ago

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.

GHXST01 commented 6 years ago

Assuming this is an Android 7.0 error. The unpinned APK seems to be working on an Android 6.0 device.

@EquiFox do you happen to have any idea what might be causing this?