Giter Site home page Giter Site logo

analyzer-client's Introduction

ACLI - Analyzer Commad Line Interface

Command line utility to use Deep Discovery Analyzer Web API

Parameters

Each parameter can be provided in three ways:

  1. Configuration file config.yaml. Acli seeks for this file in its current folder
  2. Environment variables
  3. Command line parameters
YAML option
Command line
Env variable
Description
url
--url
url ACLI_URL
Analyzer address
api_key
---api_key
ACLI_API_KEY
Analyzer API key
ignore_tls_errors
--ignore_tls_errors
ACLI_IGNORE_TLS_ERRORS
Ignore TLS errors
client_id
--client_id
ACLI_CLIENT_ID
Client ID. Unique UUID for each submitter. After registering should be saved for future requests
sha1
--sha1
ACLI_SHA1
SHA1 hash of requested file
filename
--filename
ACLI_FILENAME
Path to file

Any combination of parameters can be used with acli. For example, creating following configuration file (config.yaml):

url: https://192.168.32.100
ignore_tls_error: true
client_id: 12341234-1234-1234-1234-123412341234

Following command can be used t ogenerate report (example for Linux command line):

ACLI_API_KEY=12341234-1234-1234-1234-123412341234 ./acli report_raw --sha1 492bafdaa3cc57ffc8e0d7928d1d25a37d7d6d13

In this example url, ignore_tls_error, and client_id are taken from configuration file; api_key from environment variable and sha1 from command line.

Note: If same parameter is provided in two ways, command line parameters have higher priority than environment variable and the latter, higher priority than configuration file.

Testing Connection

Test connection to Analyzer

Required parameters: url, api_key

acli test_connection <options>

Register

Add client to Analyzer submitters list

Required parameters: url, api_key, client_id

acli register <options>

Unregister

Remove client from Analyzer submitters list

Required parameters: url, api_key, client_id

acli unregister <options>

Submit

Submit file to Analyzer for analysis

Required parameters: url, api_key, client_id, filename

acli submit <options>

Brief Report

Get sample status and its risk level

Required parameters: url, api_key, client_id, sha1

acli brief_report <options>

Report Raw

Get analysis result report in XML format

Required parameters: url, api_key, client_id, sha1

acli report_raw <options>

analyzer-client's People

Contributors

mpkondrashin avatar

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.