Skip to content

Instantly share code, notes, and snippets.

View filakovsky's full-sized avatar

Daniel Filakovsky filakovsky

View GitHub Profile
@filakovsky
filakovsky / emudhra.ps1
Last active October 21, 2026 13:42
emudhra.ps1
# emudhra.ps1 - quick check for the eMudhra CA key compromise (October 2026). Windows PowerShell 3+ / PowerShell 7.
# Read-only: prints [VULN] with a fix command, [ OK ], or [ -- ] for info/skipped.
#
# Usage: powershell -ExecutionPolicy Bypass -File .\emudhra.ps1 [-Domain dv-g3b-emudhra.we-have-a-problem.com]
# or: irm <raw gist url> | iex
# (Windows PowerShell 5.1 downloads with TLS 1.0 by default; run this first:
# [Net.ServicePointManager]::SecurityProtocol = 'Tls12')
#
# Sources (fixed versions as of 2026-10-21):
# https://emudhra.we-have-a-problem.com/
@filakovsky
filakovsky / emudhra.sh
Last active October 21, 2026 13:44
eMudhra CA Keys Compromised - Check
#!/bin/sh
# emudhra.sh - quick check for the eMudhra CA key compromise (October 2026).
# Read-only: prints [VULN] with a fix command, [ OK ], or [ -- ] for info/skipped.
#
# Usage: sh emudhra.sh [your-domain[:port] ...]
# sh emudhra.sh dv-g3b-emudhra.we-have-a-problem.com # test site, shows VULN on purpose
# Docker: docker run --rm -i --entrypoint sh IMAGE -s < emudhra.sh
#
# Sources (fixed versions as of 2026-10-21):
# https://emudhra.we-have-a-problem.com/
@filakovsky
filakovsky / crontab_reminder
Last active September 18, 2020 16:08
Notification reminder throught crontab
SHELL=/bin/sh
PATH=/usr/bin
# m h dom mon dow command
50 * * * * XDG_RUNTIME_DIR=/run/user/$(id -u) notify-send "Rest break!" "Stand up, stretch and relax"