Discord bot designed to streamline credential management and access tracking during red team engagements.
Project description
Mentat
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.yamlfile/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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8388750bc44ddd9da6b40c86e28585c2d8b1542557ccc5cc1bac12a60fd59045
|
|
| MD5 |
cbe9f40dd69d56702c585d6ae47373f0
|
|
| BLAKE2b-256 |
3d94df076ffba908d76e270aa6fefe8203e73263660dea4060845902984cc1b5
|
Provenance
The following attestation bundles were made for mentat_bot-1.1.3.tar.gz:
Publisher:
ci.yml on sapph2c/mentat
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mentat_bot-1.1.3.tar.gz -
Subject digest:
8388750bc44ddd9da6b40c86e28585c2d8b1542557ccc5cc1bac12a60fd59045 - Sigstore transparency entry: 172614531
- Sigstore integration time:
-
Permalink:
sapph2c/mentat@3c7cb1f13b6894fb238ea02f01784591a8c9e526 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/sapph2c
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@3c7cb1f13b6894fb238ea02f01784591a8c9e526 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
85537c96879d1664320e97719870f273bf9958c324a6c808dc270d70a5273a73
|
|
| MD5 |
1f7b6f881c4d62291867e4c903af7d87
|
|
| BLAKE2b-256 |
bcfb1205e1dc6619bbc3f61789b0727b3be5cedbfb993b68dbc81f582591513f
|
Provenance
The following attestation bundles were made for mentat_bot-1.1.3-py3-none-any.whl:
Publisher:
ci.yml on sapph2c/mentat
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mentat_bot-1.1.3-py3-none-any.whl -
Subject digest:
85537c96879d1664320e97719870f273bf9958c324a6c808dc270d70a5273a73 - Sigstore transparency entry: 172614534
- Sigstore integration time:
-
Permalink:
sapph2c/mentat@3c7cb1f13b6894fb238ea02f01784591a8c9e526 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/sapph2c
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@3c7cb1f13b6894fb238ea02f01784591a8c9e526 -
Trigger Event:
push
-
Statement type: