GithubHelp home page GithubHelp logo

michicho / repackaged-apps-detection Goto Github PK

View Code? Open in Web Editor NEW
22.0 2.0 16.0 51.22 MB

implement some typical repackaged app detection system

Python 54.70% Makefile 0.30% Shell 0.83% q 11.35% E 0.19% C 5.12% C++ 23.00% Java 4.50%

repackaged-apps-detection's Introduction

How to use the ResDroid

  1. we need to download thress tools
  2. apktool
  3. dex2jar
  4. A3E

install the apktool and dex2jar

install jdk, unzip

We also improve the tools Gator to get the Event handler information and each UIs,

You can get the Gator form thw website http://web.cse.ohio-state.edu/presto/software/gator/

  1. we can run the feedQAPKforGator1.py to get the UIs and event handler information

================================================ You can use the default apk files's path or input the path you like! usage: python feedQAPKforGator.py <apk_path> <Output_path> Example : python feedQAPKforGator.py /home/chicho/test/APK /home/chicho/test/Output_path Input : 0 -> default path Input : 1 -> you personal path

when you change the apk files into the IR, you should run the runSootAndroid.py file to get the event handler info and GUI

handlerExtract.sh can extract the event handler

  1. When you download the a3e tools you should put the file createSatg.py into the a3e-master/satg runing the file python createSatg.py you can create the ATG

  2. python calculate_resref.py you can get the statistical resources information

this file needs the other file conf.py you can put these two files in the same directory

when you are running the file calculate_resref.py you can get the statistical results of resources

and these results can be store in the mysql database.

python insertStatis_feature.py you can insert the statistical results into the database.

You should install a mysql databases in your computer. If you do not have any knowledge about database

you can run other files to get the results.

the file ./ResDroid/new/calculate_resref.py

by running this file, all the results will be stores in the files

  1. if you want to use any clustering algorithm. you can find the directory named clustering

You can modify the path of in each algorithm and get the cluster result.

you can run the spectral clustering algorithm in this way:

python SpectralClusering.py

  1. the kd-tree algorithm you can find in the directory.

  2. When you get the statistical resources vector you can run the file python calstatisVecDist.py to calculate the similarity

  3. When you get the AS, you can run the python LCS.py to get the similar score

the more experiment code you can find in the directory name experiment.

repackaged-apps-detection's People

Stargazers

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