aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2023-06-29 01:39:32 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2023-06-29 22:15:55 +0200
commita77252086748326ff57f9b1d1022b98d740db022 (patch)
treef1fc0d11495a64ba5f8b56033131a2995fbdd8cd
parentd11a244ede1ce3af807e3f0007cf5a3ba60ada99 (diff)
downloadwee-slack-a77252086748326ff57f9b1d1022b98d740db022.tar.gz
Rename variable to be more descriptive
-rwxr-xr-xextract_token_from_browser.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/extract_token_from_browser.py b/extract_token_from_browser.py
index c6f5cb3..6548f0e 100755
--- a/extract_token_from_browser.py
+++ b/extract_token_from_browser.py
@@ -62,7 +62,7 @@ parser.add_argument(
args = parser.parse_args()
if sys.platform.startswith("linux"):
- iterations = 1
+ chrome_key_iterations = 1
if args.browser == "firefox-snap":
browser_data = Path.home().joinpath("snap/firefox/common/.mozilla/firefox")
elif args.browser == "firefox":
@@ -75,7 +75,7 @@ if sys.platform.startswith("linux"):
)
sys.exit(1)
elif sys.platform.startswith("darwin"):
- iterations = 1003
+ chrome_key_iterations = 1003
if args.browser in ["firefox", "firefox-snap"]:
browser_data = Path.home().joinpath(
"Library/Application Support/Firefox/Profiles"
@@ -163,7 +163,7 @@ if args.browser in ["chrome", "chrome-beta"]:
salt = b"saltysalt"
length = 16
- key = PBKDF2(passwd, salt, length, iterations)
+ key = PBKDF2(passwd, salt, length, chrome_key_iterations)
cipher = AESCipher(key)