Giter VIP home page Giter VIP logo

apk-anal's Issues

Installing libmagic on OSX

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

AttributeError

[*] 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'

Got issue with brut.androlib.AndrolibException for an APK

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$ 

Configurable search terms

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.

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.