1
0
mirror of https://github.com/Tafkas/fritzbox-munin.git synced 2023-10-10 11:36:55 +00:00

4 Commits

Author SHA1 Message Date
Christian Stade-Schuldt
60be9222fc update Readme 2021-03-26 15:16:37 +01:00
Christian Stade-Schuldt
62b36cfd98 default to python3 2021-03-26 14:33:09 +01:00
Christian Stade-Schuldt
f35f0bb2f4 remove type hints 2021-03-26 14:16:41 +01:00
Christian Stade-Schuldt
485846a780 use username and password 2021-03-26 13:19:04 +01:00
2 changed files with 4 additions and 3 deletions

View File

@@ -90,7 +90,7 @@ def calculate_pbkdf2_response(challenge, password):
# Once with dynamic salt.
hash1 = hashlib.pbkdf2_hmac("sha256", password.encode(), salt1, iter1)
hash2 = hashlib.pbkdf2_hmac("sha256", hash1, salt2, iter2)
return "{}${}".format(challenge_parts[4], hash2.hex())
return f"{challenge_parts[4]}${hash2.hex()}"
def calculate_md5_response(challenge, password):

View File

@@ -36,10 +36,11 @@ def print_values():
except Exception as e:
sys.exit("Couldn't get WAN traffic")
down_traffic = fs.bytes_received
traffic = fs.transmission_rate
down_traffic = traffic[1]
print("down.value %d" % down_traffic)
up_traffic = fs.bytes_sent
up_traffic = traffic[0]
print("up.value %d" % up_traffic)
if not os.environ.get("traffic_remove_max"):