Giter Site home page Giter Site logo

a24ac1 / frida-scripts-android Goto Github PK

View Code? Open in Web Editor NEW

This project forked from prem1772/frida-scripts-android

0.0 0.0 0.0 25 KB

The Frida script to hook WebView methods in Android.

License: GNU General Public License v3.0

JavaScript 100.00%

frida-scripts-android's Introduction

Frida-Scripts-Android

The Frida script to hook WebView methods in Android. Welcome to Frida-Hooks (Android)

The Frida script hooks one of the LoadURL Method Calls in Android.

In the Frida script Webview-LoadUrl-JSBridge.js the below methods are hooked in the android WebView class :

Frida -U -f package_name -l BB-Observe-parameters.js

WebView loadUrl() : android.webkit.WebView calls to WebView URL parameters and other WebView attributes to enumerate the WebView. setJavaScriptEnabled() : To enumerate if JavaScript Enable. getAllowFileAccess() : To enumerate if JavaScript Enable. getAllowUniversalAccessFromFileURLs() : To enumerate if JavaScript Enable. getAllowFileAccessFromFileURLs() : To enumerate if JavaScript Enable. addJavascriptInterfac() : To enumerate the WebView JavaScript bridge name and Class.

In the Frida script WebView-shouldOverrideUrlLoading.js the below methods are hooked from dynamically enumerated class names in the android to view the return value: shouldOverrideUrlLoading() : Identify the class and the method return value.

In the Frida script WebView-shouldOverrideUrlLoading.js the below methods are hooked in the android class to view the return value: shouldInterceptRequest() : Identify the class and the method return value.

Some useful Frida commands: Installing specific versions of Frida: pip install Frida-tools==1.2.2 pip install Frida==12.2.27

To list running applications in the device. Frida-ps -Uai

Loading Custom Frida Scripts (external JavaScripts): Frida -U -f Test -I Webview-LoadUrl-JSBridge.js

kill Frida on Android ps -e | grep Frida-server kill -9 pid

frida-scripts-android's People

Contributors

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