This mission bot contains functionality for onboarding, claiming missions, Discord notifications, and auto-relogin.
If you want to get the most use out of mBot, you should follow the steps below to get a Discord bot token and Authy secret. These will allow you to both receive notifications and automatically log back in to the platform should your bot session get disconnected.
- To get your Discord bot token, you will need to follow the steps at https://www.writebots.com/discord-bot-token/.
- Once you have your Discord bot token, add the
CHANNEL_ID
andDISCORD_TOKEN
toconfig.json
.
- To get your Authy Secret, you will need to follow the instructions at https://github.com/alexzorin/authy.
- Once you have your secret, add the
AUTHY_SECRET
toconfig.json
along with yourEMAIL_ADDRESS
, andPASSWORD
for Synack.
You can download the latest release from https://github.com/Un4gi/mBot/releases (This is by far the quickest option if you don't want to deal with installing Go).
Installing with Go is simple:
go install github.com/un4gi/mBot@latest
If you prefer, you can build mBot straight from the source directory:
git clone https://github.com/Un4gi/mBot.git
cd mBot
go build .
Example:
mBot -t auth_token_here -d 30
For help, use the -h
flag:
mBot -h
Flag | Description | Example |
---|---|---|
-d |
Specifies a delay between polls (to please Synack) | mBot -d 30 |
-t |
Passes your Authorization: Bearer token to the bot | mBot -t <auth_token_here> |
Good news... mBot now allows auto-population of the Intro/Testing Methodology/Conclusion fields for each claimed mission!
That's great... but how do I do it?
It's simple, really!
- Store your templates as JSON files in the
templates/
folder - Link the mission title to the template file in
mission/templateMap.go
.