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
Built Distribution
File details
Details for the file agent_plugin_builder-0.3.0.tar.gz
.
File metadata
- Download URL: agent_plugin_builder-0.3.0.tar.gz
- Upload date:
- Size: 22.3 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c7bf4450d01d8696637502f96fd3f74b5ff6694d15a61818f821c445fff5153 |
|
MD5 | a250208a26deb0aa2f657befadad1b3c |
|
BLAKE2b-256 | 879c757594f3becc5ecb2aa0fd25850d35689f4c24e6e3bdc9c2e9e9a2b6bcea |
File details
Details for the file agent_plugin_builder-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: agent_plugin_builder-0.3.0-py3-none-any.whl
- Upload date:
- Size: 25.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.10.12 Linux/5.15.0-113-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81909b5fbec38f7a5161f9be6c6c0bd9014c68f113b4655916e8338f984a06d1 |
|
MD5 | 2a9299a8f6d969ce576a8bab3f11b770 |
|
BLAKE2b-256 | 308fa67ceba9dabcdd8277cecc2bc3e01746f83c14219f192c036b096bc8bc3f |