Skip to content

Instantly share code, notes, and snippets.

@arrase
Created March 23, 2017 15:23
Show Gist options
  • Save arrase/6c73c37f25bec01aef2397d656799d7e to your computer and use it in GitHub Desktop.
Save arrase/6c73c37f25bec01aef2397d656799d7e to your computer and use it in GitHub Desktop.
Masscan with banners
#!/bin/bash
iptables -N LOGGING
iptables -A LOGGING -m limit --limit 200/min -j LOG --log-prefix "SHELLSHOCK: " --log-level 7
iptables -A LOGGING -j RETURN
iptables -A INPUT -s 10.0.0.0/8 -p icmp --icmp-type echo-request -j LOGGING
iptables -A INPUT -p tcp --dport 60000 -j DROP
masscan 10.0.0.0/8 -p80 --banners --source-port 60000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment