Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

local_worker package

Project Description

Command line tool for analyzing apk on Android antiviruses.

Requires:

  • adapers package
  • andropilot package
  • avds (with the antivirus installed) inside HOME/.android/avd/

Installation:

  • pip install andrototal-cli –process-dependency-links

Basic usage: andrototal-cli path/of/sample/apk NameOfTheAntivirus

NameOfTheAntivirus: one from the adapters package(there must exist and avd: name.of.the.antivirus inside HOME/.android/avd/)

Example: andrototal-cli malware.apk ComAntivirus

usage: andrototal-cli [-h] [-test-method {install,copy}]
[-log-level {DEBUG,INFO,WARNING,ERROR}] [-window [WINDOW]] [-file-log FILE_LOG] [-max-retries {1,2,3,4}] [-store-device-data [STORE_DEVICE_DATA]] malware_sample antivirus [antivirus …]
positional arguments:
malware_sample path of the apk sample antivirus name of the antivirus

optional arguments:

-h, –help show this help message and exit

-test-method {install,copy}, -t {install,copy}
test method
-log-level {DEBUG,INFO,WARNING,ERROR}, -l {DEBUG,INFO,WARNING,ERROR}
logging level.
-window [WINDOW], -w [WINDOW]
display emulator’s graphical window
-file-log FILE_LOG, -fl FILE_LOG
Redirect logger to file
-max-retries {1,2,3,4}, -m {1,2,3,4}
maximum number of scan retries when a non fatal exceptions occurs
-store-device-data [STORE_DEVICE_DATA], -sd [STORE_DEVICE_DATA]
store device logcat and snapshot in device_data folder

output:

{
‘sample’: {

‘sha256’: ‘1944d8ee5bdda3a1bd06555fdb10d3267ab0cc4511d1e40611baf3ce1b81e5e8’,

‘md5’: ‘77b0105632e309b48e66f7cdb4678e02’,

‘sha1’: ‘4de0d8997949265a4b5647bb9f9d42926bd88191’

},

‘test_count’: 1, ‘success_count’: 1, ‘tests’: [

{

‘status’: ‘SUCCESS’,

‘ended_at’: ‘2016-06-08 14:01:27’,

‘detected_threat’: ‘THREAT_FOUND’,

‘antivirus’: ‘ComAntivirus’,

‘started_at’: ‘2016-06-08 14:00:34’,

‘analysis_time’: 19

}

], ‘failure_count’: 0

}

Release History

Release History

This version
History Node

1.69

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
andrototal_cli-1.69-py2.7.egg (32.8 kB) Copy SHA256 Checksum SHA256 2.7 Egg Oct 19, 2016
andrototal-cli-1.69.tar.gz (12.8 kB) Copy SHA256 Checksum SHA256 Source Oct 19, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting