GithubHelp home page GithubHelp logo

ios_ssl_sniffer's Introduction

SSL iOS Logger

This utility uses frida in order to sniff plain SSL traffic. It is taken from google's logger https://github.com/google/ssl_logger which is ment to run locally.

Motified by Guy Kaplan to sniff the traffic of an external usb device.

Setup

On the iPhone

https://www.frida.re/docs/ios/#with-jailbreak

Start Cydia and add Frida’s repository by going to Manage -> Sources -> Edit -> Add and enter https://build.frida.re. You should now be able to find and install the Frida package which lets Frida inject JavaScript into apps running on your iOS device. This happens over USB, so you will need to have your USB cable handy, though there’s no need to plug it in just yet.

On Your PC

You have to install frida first.

pip3 install frida frida-tools

Search for the process you want to inject frida onto

frida-ps -U

run the command with

python3 ssl_logger.py [pid]

Make sure your iDevice is connected using USB first.

Changes documentation

First, I changed the line where it was using frida.attach to connect to frida to get the device to attach using USB (can be changed to ssh). Then, it appears that iOS does not use libssl, I discoverd that by using frida-trace -i "*SSL*" -U and saw that the symbools come from a library called libboringssl, so i changed the line where it said libssl to libboringssl, the library itself has a very similar API as libssl, but lacks the call to get FD, (it should be there somewhere, with some name, but it was irrelavant for my need as it was only being used to get IP addresses and ports which I already knew), so I removed the call to SSL_get_fd function.

Then the tweak was ready to run :)

ios_ssl_sniffer's People

Contributors

gkpln3 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ios_ssl_sniffer's Issues

Nothing is logged (iOS 13.2.2)

I'm using frida 14.2.9 (Desktop and iPhone), iOS 13.2.2 and your script commit 809ca47.

Frida provides the PID no problem, but when I start to log the communication and use the app, none of the requests appear.

Do I have an issue with the version I'm using or is the script not compatible with the used iOS/Frida?

Thank you.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.