This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Some Standards Bodies (as of May 2019) | |
### Pro Password Expiration | |
- PCI DSS (Visa, Mastercard), BSI (DE) | |
### Contra Password Expiration | |
- Academia, NIST (USA), NCSC (UK) | |
# Some recent research and comments on the negative consequences of enforcing password expiration | |
2010 - Where Do Security Policies Come From? | |
https://cups.cs.cmu.edu/soups/2010/proceedings/a10_florencio.pdf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env pypy | |
# -*- coding: utf-8 -*- | |
''' This script loads the training and predicts the next most likely passwords | |
:author: Maximilian Golla | |
:contact: [email protected] | |
:version: 0.0.1, 2019-11-28 | |
''' | |
# Load external modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
''' | |
:author: Maximilian Golla | |
:contact: [email protected] | |
:version: 0.0.4 2021-05-07 | |
:description: Reverses the Hashcat $HEX output format - defaults to utf-8 encoding | |
:more: https://hashcat.net/forum/thread-2483.html | |
:info: Works with Python 2.7 and Python 3.6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Watchtower Criteria "Weak-Passwords" - Taken from app.js | |
if ("weak-passwords" === e) | |
return t.filter((function(e) { | |
if ("N" !== e.trashed) | |
return !1; | |
var t = a[e.uuid]; | |
return t && "number" == typeof t.passwordStrength && t.passwordStrength >= 0 && t.passwordStrength < c.k.PASSWORD_STRENGTH.WEAK | |
} | |
)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let widget = await createWidget(); | |
if (!config.runsInWidget) { | |
await widget.presentSmall(); | |
} | |
Script.setWidget(widget); | |
Script.complete(); | |
async function createWidget(items) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Inspiration from https://github.com/awaescher/home-battery-widget/blob/main/widget.js | |
const widget = new ListWidget(); | |
// Get data from HASS | |
let result = await loadValues(); | |
// Check data quality | |
let percent = result.value; | |
let isValid = !Number.isNaN(percent); |