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)

It's recommended that you create a virtual environment before installation:

python3 -m venv venv
source venv/bin/activate

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.2.tar.gz (5.6 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.2-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mentat_bot-1.1.2.tar.gz
  • Upload date:
  • Size: 5.6 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.2.tar.gz
Algorithm Hash digest
SHA256 9e79614bb75119560477327d3ffc9563a8063ab0bd92198aa1db153cff79e0a3
MD5 161d9a259849d3a10f6eb48745d64935
BLAKE2b-256 fbcc4cac2685f55febeab65ed3830ff0e3849bd9fae535993d2c1353cf6d0dfa

See more details on using hashes here.

Provenance

The following attestation bundles were made for mentat_bot-1.1.2.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.2-py3-none-any.whl.

File metadata

  • Download URL: mentat_bot-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 6.4 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 42fb76269dc45f3ae2b2cad643806ebda55379573b4747bfda1b829a261c800d
MD5 166caacc076ace8668894cd2489c90a4
BLAKE2b-256 9b54020d8d3492bcb64235655e9601c4aa33cf8f02ad96955b59d35b3628cabb

See more details on using hashes here.

Provenance

The following attestation bundles were made for mentat_bot-1.1.2-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