Giter Club home page Giter Club logo

crylogger's People

Contributors

lucapiccolboni avatar

Stargazers

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

crylogger's Issues

cryptolog not found

I have reviewed the other two issues about cryptolog, which should be located in /data/data/com.example.aes/cache, (I am using the example app right now) but still didn't figure out how to solve the problem I am facing. I have two problems listed below.

  1. I am using a remote server and could run the emulator successfully. However, while pinning the application, I got stuck on the part "get the ID of the task of the application to pin". There is no output from grep command. Do you have any ideas what could cause this? Why there is no task ID of the app?

Screen Shot 2021-06-06 at 4 20 26 PM

  1. I have omitted the last two steps of the part of pinning the application, and started to run monkey. The automated test was successful.

Screen Shot 2021-06-06 at 4 31 16 PM

But I was not able to find the cryptolog in /data/data/com.example.aes/cache. I have seen "aes.log" in one of the subdirectories (which implies that the app is actually running as expected??):

Screen Shot 2021-06-06 at 4 36 50 PM

and I tried `git status` in android-emu/libcore directory.

Screen Shot 2021-06-06 at 4 47 27 PM

Do you have any suggestions on this or have you been in the similar situation before? I would really appreciate your help!!

Thank you!

How to solve the INSTALL_FAILED_NO_MATCHING_ABIS failure?

I fetched some apks from some Android application stores, but met some problem when installing

---------------adb: failed to install /home/zhang/documents/code/crylogger/scripts/data/apks/com.ss.android.article.news_8.3.3.apk: Failure [INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries, res=-113]

It seems that the problem was caused because it uses the arm binaries.

However, support_for_arm_binaries_on_android_9_and_11_system_images says that

If you were previously unable to use the Android Emulator because your app depended on ARM binaries, you can now use the Android 9 x86 system image or any Android 11 system image to run your app โ€“ it is no longer necessary to download a specific system image to run ARM binaries. These Android 9 and Android 11 system images support ARM by default and provide dramatically improved performance when compared to those with full ARM emulation.

I verified the document by downloading the android 9 and android 11 image from Android Studio, and then ran the Android Studio emulator and installed apk com.ss.android.article.news_8.3.3.apk successfully by running adb install -g com.ss.android.article.news_8.3.3.apk.

It seems that the android 9/11 x86 image could provided ARM compatibility but my compiled crylogger failed to do that.

Have you met the INSTALL_FAILED_NO_MATCHING_ABIS failure? And how do you solve it?
Thanks in advance.

There is no application.cryptolog. in /data/data/com.example.aes/cache/

I followed the instructions in the README and executed the commands in order, but when I reached the 'Collect the logs' step, 'cryptolog | failed' was printed. By looking at the script file, I found the problem was that there was no no application.cryptolog. in /data/data/com.example.aes/cache/, which led to The run_cmd function returns Error, I want to know how to solve it.

Thanks in advance.

image

Analysis gets stuck in pinning step

After few successful apps analysis the process either fails in pinning step or gets stuck in pinning step.

shahab-Precision-T1700 2021-07-12 13-37-44

When the process is stuck in pinning step the emulator displays a blank/white screen

shahab-Precision-T1700 2021-07-12 13-40-53

I think this is a limitation of the emulator itself and may not be solvable from project end. I am wondering if you faced similar issue and if yes, how did you deal with it?

Right now I am restarting the emulator and then re-execute run.py. For a large number of app analysis this is not a suitable solution.

To overcome this, I am planning to execute multiple emulators and parallel the analysis process. Multiple emulators cannot be run from same source I think, I got the following error,

emulator: ERROR: There's another emulator instance running with the current AVD '<build>'. Exiting...

How about I copy crylogger source into multiple location and execute emulators from each of them but pointing work_dir to the same location. Do you foresee any potential issues with this idea? Thanks!

Emulator stops after couple of minutes with segmentation fault (core dump)

I have used a fresh install of Ubuntu 18.04 and and followed the procedure mentioned in readme. When I execute emulator -writable-system, the emulator gets started but stops with Segmentation fault.

I have also tried with macOS but it didn't help. Have you faced any similar issue? If yes, how do you resolve this?

Thanks in advance.

Documentation improvement

Issue 01

Before running the "Emulator Setup" the distutils package is required.

Distutils package is available only for python3 and AOSP requires python 2.7. Still the package is required. Otherwise getting the following error,

no module named distutils.dir_util

Please add the following line in documentaiton,

sudo apt-get install python3-distutils -y

Issue 02

Repo tool is required. Please add the following link in documentation,
https://source.android.com/setup/develop#installing-repo

Additionally,

sudo apt-get install curl -y

Issue 03

sudo apt-get install lzip

Issue 04

sudo apt-get install m4

Issue 05

sudo apt install python-pip -y
pip install zxcvbn
pip install numpy

Issue 06

This repo should be cloned with --recursive flag, otherwise dj-on-github/sp800_22_tests files will not get downloaded.

sudo apt-get install git -y
git clone --recursive https://github.com/lucapiccolboni/crylogger.git

Issue 07

sudo apt-get install cpu-checker
kvm-ok
sudo chown $USER /dev/kvm

I have some question,please help me~~~

I do all the things , but when i install my apk on emulator and run monkey, it told me no souch file "/tmp/application.cryptolog".I found it on deltas\libcore\ojluni\src\main\java\java\security\CRYLogger.java. I can not create that file, so i change the path to "/data/local/tmp/application.cryptolog". Will it works or something else i should do.Please~~~~~help~~~~help~~~~~

How to migrate CRYLOGGER delta to other Android versions?

It seems simply apply the changes in scripts/delta folder to AOSP source code would work. The problem is how to correctly modify current.txt and openjdk_java_files.bp.

Could you provide some advice about how to check the correction of the migration?
By the way, is there any method to only build the changed module and apply the changes instead of building the whole AOSP from scratch ?
Thanks in advance

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.