Giter Club home page Giter Club logo

cydios's Introduction

CydiOS

CydiOS: a model-based testing framework for iOS apps

Demo video

A demo video can be found at https://github.com/SoftWare2022Testing/CydiOS/blob/main/demoVideo/demo.mp4 or https://www.youtube.com/shorts/VeZpY92Fno4

example

Apps used in the experiment

The 50 apps used in the RQ3 can be found at 50appList.txt (https://github.com/SoftWare2022Testing/CydiOS/blob/main/50appList.txt)

iPhone extension

TO run the iPhone extension, we first need a jailbroken iPhone. The software version for iPhone should between 9.0 to 14.4. After jailbreaking, install the Cydia(an unofficial appstore for jailbroken iOS devices), and install some tweaks in the cydia:

  1. OpenSSH
  2. SUbstrate Safe mode
  3. Theos Dependencies

To install our iPhone extension, run the following commands in a termnial window (the computer should connect to the same local netwrok with the iphone ):

cd cydios
make package 
make install

note that

  1. you should specify the bundle ID of the test app in travseiosapp.plist
  2. you should change the ip address of the iPhone in Makefile, like THEOS_DEVICE_IP = 192.168.31.174

once the iPhone extension is installed, you can found it at the cydia, and then you can open the target app for UI testing

example

Static analysis

The static analysis moudle can be found at the static analysis folder. To run it, you need use CrackerXI+ or other tools to decrypt the IPA and then exetract the executable file (i.e., app binary). After that, use scp ipAddressofYouriPhone@location_of_the_binary ./ to transfer the executable file to your PC.

Then, run the following commands in a termnial window and you can see the analysis result:

cd static analysis
./cydios_simulate -m scan -i objc-msg-xref -f location_or_the_test_app_binary -d 'antiWrapper=1'

we also include a python script in the static analysis folder, which performs static data flow analysis on the app binary. You should open it with IDA_pro_64, and import it as an IDA plugin, then you can get the output.

Layout analysis

The code for layout analysis (to extract view controller transitions in the layout files) can be found under the LayoutRead folder,

just run the main.java file.

visitors

cydios's People

Contributors

software2022testing avatar

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.