Naituw/HackingFacebook
About
Kill Facebook for iOS's SSL Pinning
Web & App DevelopmentMeasured star growth
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- -1
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalHackingFacebook
Bypassing Facebook for iOS's SSL Pinning, allow us to capture decrypted HTTPS request send from Facebook, with tools like Charles.

Description
This repository shows how to kill the certificate pinning in Facebook for iOS without Jailbreak your device.
I've successfully captured decrypted https requests from Facebook with Charles by apply this patch. I tested the currently newest Facebook for iOS version 79.0, this patch may become invalid with newer version.
About
- Inspired by https://github.com/nabla-c0d3/ssl-kill-switch2, https://github.com/nabla-c0d3/ssl-kill-switch2/issues/13
- Contents of
DyldPatcheris created by depoon, the original repo is https://github.com/depoon/iOSDylibInjectionDemo, and an article about this https://medium.com/@kennethpoon/how-to-perform-ios-code-injection-on-ipa-files-1ba91d9438db#.mwx82zyds - The
iResignis modified version of https://github.com/maciekish/iReSign, created by Maciej Swic. I added support for injected libraries. - The Aspects library is created by Peter Steinberger, licensed under MIT, the original repo is https://github.com/steipete/Aspects
Instructions
Update 20170319
I've developed a new tool to finish this steps in more simple way, see:
https://github.com/Naituw/IPAPatch
Original Instructions
Prepare
Facebook_extenstion_removed.ipa- Get decrypted Facebook ipa, wether from a jailbroken device or ipa download site (I'm using ipa downloaded from http://www.iphonecake.com)
- Unzip ipa, Remove
Payload/Facebook.app/Pluginsfolder, which contains App Extensions. - Zip the
Payloadfolder, and rename toFacebook_extenstion_removed.ipa
Inject Code to
Facebook_extenstion_removed.ipaBuild
DyldXcodeProject, make sure the target is selected to real device (NOT iPhone Simulators), copy the result framework's binary file to a folder namedDyldsForInjectionUse the script provide in
DyldPatcher, patch the binary we generated, toFacebook_extenstion_removed.ipa, the patched file is namedFacebook_extenstion_removed-patched.ipacd DyldPatcher ./patchapp.sh Facebook_extenstion_removed.ipa DyldsForInjection
Resign
Facebook_extenstion_removed-patched.ipa- Use the modified version of
iResignto resign the file, the result file isFacebook_extenstion_removed-patched-resigned.ipa, this version will sign the dyld we injected correctly.
- Use the modified version of
Install and Run
- Install
Facebook_extenstion_removed-patched-resigned.ipavia Xcode - Capture HTTPS requests like other apps with
Charles!
- Install
Explore related projects
Loading…