Skip to content

Instantly share code, notes, and snippets.

View kbabioch's full-sized avatar

Karol Babioch kbabioch

View GitHub Profile
@kbabioch
kbabioch / crash-heatpump.py
Last active March 22, 2023 10:42
Demonstation of a vulnerability in Alpha Innotec heatpumps (firmware version V3.85.8 (r7193)).
#! /usr/bin/env python3
import argparse
import socket
parser = argparse.ArgumentParser()
parser.add_argument('ip')
parser.add_argument('port', type=int)
args = parser.parse_args()
@kbabioch
kbabioch / dnssey-keymgr.md
Created April 10, 2023 12:03
systemd unit files for dnssec-keymgr

systemd unit files for dnssec-keymgr (bind 9.16). No longer relevant with 9.18, but might still be useful. Archiving it here.

[email protected]:

[Unit]
Description=dnssey-keymgr for %i

[Service]
Environment=DNSSEC_POLICY_FILE=/etc/dnssec-policy.conf
@kbabioch
kbabioch / generate-wg-keypair.sh
Last active November 22, 2025 14:58
This is a simple script to generate two Wireguard keypairs and a pre-shared key. Note: It will output the generated key material on the terminal, so it can be easily copied to appliances / configuration files, etc. Only run this on trusted machines. Use at your own risk.
#! /bin/sh
# Help output
help()
{
cat << EOF
Usage: $0
This script generates two Wireguard key pairs along with a pre-shared key.
This key material can be used to quickly setup a point-to-point tunnel