Skip to content

Instantly share code, notes, and snippets.

@abdalmoez
Created July 1, 2025 18:51
Show Gist options
  • Save abdalmoez/a5ded71df0037840c89a5adab4c9d85d to your computer and use it in GitHub Desktop.
Save abdalmoez/a5ded71df0037840c89a5adab4c9d85d to your computer and use it in GitHub Desktop.
Samp Anti-ddos
# This anti-ddos blocks the famous samp ddos: https://github.com/Danz-X/SAMP-DDOS/blob/main/SAMP-DDOS.py
sudo iptables -A INPUT -p udp --dport 7777 -m string --algo bm --hex-string "|53414d5090d91d4d611e700a465b00|" -j DROP
sudo iptables -A INPUT -p udp --dport 7777 -m string --algo bm --hex-string "|53414d509538e1a9611e63|" -j DROP
sudo iptables -A INPUT -p udp --dport 7777 -m string --algo bm --hex-string "|53414d509538e1a9611e69|" -j DROP
sudo iptables -A INPUT -p udp --dport 7777 -m string --algo bm --hex-string "|53414d509538e1a9611e72|" -j DROP
sudo iptables -A INPUT -p udp --dport 7777 -m string --algo bm --hex-string "|081e62da|" -j DROP
sudo iptables -A INPUT -p udp --dport 7777 -m string --algo bm --hex-string "|081e77da|" -j DROP
sudo iptables -A INPUT -p udp --dport 7777 -m string --algo bm --hex-string "|081e4dda|" -j DROP
sudo iptables -A INPUT -p udp --dport 7777 -m string --algo bm --hex-string "|021efd40|" -j DROP
sudo iptables -A INPUT -p udp --dport 7777 -m string --algo bm --hex-string "|081e7eda|" -j DROP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment