aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2023-06-29 03:15:39 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2023-06-29 22:43:57 +0200
commit306f58d2f8c200117031569249feb6d8070897f1 (patch)
tree21bc98732c702f516ceab559d7a9e461fed19663
parente86e05e5e34d2d50ecdb22798cf8fc5539b636c4 (diff)
downloadwee-slack-306f58d2f8c200117031569249feb6d8070897f1.tar.gz
Update readme for extract_token_from_browser.py script
-rw-r--r--README.md8
-rwxr-xr-xextract_token_from_browser.py5
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 `<token>:d=<d_cookie>;d-s=<d-s_cookie>`.
-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 <browser>
```
-(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>"
+ "browser",
+ help="Which browser to extract from",
+ metavar="<browser>",
+ choices=["firefox", "firefox-snap", "chromium", "chrome", "chrome-beta"],
)
parser.add_argument(
"--profile", help="Profile to look up cookies for", metavar="<profile>", nargs="?"