Skip to content

Instantly share code, notes, and snippets.

View m33x's full-sized avatar
🏡

Maximilian Golla m33x

🏡
View GitHub Profile
@m33x
m33x / gauge.js
Last active March 18, 2024 16:06
Simple Home Assistant (HASS) iOS Gauge Lock Screen Widget via Scriptable App
// 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);
@m33x
m33x / hass.js
Last active March 18, 2024 16:06
Simple Home Assistant (HASS) iOS Widget via Scriptable App
let widget = await createWidget();
if (!config.runsInWidget) {
await widget.presentSmall();
}
Script.setWidget(widget);
Script.complete();
async function createWidget(items) {
@m33x
m33x / file.js
Last active July 21, 2020 10:31
1Password Web App (B5) v834 - July 17, 2020 - Watchtower - Weak Passwords
// 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
}
));
@m33x
m33x / hexer.py
Last active May 7, 2021 09:38
Reverses the Hashcat $HEX output format - defaults to utf-8 encoding https://hashcat.net/forum/thread-2483.html
#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
:author: Maximilian Golla
:contact: maximilian.golla@rub.de
: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
@m33x
m33x / predict.py
Last active November 28, 2019 20:26
Markov model to predict next char(s) based on a given prefix
#!/usr/bin/env pypy
# -*- coding: utf-8 -*-
''' This script loads the training and predicts the next most likely passwords
:author: Maximilian Golla
:contact: maximilian.golla@rub.de
:version: 0.0.1, 2019-11-28
'''
# Load external modules
@m33x
m33x / password_expiration.txt
Created May 3, 2019 09:46
On Password Expiration - Or why the BSI needs to act now!
# 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