Skip to main content

Builder for Agent Plugins.

Project description

Agent Plugin Builder

A package which with a help of infectionmonkey/agent-builder and infectionmonkey/plugin-builder Docker images, builds an Agent Plugin archive which can be installed in Monkey Island and used in the simulation over your network.

It uses an Python Docker API client to connect to your local Docker environment and run with the mentioned Docker Images needed docker commands.

Getting started

Installation

Install Agent Plugin Builder with pip install .

Running Agent Plugin Builder

After installation, if pip installed it somewhere in your $PATH Agent Plugin Builder can be started by simply invoking:

build_agent_plugin <PLUGIN_PATH>

where:

Required:
    PLUGIN_PATH: The path where you have the Agent Plugin code.

Optional:
    -b/--build-dir-path: The path where all needed build artifacts will be stored.
    If the directory is not empty, it will delete it using `shutil.rmtree`
    Default: <current_working_directory>/build

    -d/--dist-dir-path: The path where resulting Agent Plugin archive will be stored.
    Default: <current_working_directory>/dist

    -s/--source-dir: The name of the source directory.
    Default: <plugin_name>_<plugin_type>

    -v/--verbose: Multiple occurrences increases the logging level of the console logging.
    Example: -v means CRITICAL, -vvvvv means DEBUG.
    Default: if not specific, the logging level will be INFO.

Using Poetry

Alternatively one may use Agent Plugin Builder without installing it by cloning this repository and invoking:

poetry install
poetry run build_agent_plugin <PLUGIN_PATH>

Development

Setting up your development environment

Run the following commands to install the necessary prerequisites:

pip install poetry pre-commit
poetry install
pre-commit install -t pre-commit -t prepare-commit-msg

Project details


Download files

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

Source Distribution

agent_plugin_builder-0.2.0.tar.gz (22.4 kB view details)

Uploaded Source

Built Distribution

agent_plugin_builder-0.2.0-py3-none-any.whl (25.4 kB view details)

Uploaded Python 3

File details

Details for the file agent_plugin_builder-0.2.0.tar.gz.

File metadata

  • Download URL: agent_plugin_builder-0.2.0.tar.gz
  • Upload date:
  • Size: 22.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.10.12 Linux/5.15.0-113-generic

File hashes

Hashes for agent_plugin_builder-0.2.0.tar.gz
Algorithm Hash digest
SHA256 8e4031a3e691113e1ded961b7ca9016324f4db920f84a02e7417e64fb22ab5fa
MD5 682c3f56f74df9572aa246cafd4eddbf
BLAKE2b-256 10e8dd6f74c9792a7fc5be56ee3fd9e0711941b35fe5c8502e2ca714738954b6

See more details on using hashes here.

File details

Details for the file agent_plugin_builder-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for agent_plugin_builder-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a24253e7807f76fdda2afc5fbf5edcb3566dc3c5fee91f5866baf655bbdc2fab
MD5 bc362864cdf55fc9bdab4c8e54a16f44
BLAKE2b-256 5096c48533e3159c5c1d2d4c97b0ae589cdf8fc22b78491d3b1bb5710c5e05b5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page