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.3.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.3-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mentat_bot-1.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 8388750bc44ddd9da6b40c86e28585c2d8b1542557ccc5cc1bac12a60fd59045
MD5 cbe9f40dd69d56702c585d6ae47373f0
BLAKE2b-256 3d94df076ffba908d76e270aa6fefe8203e73263660dea4060845902984cc1b5

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: mentat_bot-1.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 85537c96879d1664320e97719870f273bf9958c324a6c808dc270d70a5273a73
MD5 1f7b6f881c4d62291867e4c903af7d87
BLAKE2b-256 bcfb1205e1dc6619bbc3f61789b0727b3be5cedbfb993b68dbc81f582591513f

See more details on using hashes here.

Provenance

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