mhelwig / apk-anal Goto Github PK
View Code? Open in Web Editor NEWAndroid APK analyzer based on radare2 and others.
License: GNU Lesser General Public License v3.0
Android APK analyzer based on radare2 and others.
License: GNU Lesser General Public License v3.0
I received an unable to find magic library
exception every time I ran the script. It was because I didn't have the magic library libmagic
. I ran a brew install libmagic
and it worked. It would be wise to include that in the README
[*] Opening dexfile with radare2...
Traceback (most recent call last):
File "apk-anal/apk-anal.py", line 305, in <module>
print_results(rootresults,{"found":"\n[*] Possible root detection found in %s:","not_found":"\n[*] No signs of root detection in %s"},r2p)
File "apk-anal/apk-anal.py", line 173, in print_results
for key,result in analysis_results.iteritems():
AttributeError: 'dict' object has no attribute 'iteritems'
Hey o/
Just a small tips regarding the usage of r2pipe, prefer cmdj
that returns json to cmd
parsing example:
https://github.com/mhelwig/apk-anal/blob/master/apk-anal.py#L77
r2.cmdj("axtj @ " + address")
aflj
, izzj
, iij
, isj
, icj
while trying to analyse one my undetected apk's , I got this output. Can you tell me what is wrong?
PS: I was able to successfully analyse an different apk.
yasin@45:~/user/programs/apk-anal$ python apk-anal.py --extended --apktool /usr/local/bin/apktool.jar ../../undetected/apks/03a6110fbca9993ef590118d3c1c6275b5638892a59ace3c9b24c58b3fbe845e.apk
### APK-Anal - Android APK Analyzer (by @c0dmtr1x) ###
[*] Extracting to: /home/yasin/user/programs/apk-anal/apk-extracted
[*] Extracting APK file as zip
[*] Disassembling apkfile with apktool:
Exception in thread "main" brut.androlib.AndrolibException: Multiple res specs: attr/a
at brut.androlib.res.data.ResTypeSpec.addResSpec(ResTypeSpec.java:78)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:256)
at brut.androlib.res.decoder.ARSCDecoder.readTableType(ARSCDecoder.java:217)
at brut.androlib.res.decoder.ARSCDecoder.readTableTypeSpec(ARSCDecoder.java:153)
at brut.androlib.res.decoder.ARSCDecoder.readTablePackage(ARSCDecoder.java:115)
at brut.androlib.res.decoder.ARSCDecoder.readTableHeader(ARSCDecoder.java:77)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:47)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:555)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:72)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:64)
at brut.androlib.Androlib.getResTable(Androlib.java:64)
at brut.androlib.ApkDecoder.setTargetSdkVersion(ApkDecoder.java:193)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:102)
at brut.apktool.Main.cmdDecode(Main.java:163)
at brut.apktool.Main.main(Main.java:81)
Traceback (most recent call last):
File "apk-anal.py", line 254, in <module>
output = subprocess.check_output(["java", "-jar", apktool, "d", apkfile, "-o", smali_dir])
File "/usr/lib/python2.7/subprocess.py", line 573, in check_output
raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '['java', '-jar', '/usr/local/bin/apktool.jar', 'd', '../../undetected/apks/03a6110fbca9993ef590118d3c1c6275b5638892a59ace3c9b24c58b3fbe845e.apk', '-o', '/home/yasin/user/programs/apk-anal/apk-extracted/smali']' returned non-zero exit status 1
yasin@45:~/user/programs/apk-anal$
Search terms should be made configurable.
Users should be able to load their own search terms for methods / strings etc without modifying the script, so create an command line option to load custom search strings via JSON configuration file.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.