We present a simple example of using the pythf library for integrating the capabilities of the THF Polygon into a Slack.
PolygonBot is a flask-application which listens for Slack events from channels which it was invited to. If there is a file in a message bot sends it to Polygon and waits for the result. If the file is benign bot will react with an 'angel' sticker. And if the file is malicious bot will react with an 'smiling_imp' sticker and will give short description in a thread.
You can do this by clicking here
Pick a name and choose a workspace to install your app to.
You need to subscribe Bot to your Slack events.
Request URL: "https://<bot-application-url>/listening"
- Generate THF Huntbox Token from the web interface.
- Install application requirements.
- Set up conf.json.
- Run the application.