Code Monkey home page Code Monkey logo

apkinspector's People

Contributors

erev0s avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

apkinspector's Issues

Fails to decode string from manifest

Probably sample have some anti-analysis tricks.
infected.zip (password: infected)

~ apkInspector -m -apk /tmp/0070BC10699A982A26F6DA48452B8F5E648E1E356A7C1667F393C5C3A1150865.apk
apkInspector Version: 1.1.8
Copyright 2023 erev0s <[email protected]>

Traceback (most recent call last):
  File "/usr/bin/bin/apkInspector", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/bin/lib/python3.11/site-packages/cli/apkInspector.py", line 109, in main
    manifest = get_manifest(extracted_data)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/bin/lib/python3.11/site-packages/apkInspector/axml.py", line 645, in get_manifest
    manifest_object = ManifestStruct.parse(raw_manifest)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/bin/lib/python3.11/site-packages/apkInspector/axml.py", line 469, in parse
    string_pool = StringPoolType.parse(file)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/bin/lib/python3.11/site-packages/apkInspector/axml.py", line 191, in parse
    string_data = cls.read_strings(file, string_offsets, string_pool_header.strings_start, is_utf8)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/bin/lib/python3.11/site-packages/apkInspector/axml.py", line 169, in read_strings
    content = cls.decode_stringpool_mixed_string(file, is_utf8)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/bin/lib/python3.11/site-packages/apkInspector/axml.py", line 128, in decode_stringpool_mixed_string
    u16len = struct.unpack('<H', file.read(2))[0]
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
struct.error: unpack requires a buffer of 2 bytes

Tag the source

It would be very helpful if you could tag releases as well. This would enable distributions who want to run your tests to fetch the package from GitHub instead of PyPI, where the tests are excluded.

Thanks

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.