Areizen / Android-Malware-Sandbox

Android Malware Sandbox
Apache License 2.0
280 stars 54 forks source link

error in run js file #3

Closed Kaizan-wyl closed 4 years ago

Kaizan-wyl commented 4 years ago

Error: Cannot find module '@babel/plugin-transform-runtime' from '/root/andoid_tmp/git_android/Android-Malware-Sandbox' while parsing file: /root/andoid_tmp/git_android/Android-Malware-Sandbox/frida_scripts/agent.js at Function.resolveSync [as sync] (/usr/local/lib/node_modules/frida-compile/node_modules/resolve/lib/sync.js:89:15) at resolveStandardizedName (/usr/local/lib/node_modules/frida-compile/node_modules/@babel/core/lib/config/files/plugins.js:101:31) at resolvePlugin (/usr/local/lib/node_modules/frida-compile/node_modules/@babel/core/lib/config/files/plugins.js:54:10) at loadPlugin (/usr/local/lib/node_modules/frida-compile/node_modules/@babel/core/lib/config/files/plugins.js:62:20) at createDescriptor (/usr/local/lib/node_modules/frida-compile/node_modules/@babel/core/lib/config/config-descriptors.js:154:9) at items.map (/usr/local/lib/node_modules/frida-compile/node_modules/@babel/core/lib/config/config-descriptors.js:109:50) at Array.map () at createDescriptors (/usr/local/lib/node_modules/frida-compile/node_modules/@babel/core/lib/config/config-descriptors.js:109:29) at createPluginDescriptors (/usr/local/lib/node_modules/frida-compile/node_modules/@babel/core/lib/config/config-descriptors.js:105:10) at alias (/usr/local/lib/node_modules/frida-compile/node_modules/@babel/core/lib/config/config-descriptors.js:63:53) code: 'MODULE_NOT_FOUND', filename: '/root/andoid_tmp/git_android/Android-Malware-Sandbox/frida_scripts/agent.js',

Areizen commented 4 years ago

Hi, you must install the javascript dependencies by doing npm install

Kaizan-wyl commented 4 years ago

thank you for your advice,it's ok, but when I run "python main.py abc.apk",the reporting contains a little infomation, especially not contains android system api

Areizen commented 4 years ago

Hi, I recommend you to look at the data collected in the sqlite file since the reporting is a work in progress and I did not add a lot of information in it. Beside, I advice you if the data you want is not in the sqlite file ( Api call etc ) to create your own plugin.

Kaizan-wyl commented 4 years ago

I try to search database or files in SQLite, I just find android system structures(ex: com.android.dialer) in my ubuntu /data/data (adb shell) , but I don't find any apk package. I think if else my computer enviroments is not match with your project

Areizen commented 4 years ago

in config/config.ini you can definethe database where the result of the analysis will be stored. Try opening it with sqlitebrowserand you'll be able to see all the strings manipulated by your apk.