Skip to content

Instantly share code, notes, and snippets.

View arsperger's full-sized avatar

Arsen Semenov arsperger

View GitHub Profile
@arsperger
arsperger / abandonallhopes.sh
Created December 24, 2017 10:23
Simple script to stop SIP DDoS attack with Iptables rules
#!/bin/bash
iptables -N SIPDDOS
iptables -A INPUT -p all -m string --string "sundayddr" --algo bm --to 65535 -m comment --comment "deny sundayddr" -j SIPDDOS
iptables -A INPUT -p all -m string --string "sipsak" --algo bm --to 65535 -m comment --comment "deny sipsak" -j SIPDDOS
iptables -A INPUT -p all -m string --string "sipvicious" --algo bm --to 65535 -m comment --comment "deny sipvicious" -j SIPDDOS
iptables -A INPUT -p all -m string --string "friendly-scanner" --algo bm --to 65535 -m comment --comment "deny friendly-scanner" -j SIPDDOS
iptables -A INPUT -p all -m string --string "iWar" --algo bm --to 65535 -m comment --comment "deny iWar" -j SIPDDOS
iptables -A INPUT -p all -m string --string "sip-scan" --algo bm --to 65535 -m comment --comment "deny sip-scan" -j SIPDDOS
@arsperger
arsperger / redis_import_csv.txt
Created September 12, 2017 11:38
import csv file into redis with a single command
cat data.csv | awk -F',' '{print " SET \""$1"\" \""$2"\" \n"}' | redis-cli --pipe
@arsperger
arsperger / homer_kazoo.md
Created September 6, 2017 23:24
setup kazoo with homer

SIPCAPTURE / HOMER

  • You need this the moment you have more then 1 machine for Kazoo.

Preferred way

@arsperger
arsperger / homer_ubuntu_16.04_.md
Last active May 28, 2021 04:26
Install Homer Debian Ubuntu 16.04
@arsperger
arsperger / keybase.md
Created June 15, 2017 13:05
keybase proof

Keybase proof

I hereby claim:

  • I am arsperger on github.
  • I am arsperger (https://keybase.io/arsperger) on keybase.
  • I have a public key whose fingerprint is 7134 49D2 08E4 33D4 B2B7 131E 1581 B6D8 AAB4 7E71

To claim this, I am signing this object: