Keramas / Slacker

Python script for pulling chat history for Slack channels using a stolen API token.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Slacker

Python-based tool for pulling chat history from Slack channels using a stolen API token.

alt_text

How to use:

  1. With the stolen API token, run the Channel_RIPper.py script to pull all of the channel IDs and names from a specific Slack group. This will output a dictionary file containing both the IDs and names of all channels.

  2. Create a text file of the channels you would like to parse using the channel IDs.

  3. Run the Chat_Raider.py script against the text file you created and indicate the number of messages you want to save. Output will be placed in a dated folder and contain files for each channel.

The messages output will have time stamps and also text will be highlighted according to the regex indicated for the "regex_pattern" variable to make it easier to spot keywords when manually scrolling through messages (i.e., when you are not grepping).

Example usage and output:

alt text

Supplemental:

Set script to run with a daily cron in order to get the most recent messages automatically and diff the output files.

About

Python script for pulling chat history for Slack channels using a stolen API token.


Languages

Language:Python 100.0%