Skip to content

Instantly share code, notes, and snippets.

@echel0nn
Created December 11, 2019 20:06
Show Gist options
  • Save echel0nn/672a0d5e6a97f82d248c465c3286e1ba to your computer and use it in GitHub Desktop.
Save echel0nn/672a0d5e6a97f82d248c465c3286e1ba to your computer and use it in GitHub Desktop.
#!/bin/bash
for (( r = 12; r <= 12; ));do
for (( i = 0; i < 10000; i++ )); do
echo -n "IP:"| echo -n 172.16.90.$r && echo
echo -n "Testing Port -> " && echo $i
hping3 -S -c 2 -p $i 176.16.90.$r 2>/dev/null | grep -i "rtt"
done
done
## lazy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment