From 74b59d7f9880d55586f991e459dc759bb4814fb2 Mon Sep 17 00:00:00 2001 From: "Teemu R." Date: Sun, 1 Dec 2024 18:07:05 +0100 Subject: [PATCH] Scrub more vacuum keys (#1328) --- devtools/dump_devinfo.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/devtools/dump_devinfo.py b/devtools/dump_devinfo.py index b6c44fe5..7760b6cb 100644 --- a/devtools/dump_devinfo.py +++ b/devtools/dump_devinfo.py @@ -115,6 +115,10 @@ def scrub(res): "encrypt_info", "local_ip", "username", + # vacuum + "board_sn", + "custom_sn", + "location", ] for k, v in res.items(): @@ -153,7 +157,13 @@ def scrub(res): v = base64.b64encode(b"#MASKED_SSID#").decode() elif k in ["nickname"]: v = base64.b64encode(b"#MASKED_NAME#").decode() - elif k in ["alias", "device_alias", "device_name", "username"]: + elif k in [ + "alias", + "device_alias", + "device_name", + "username", + "location", + ]: v = "#MASKED_NAME#" elif isinstance(res[k], int): v = 0