Skip to content

Instantly share code, notes, and snippets.

@teol
teol / http-flood.yaml
Last active July 27, 2022 20:01
crowdsec-http-antiflood
type: leaky
name: teol/antiflood
description: "anti flood against endpoints"
filter: "evt.Meta.log_type in ['http_access-log', 'http_error-log'] && Meta.http_path startsWith '/picture' && evt.Parsed.verb in ['GET', 'POST']"
leakspeed: 0.5s #tweak
capacity: 10 #tweak
groupby: "evt.Meta.source_ip + '/' + evt.Meta.http_path"
blackhole: 1m
labels:
service: http
@teol
teol / crowdsec
Last active May 22, 2021 11:40
/etc/monit/conf-available/
check process crowdsec with pidfile /var/run/crowdsec.pid
#monit procmatch crowdsec
#monit procmatch cs-firewall-bouncer
@teol
teol / postman-deb.sh
Created May 25, 2018 15:54 — forked from SanderTheDragon/postman-deb.sh
A shellscript to create a Postman .deb file, for simple installation on Debian-based Linux distro's. Also creates a .desktop file.
#!/bin/sh
script=`basename "$0"`
if [ $# -gt 0 ] && [ "$1" = "-e" ]; then
e="-e"
fi
echo "Removing old Postman tarballs"
rm -f $(ls Postman*.tar.gz)
@teol
teol / magnet-links-bittorrent.php
Created August 5, 2017 10:43 — forked from hakre/magnet-links-bittorrent.php
Magnet links library for PHP