Skip to content

Instantly share code, notes, and snippets.

@emaia
Created December 28, 2019 15:25
Show Gist options
  • Save emaia/0d4e2d5787fbeaa22b2736e9640cd049 to your computer and use it in GitHub Desktop.
Save emaia/0d4e2d5787fbeaa22b2736e9640cd049 to your computer and use it in GitHub Desktop.
#!/bin/bash
LAN=172.16.1
for ip in $(seq 1 255); do
for port in 13 37 30000 3000 1337; do
hping3 -S -c 1 -p $port $LAN.$ip >> result.log
done
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment