diff options
-rw-r--r-- | README.md | 8 | ||||
-rwxr-xr-x | extract_token_from_browser.py | 5 |
2 files changed, 8 insertions, 5 deletions
@@ -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="?" |