Skip to content

Instantly share code, notes, and snippets.

import nimib
import nimiSlides
const THEME = Black
#themes: Black, Beige, Blood, League, Moon, Night, Serif, Simple, Sky, Solarized, White
nbInit(theme = revealTheme)
export nb
import nimib
nbInitMd
nbCode:
let test = "hello world"
nb.filename = "test.md"
nbSave
@srozb
srozb / nagging_alert_notification.yaml
Last active August 4, 2022 10:45 — forked from pavax/nagging_alert_notification.yaml
Home Assistant Alert Notification Blueprint
blueprint:
name: Nagging Alerting Notification Automation
description: >
Trigger an alert based on the state of a given sensor.
The Alert is send to a mobile app device and repeats as long as the sensor is in the given state.
An additonal action can be specified. This might be useful to tts the message.
domain: automation
source_url: https://gist.github.com/pavax/08705e383bdd3b58ea7b75a1f01c7e54
input:
sensor_entity:
# mimikatz unique imphashes based on 500 binaries gathered from virustotal
0265fde84b683235cebfe6d892da5c7f
059c6bd84285f4960e767f032b33f19b
07e6016099674ec02cfacd7fdb525228
0b2973447b6de13faf1fccc7d89f8236
11433e8ad7b8d0937563d07a7f8c36e2
1288a4be8c2b21f1447e8cb67179c050
1321dabcf31253d648582e3c9b769585
1355327f6ca3430b3ddbe6e0acda71ea
@srozb
srozb / gree-scan.sh
Created June 24, 2020 12:45
Script to ping Gree HVAC devices on the LAN
#!/bin/bash
echo {"t":"scan"} | ncat -u 255.255.255.255 7000
@srozb
srozb / gree-decrypt.py
Created June 24, 2020 12:38
script to decrypt GREE/Innova HVAC UDP communication
#!/usr/bin/env python3
import base64
import json
import sys
from Crypto.Cipher import AES
key = b"a3K8Bx%2r8Y7#xDh" # default key (for scanning) - replace if needed.
cipher = AES.new(key, AES.MODE_ECB)
@srozb
srozb / validate_iban.py
Last active May 16, 2018 08:49
stolen code to validate IBAN
#!/usr/bin/env python
def _to_base10(number):
"""Prepare the number to its base10 representation."""
try:
return ''.join(
str(int(x, 36)) for x in number)
except Exception:
raise Exception("Invalid Format")
#!/bin/bash
COPY_DIR="/tmp/integrity_check/$(date +%Y-%m-%d)"
ARCH_FILE="/root/susp_files-$(date +%Y-%m-%d).tgz"
# debsums bedzie nam potrzebny
dpkg -l | grep debsums >/dev/null || apt-get install -y debsums
# wykryj i staruj
@srozb
srozb / create_bro_file.sh
Last active February 23, 2018 19:05
import additional x509 CA certs to bro
#!/bin/bash
INFORM="DER"
echo @load base/protocols/ssl
echo
echo module SSL\;
echo redef root_certs += {
for f in *.cer
@srozb
srozb / attachment.py
Created November 16, 2017 08:47
dump eml attachments
#!/usr/bin/env python3
import email
import sys
import uuid
def print_usage():
print("{} <filename>".format(sys.argv[0]))
def read_file(filename):