Giter VIP home page Giter VIP logo

codematch-libdetect's Introduction

LibDetect

LibDetect identifies libraries in Android apps (APK) on the class level and provied a similarity score of the class under analysis and a reference class stored in LibDetect's database.

Precondition

checkout and compile OPAL develop branch (http://www.opal-project.de/)
install OpenSSL (https://www.openssl.org/)
install enjarify (https://github.com/google/enjarify)
install MySQL (https://www.mysql.com/de/downloads/)
execute createDB.sql
configure config.txt

  • set USER_NAME to the user who has access to the androidlib database described in createDB
  • set PASSWD to the password of the user who has access to the androidlib database described in createDB
  • set DB_URL to the url of the internal mysql connection of the androidlib database often it looks like this jdbc:mysql://localhost:3306/androidlib
  • set OPENSSL_EXEC_CMD to the operating-system-dependent oppenssl-command in windows it looks like this cmd /c path/to/the/openssl/command/openssl.exe
  • set OPENSSL_CONF_PATH to the path of the OpenSSL configuration file
  • set ENJARIFY_EXEC_CMD to the execution path of enjarify in windows it looks like this cmd /c path/to/enjarify/command/enjarify.bat

fill the database with all downloaded JARs which were described in LibDetectDatabase.txt LibDetectDatabase.txt is structured in the following way.

  • Files which were downloaded from maven have a maven prefix.
  • Files which were downloaded by a previous google search have a google prefix.
  • Files which were downloaded from Fdroid have a fdroid prefix.
  • Files which were downloaded from a github search have a github prefix.
  • Files which were downloaded via link have a direct link to the source.

After collecting all JAR files, you need to create a file with all JAR file paths and execute LibDetectStandAloneExecutor with the following arguments: write <path/to/list of JAR files>. The second argument should be the path to the previous created list of JAR files.

CodeMatch

CodeMatch extracts libraries, checks the size, checks the author, checks if generated code is used, and compares the similarity score of apps. Thereby CodeMatch uses the algorithms of https://github.com/openpreserve/bitwiser and/or http://publica.fraunhofer.de/documents/N-264291.html While the algorithm of Bitwiser is integrated in CodeMatch, F2S2 is under a license of the Fraunhofer SIT (https://www.sit.fraunhofer.de/) and can be obtained from the authors of the paper http://publica.fraunhofer.de/documents/N-264291.html

codematch-libdetect's People

Contributors

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