Mattermost - Shodan Slash command
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


Based on this project, you will be able to create a simple Slash command to use in Mattermost (and maybe in Slack too) for


Pro-tip: For a quick overview, you can spin up a Mattermost Preview instance using Docker (Link to the Hub).

docker run --name mattermost-preview -d --publish 8065:8065 mattermost/mattermost-preview

The instance is then accessible at:


As soon as your Mattermost instance is up and running, you should go to the System console and enable Custom Slack Commands.

Enabling Custom Slash commands

Then, go to Menu > Integrations > Custom Slash Command.

Creating a Custom Slash command

Fill in the information regarding your Slash command appropriately.

Filling in the information Filling in the information

Your Slash command has now been created.

Custom Slash Command created

Make sure that you copy token generated by Mattermost and edit respectively both tokens (Shodan and Mattermost ones) in



Launch your web server:

✗ python
Starting matterslash server, use <Ctrl-C> to stop

And finally you can start typing your commands in the Mattermost Channel of your choice, like:


Usage of the command


The code has been released under MIT License. Feel free to send your Pull Requests over if you need a specific method. You can also ping me at @PaulWebSec if you need anything.

This code has highly been inspired from MatterSlash source code, available here