Skip to content

scottbrumley/blackhat-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Black Hat Bot

Scripts Folder

  • build.sh - Build the Docker container
  • settings.sh - Set the environment variables (i.e. Slack API Key, XSOAR API Key, etc.)
  • slackbot-manifest - The manifest to put in Slack when creating your Application
  • start.sh - Start Bot the Docker container
  • stop.sh - Stop and Destroy the Bot Docker container

Build & Run Test

scripts/stop.sh;scripts/build.sh;scripts/start.sh

Build & Run Production

scripts/stop.sh prod;scripts/build.sh prod;scripts/start.sh prod

Credentials File (private/creds.sh):

Create a File in a private sub directory called creds.sh

   
   BOT_TOKEN="YOUR BOT KEY HERE"
   APP_TOKEN="YOUR APP KEY HERE"
   DEMISTO_URL="YOUR XSOAR API URL HERE"
   DEMISTO_API_KEY="YOUR XSOAR API KEY HERE"
   
   TEST_BOT_TOKEN="YOUR BOT KEY HERE"
   TEST_APP_TOKEN="YOUR APP KEY HERE"
   TEST_DEMISTO_URL="YOUR XSOAR API URL HERE"
   TEST_DEMISTO_API_KEY="YOUR XSOAR API KEY HERE"
   
   
   export TEST_BOT_TOKEN
   export TEST_APP_TOKEN
   export TEST_DEMISTO_URL
   export TEST_DEMISTO_API_KEY
   
   
   export BOT_TOKEN
   export APP_TOKEN
   export DEMISTO_URL
   export DEMISTO_API_KEY