Giter Club home page Giter Club logo

android-code-injection-test's Introduction

android-code-injection-test

How to start:

  1. Download Android SDK to use adb tools.
  2. Download and install GenyMotion Android Emulator (rooted)
  3. Download frida-server image for Android from https://github.com/frida/frida/releases
  4. Copy frida-server image file to /data/local/tmp/ path of emulator device. (you can use adb push command or just drag & drop the file)
  5. Use adb shell "chmod 755 /data/local/tmp/{frida server file name}" to set proper permissions for frida-server file.
  6. Run frida-server using adb shell "/data/local/tmp/{firda server file name} &" command.
  7. Download and install python 3.7.
  8. Create a python environment and name it what you want, then activate it.
  9. In your env, use pip install frida-tools to install frida python package.
  10. To see if everything works fine, in command line use frida-ps -U. this command will show a list of emulator device processes.
  11. Download and install rps.apk from https://github.com/ctfs/write-ups-2015/blob/master/seccon-quals-ctf-2015/binary/reverse-engineering-android-apk-1/rps.apk
  12. Run rsp app on emulator and then run python ctf.py. you will see the injected code works.

References:
https://frida.re/docs/android/
https://github.com/frida/frida/releases
https://github.com/ctfs/write-ups-2015/blob/master/seccon-quals-ctf-2015/binary/reverse-engineering-android-apk-1/rps.apk
https://book.hacktricks.xyz/mobile-apps-pentesting/android-app-pentesting/frida-tutorial
https://forum.xda-developers.com/t/official-xposed-for-lollipop-marshmallow-nougat-oreo-v90-beta3-2018-01-29.3034811/
https://labs.f-secure.com/tools/drozer/
https://github.com/m9rco/Genymotion_ARM_Translation/blob/master/package/Genymotion-ARM-Translation_for_8.0.zip

android-code-injection-test's People

Contributors

amiroveisi avatar

Watchers

James Cloos 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.