From 306f58d2f8c200117031569249feb6d8070897f1 Mon Sep 17 00:00:00 2001 From: Trygve Aaberge Date: Thu, 29 Jun 2023 03:15:39 +0200 Subject: Update readme for extract_token_from_browser.py script --- README.md | 8 ++++---- extract_token_from_browser.py | 5 ++++- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index d8f53ad..1c623bf 100644 --- a/README.md +++ b/README.md @@ -205,14 +205,14 @@ invalidated, and you will have to update it. Note that in some cases it may be necessary to include the `d-s` cookie as well. If so, you can supply it in this format `:d=;d-s=`. -If you use Firefox, you can run the `extract_token_from_browser.py` script to -get the tokens and cookies for all the teams you're logged into: +If you use Chrome or Firefox, you can run the `extract_token_from_browser.py` +script to get the tokens and cookies for all the teams you're logged into: ``` -./extract_token_from_browser.py firefox +./extract_token_from_browser.py ``` -(Note this script requires the python3-snappy library.) +(Note this script requires the Plyvel, PyCryptodome and SecretStorage libraries for Chrome and may require the python-snappy library for Firefox.) #### Optional: Connecting to multiple teams diff --git a/extract_token_from_browser.py b/extract_token_from_browser.py index 1691af8..bbc4968 100755 --- a/extract_token_from_browser.py +++ b/extract_token_from_browser.py @@ -58,7 +58,10 @@ parser = argparse.ArgumentParser( description="Extract Slack tokens from the browser files" ) parser.add_argument( - "browser", help="Which browser to extract from", metavar="" + "browser", + help="Which browser to extract from", + metavar="", + choices=["firefox", "firefox-snap", "chromium", "chrome", "chrome-beta"], ) parser.add_argument( "--profile", help="Profile to look up cookies for", metavar="", nargs="?" -- cgit