Skip to content

Instantly share code, notes, and snippets.

@ProducerMatt
ProducerMatt / malware_block.ksh
Last active March 14, 2021 00:04 — forked from jgoettsch/malware_block.ksh
Block malware with unbound on OpenBSD
#!/bin/ksh
#set -x #DEBUG
# Call with -d to leave a diff between the old and new files
[ `id -u` == 0 ] || { echo "Please run as root!" && exit 3 ; }
URL="https://urlhaus.abuse.ch/downloads/hostfile"
TMPDIR="/tmp"
HOSTFILE="$TMPDIR/hostfile"