Questions tagged [androguard]

Androguard is mainly a reverse engineering tool written in python to play with : Dex/Odex (Dalvik virtual machine) (.dex) (disassemble, decompilation), APK (Android application) (.apk), Android's binary xml (.xml), Android Resources (.arsc). Androguard is available for Linux/OSX/Windows (python powered).

Androguard is mainly a tool written in python to play with :

Dex/Odex (Dalvik virtual machine) (.dex) (disassemble, decompilation),
APK (Android application) (.apk),
Android's binary xml (.xml),
Android Resources (.arsc). 

Androguard is available for Linux/OSX/Windows (python powered).

More Details

33 questions
5
votes
1 answer

Is there any python package for parsing pkcs7?

I'm extracting features from Android .APK files with androguard and right now I need to extract the serial number(*) from its signature file (usually CERT.RSA). I've found asn1crypto, but I don't quite understand, how to use it with pkcs7. So is…
Gleb Ignatev
  • 105
  • 1
  • 9
3
votes
1 answer

Memory error when using androguard module in Yara Rules

I tried installing Yara 3.8.1 with androguard module. During the installation, I faced this issue, so I applied the patch given by @reox to the androguard.c file and it solved the problem. After that I tried a simple Yara rule with import…
Mehran Torki
  • 977
  • 1
  • 9
  • 37
3
votes
1 answer

Cannot import androguard in python ubuntu 16.04

I have installed the latest androguard in my ubuntu 16.04 LTS os using (apt install androguard). I can get into the shell using "androlyze -s" command. But I cannot import androguard into my python code. For example when I run the test.py file using…
Mahbub
  • 78
  • 10
2
votes
1 answer

What does $ symbol mean in Java/Android API calls?

I am collecting API calls from the source code of Android apps using Androguard. Some of the retrieved API calls have a $ symbol in their call description, such as: Ljava/util/Locale$LanguageRange/ or…
Riddick
  • 29
  • 3
2
votes
1 answer

TypeError: androlyze_main() takes 2 positional arguments but 4 were given

When I use androlyze.py [apk], I receive a Error:TypeError: androlyze_main() takes 2 positional arguments but 4 were given I'm using androguard in mac with python environment, I use "pip3 install androguard" to install androguard, but when I run…
ZhangXu
  • 131
  • 10
1
vote
0 answers

Read APK file from URL in Python 2.7

I am working on a Python Script which reads the APK file which is stored in a folder on the same server on which the Script is running. here is the code I am using: apk_path = "/var/fibo-dev/public/uploads/apks/TvBox-release-signed-latest.apk" apkf…
Amrinder Singh
  • 82
  • 1
  • 1
  • 10
1
vote
1 answer

Get config.xml file of Cordova applications using Androguard

Is it possible to get the config.xml file that is generated by Cordova based applications using Adroguard? I cannot find it under the /res folder and it is not listed in the output of get_files() method. apktool, on the other hand, is able to get…
Chips
  • 117
  • 3
  • 10
1
vote
0 answers

Androguard output truncated

I installed androguard to help me analyze my own apps to verify that proguard is doing its job (like removing Log.* messages.) It works well in general, but I have a problem with commands with long outputs. Two examples are with…
John W
  • 561
  • 1
  • 5
  • 17
1
vote
1 answer

App comparison using androguard

I am working on android malware detection. So I have used Androguard for app analysis(in windows 7). But when I use androsim.py for app comparison it gives "MemoryError". Command Used is : androsim.py -i -c ZLIB -n
vidMath
  • 11
  • 2
0
votes
0 answers

Android Malware Static Analysis - Androguard

TypeError Traceback (most recent call last) /usr/lib/python3.10/codeop.py in call(self, source, filename, symbol) 116 117 def call(self, source, filename, symbol): --> 118 codeob = compile(source,…
0
votes
0 answers

How to extract strings from strings.xml using Androguard?

I need to extract the strings that are stored in the strings.xml file. I've been able to use Androguard to get information from the manifest file but I haven't been able to find a way to extract the strings. from androguard.core.bytecodes.apk…
shifoc
  • 21
  • 1
  • 4
0
votes
0 answers

How to get references of variables in APK?

I'm doing the static analysis on Android APK file. Given the following source code: protected void OkHttpClientCheck() throws IOException { OkHttpClient client = new OkHttpClient(); Request request = new Request.Builder() …
Andrew
  • 1
0
votes
1 answer

How to check for network security config with Androguard in python script

I have an .apk file and want to check wheter the res/xml/network_security_config.xml [1] trusts user supplied certificates. I read into the androguard docuemntation and I think it should be able to do what I want. However I am confused on how to run…
besendorf
  • 75
  • 1
  • 8
0
votes
1 answer

AttributeError: 'EncodedMethod' object has no attribute 'is_external'

I am trying to process one dataset of files (APKs) as present in one of my directory input/ and for output, I can get the final destination in a directory named output/. Here presents the python file code as process_dataset.py. In this file, I am…
0
votes
1 answer

Is there a way to get the parameter value of API call while doing APK static analysis?

I have get the api calls (external methods) of a apk file by androguard,and I also want to get some params value of sensitive apis. Are there some functions or methods for that? or Is there a way to get the parameter value of the API call from smali…
Shail
  • 31
  • 9
1
2 3