Skip to content

Instantly share code, notes, and snippets.

@Jas0n99
Jas0n99 / snort_ip_block_list.sh
Created November 21, 2025 13:33
A simple bash script to automate downloading the snort "Testing IP Block List". The extra steps are due to an 'accept' button on the web page.
#!/bin/bash
set -euo pipefail
# By using this script you are accepting the terms on the Snort/Cisco/Talos website.
# https://snort.org/downloads/ip-block-list/terms
COOKIEJAR=$(mktemp /tmp/snort_cookie.XXXXXX)
ACCEPT_PAGE=$(mktemp /tmp/snort_accept.XXXXXX)
LIST_URL="https://snort.org/downloads/ip-block-list"
@Jas0n99
Jas0n99 / generate-moduli.sh
Last active January 26, 2020 16:50 — forked from ulif/generate-moduli.sh
Generate primes for use with SSH
#!/bin/bash
#
# Create primes for use with ssh.
#
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root" 1>&2
exit 1
fi
for bitlen in 2048 3072 4096 6144 8192 ;