GithubHelp home page GithubHelp logo

memoeb_docker's Introduction

memoeb_docker

Initial MacOS set-up:

We need to use VirtualBox docker-machine image instead of desktop Docker client to forward USB device and attach to mobile process inside container (rephrase).

  1. Install VirtualBox >= 6.20

  2. Collect and install VirtualBox Extension Pack for your VirtualBox version, we need it for USB 2.0 support: https://download.virtualbox.org/virtualbox/6.0.20 (just change 6.0.20 in url to your version to catch a correct one).

  3. Install docker-machine

Command:

brew install docker-machine

  1. Generate docker VM

Command:

docker-machine create -d virtualbox default

  1. Now you need to stop docker machine to enable correct USB settings

Command:

docker-machine stop

  1. Enable USB 2.0

Command:

vboxmanage modifyvm default --usbehci on

  1. Start docker-machine

Command: docker-machine start

  1. Find ProductID and VendorID for your device

Command:

vboxmanage list usbhost

  1. Add your device using ProductID and VendorID from previous step

Command:

vboxmanage usbfilter add 0 --target default --name 'Nexus' --vendorid YOUR_vendorid --productid YOUR_productid

  • You can also do it through VirtualBox GUI on USB settings tab.
  1. Enable docker environment:

Command:

eval "$(docker-machine env default)"

  • Your VirtualBox image name might be different from "default" if you changed it on step 4.
  1. Pull the image

Command:

docker pull hd421/memoeb:tmp

After docker set-up:

If you are already configured docker-machine (as described in previous section). Each time you restart docker-machine there is one command to be used:

docker-machine start

eval "$(docker-machine env default)"

Launch:

Mac without USB-C

Command:

docker run --rm -it --privileged -v /dev/bus/usb:/dev/bus/usb --device=/dev/bus/usb:/dev/bus/usb:rwm CONTAINER_ID_HERE

New Mac with USB-C

Command:

docker run --rm -it --privileged -v /dev/bus/usb:/dev/bus/usb --device=/dev/ttyUSB0 CONTAINER_ID_HERE

iOS:

Commands:

lsusb (check that you see your attached device)

usbmuxd -f --verbose & (press "Trust" on your phone)

frida-ps -Uai (make sure you see your apps list)

source /usr/local/rvm/scripts/rvm (enable RVM)

Inside /home/memoeb_v2:

ruby app.rb 'AppName' -d (start dynamic analysis)

Android:

Commands:

lsusb (check that you see your attached device)

adb devices (Make sure ADB is enabled in device settings and press "Allow USB debugging")

frida-ps -Uai (make sure frida-server is running on your device)

source /usr/local/rvm/scripts/rvm (enable RVM)

Inside /home/memoeb_v2:

ruby app.rb 'bundle.id.here' -d (start dynamic analysis)

TODO:

  • Linux initial set-up walkthrough
  • Tool usage examples
  • Conference links
  • List of installed components inside container

memoeb_docker's People

Contributors

hd421 avatar

Stargazers

 avatar

Watchers

 avatar  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.