Git Product home page Git Product logo

regabofh's Introduction

regaBOFH

regaBOFH - Slack deleter


What is REGABOFH?

From the Portuguese word regabofe meaning party hard, this tool is the complete opposite. This will ruin BOFH fun from enterprise slack admins by deleting your messages (including threaded messages), so they can't spy on you.

This tool will list all the private conversations (not the public ones or multiple user conversations). Then you can choose interactively which conversations you which to delete, for example; friend1,friend2,... This will cache at the same time that backups your conversations in a pickle format (we may want to run this multiple times and we should avoid hitting slack rate limit).

It will delete all your reactions.

And finally, it will backup your files (if you want) and delete them.


Usage

  1. Open slack on your browser and login on your workspace.

  2. Open browser developer tool, by pressing F12 or any other way.

  3. Go to the Network tab.

  4. Select some HTTP request that contains the slack token (it will start with "xoxc-") and the cookies (I guess these don't need explanation).

  5. Run the script without performing modifications on your account by adding --dry-run as argument (It will print the messages like it is deleting, but it's not really requesting the deletion, it's only iterating the data):

  • python3 slack.py --token <token_here> --cookie '<cookies_here>' --dry-run
  1. If it worked correctly and showed you the information, run the script without --dry-run:
  • python3 slack.py --token <token_here> --cookie '<cookies_here>'

WARNING: I take no responsibility for the effects of this tool, neither I control slack API. (During the development of this tool, reaction API got faulty, it may still faulty when you run this script).


FAQ

Q. Will this permanently delete all messages?

A. Sort of... They are not displayed anymore on slack, but I guess slack organizations have ways to read them anyway. If Slack is self-hosted by your company they may have backups...


Q. Is it legal to delete messages and files? What about DLP?

A. Don't know. I take no responsibility for the use of this tool.


Q. Your code suck!!

A. I know it, but it does the job. deal with it.


Q. Can't find the XOXC token we're talking about.

A. I don't know. Google it!


Q. Can you add X, Y, Z features?

A. I'm not feeling it, but you can send a pull request it of fork it to your profile.


Q. Will you add an option to delete public channels conversations or multiple users private conversations?

A. At the moment I don't feel the need for it. But how knows... Also, I'm available to accept pull requests.


Q. What's your open source license?

A. I don't give a F. do whatever you want. Feel free to include a credit if you like my tool.

regabofh's People

Contributors

zezadas avatar

Stargazers

Pedro Tarrinho avatar Tiago Bastos avatar David Fontes avatar

Watchers

James Cloos avatar Pedro Tarrinho avatar  avatar

Forkers

romainrbr

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.