Skip to content

Instantly share code, notes, and snippets.

View wolfposd's full-sized avatar

Wolf wolfposd

  • University of Hamburg, DE
View GitHub Profile
@wolfposd
wolfposd / incidence.js
Last active May 17, 2022 10:43 — forked from klaus-schuster/incidence.js
COVID-19 Inzidenz-Widget für iOS für HAMBURG (nutzt die Daten der HH-Website und nicht die des RKI)
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// This script was downloaded using ScriptDude.
// Do not remove these lines, if you want to benefit from automatic updates.
// source: https://gist.github.com/wolfposd/596cacf6958a5e2bfbbe2c7ff295a467/raw/incidence.js; docs: https://gist.github.com/wolfposd/596cacf6958a5e2bfbbe2c7ff295a467/;
// Corona Zahlen Hamburg | https://www.hamburg.de/corona-zahlen
// Credits:
// klaus-schuster: https://gist.github.com/klaus-schuster/0537cd7f491a67ce61fe9064c4b4e932
// kevinkub https://gist.github.com/kevinkub/46caebfebc7e26be63403a7f0587f664
from Crypto.Cipher import AES
from Crypto.Util import Counter
import struct
"""
typedef struct boot_dat_hdr
{
unsigned char ident[0x10];
unsigned char sha2_s2[0x20];
unsigned int s2_dst;