Skip to content

Instantly share code, notes, and snippets.

View dev1x's full-sized avatar
🔝
Migrated to Gitlab ¯\_(ツ)_/¯

Ricardo Félix dev1x

🔝
Migrated to Gitlab ¯\_(ツ)_/¯
  • Lisbon
View GitHub Profile
@rms1000watt
rms1000watt / waf-ip-updater.sh
Created May 13, 2019 21:37
Script to update WAF with a bunch of IP Addresses from file
#!/usr/bin/env bash
if [[ ! -f ips.txt ]]; then
echo "ERROR: missing file ./ips.txt"
exit 1
fi
if [[ ! ${1} ]]; then
echo "ERROR: ip-set-id not provided as \${1}"
exit 1