Skip to main content

Discord bot designed to streamline credential management and access tracking during red team engagements.

Project description

Mentat

Python Version from PEP 621 TOML GitHub Actions Workflow Status GitHub deployments

Discord bot designed to streamline credential management and access tracking during red team engagements.

Installation

Mentat is available as a Python package on PyPI and can be installed using uv (recommended), pipx, or pip.

Note: python 3.12 is required (currently does not support python 3.13)

Install using uv:

uv tool install mentat-bot@latest

Install using pipx:

pipx install mentat-bot

Install using pip:

pip install mentat-bot

Usage

In order to use Mentat, a bot account must first be created on Discord and invited to the server you want to use for your engagement. This can be done by following the guide at: https://discordpy.readthedocs.io/en/stable/discord.html

After installing, invoke the bot by simply running:

mentat

The Discord bot token should be available within your current directory in a file called config.yml or specified via --path when invoking the Mentat CLI.

Features

  • Automatic credential tracking for SSH
  • Red Team ChatOps via Discord / commands.

Commands

Mentat is managed using Discord / commands.

Management commands include:

  • /purge: Removes all previous host channels
  • /addhosts: Adds a list of hosts and credentials from an attached .yaml file
  • /addcreds <host ip> <type> <username> <password>: Adds new credentials to a specified host

File formats

Example hosts.yaml file:

192.168.56.1:
  creds:
    ssh:
      test_user: test_pass

192.168.56.2
192.168.56.3

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

mentat_bot-1.1.1.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mentat_bot-1.1.1-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file mentat_bot-1.1.1.tar.gz.

File metadata

  • Download URL: mentat_bot-1.1.1.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for mentat_bot-1.1.1.tar.gz
Algorithm Hash digest
SHA256 fa3080dcd0fd356f590dc292814cfa3359aa81f7fc9c623738ddf495f70f171f
MD5 32f645be0b9b6c5e2af5ce1f2f3cf532
BLAKE2b-256 ebd7bc84914800e018fb3d9ac21264c3adea3656f8cca4374467541cce928be5

See more details on using hashes here.

Provenance

The following attestation bundles were made for mentat_bot-1.1.1.tar.gz:

Publisher: ci.yml on sapph2c/mentat

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mentat_bot-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: mentat_bot-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for mentat_bot-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 692c86a5e8958f118b2217d2240fa6822a9cb059ca93dafba5a5d50de60e24d1
MD5 a8fd549ae22cec7c91493984a55f018d
BLAKE2b-256 df20ad0a8b347505e67ee5027568f9cf8868f8f422be649beb4a0763766f84b1

See more details on using hashes here.

Provenance

The following attestation bundles were made for mentat_bot-1.1.1-py3-none-any.whl:

Publisher: ci.yml on sapph2c/mentat

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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