-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
There is no application.cryptolog. in /data/data/com.example.aes/cache/ #4
Comments
Learn from your previous Issue, I just run the test application that is included in the folder app-test, but it still was error. |
Hi, can you please check if there are other files in the directory |
Yeah, there is file aes.log in the directory /data/data/com.example.aes/, and the content is: |
Ok, great. Can you please go inside the directory |
Thanks! Sorry, but you need to create the emulator by using the method explained in the README. We modified the Java library to print the log. If you use a different emulator, you use the standard Java library and therefore the file |
Okay, thanks for your reply, I will try your method first, and then tell you the result of my attempt |
Little personal suggestion is that u can add this requirement which need to create the emulator as README doing to the supplementary document, so that others wont meet the same problem as above ~~ Great thanks a lot ~~ |
Hi, could you please provide the modified Java library |
Maybe you provided, but I didn't find it, could you please tell me where it is |
Hi, if you build the emulator as explained in the instructions (the emulator you run from the directory |
Many thanks for your reply and guide |
Hi, I think there is some sort of issue with the compilation process.
This re-compiles the emulator. Is the compilation successful? Thanks |
Hi, When I followed your instructions, a new problem occured. Both "./build/envsetup.sh" and "lunch sdk_phone_x86-userdebug" are successful, but when I entered "make", a line of instruction, "failed to build some targets ", appeared. liyuxi@liyuxi-All-Series: ============================================
|
Hi, thank you. The compilation process can be a little complicated because there are several dependencies. In your case, it looks like the error is "error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory". Try to install this library in Ubuntu. Thanks! |
Great! Please make sure you use the following naming convention for your app: |
|
Hi, If I downloaded apps from Google Play Store in emulator, can I test it directly? |
|
Hi, some apps I downloaded successfully, but it can not pin and uninstall. Could you give me some guidance? Many thanks! |
Yes you can run apps from the Google Play Store. However, some apps cannot be run on an emulator for a variety of reasons. Were you able to run these apps manually instead of using the script To debug, when you run an app and something fails you should get a file called |
Many thanks for your patient reply and guidance! |
Hi, can I use “lunch sdk_phone_x86_64-userdebug” or "lunch sdk_phone_armeabi-v7a-userdebug" instead of “lunch sdk_phone_x86-userdebug”? When I downloaded some apps, a line of instruction "Failure [INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries, res=-113]" appeared in the crash.log. |
Yes, you can run apps downloaded from the Google Play Store. If an app fails because of missing libraries, it might not be possible to run it on the emulator. I've never tried the target You might need to increase the number of random events generated with Monkey because usually 100 is too low to execute some cryptographic APIs. If you don't find the log after the execution you can try to execute more events, e.g., 10k. Note that some apps require login credentials, thus it is more difficult to run them with Monkey. |
Excuse me, if the tested apk is of ARM or x86_64 architecture, it may conflict with the architecture of the simulator(Because the emulator we create is x86 architecture.). We all know that for a complete apk, it is more difficult to edit the |
Hi, for many apps you can download the apks that target a specific architecture, e.g., x86. You do not need to reverse engineer the apps and recompile them. Alternatively as you suggested in your previous comment you can change the target architecture. Thanks! |
Hi, If I run apps downloaded from the Google Play Store, what shoule I do to get cryptologs of these apps with CRYLOGGER? |
The process is similar to the app we provided in this repository. The only differences are that you need to download the app from the Google Play Store and change the number of random events. To download a set of apps, I used an apk crawler that used the Google Play Store website to download the APKs. Unfortunately this is no longer available... but you may be able to find something similar that downloads the app for the architecture you want to use. Thanks |
Sorry, I mean what command should I enter. According to the instructions given, I will enter "python run.py --work_dir data --session emulator-", but the apps I downloaded directly from the Google Play Store in the given emulator will not provide an apk file. Many thanks! |
Hi, could you please recommend some apps that you tested successfully? Many thanks! |
Sorry for misunderstanding. The script Regarding the apps, I tested several apps. Please try some of the Google Play Store. If the installation is successful and the app works correctly, you should be able to get the log of the cryptographic APIs. If you don't find the log it means that the app has not been executed for enough time. In one of your previous screenshots, an app was running successfully, please try to extract the log from that one. The log should be in the directory I hope this helps. |
Many thanks for your patient reply and guidance! |
Hi! I also have trouble installing apps from Google Play Store onto the emulator. I have successfully run crylogger on the given example app and am trying to run it to test other top apps from Google Play Store. Here's what I did:
I have tried |
Hi, sorry I've never seen that error message before. I'm not sure what it is going on. Thanks. |
No worries, thank you for you reply! I have tried several times more and it still didn't work. In this case, I am going to try to install Ubuntu and run this on mac to see what happens. |
|
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.
The text was updated successfully, but these errors were encountered: