Skip to content

Instantly share code, notes, and snippets.

@matsubo
Created November 9, 2018 07:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matsubo/7538f94bea11ce7bf197772e63ca21b4 to your computer and use it in GitHub Desktop.
Save matsubo/7538f94bea11ce7bf197772e63ca21b4 to your computer and use it in GitHub Desktop.
root privilege is required to execute sendip command.
#!/bin/sh
delay=200
while : ; do
port=$RANDOM
sendip -d '' -p ipv4 -p tcp -is 192.168.0.254 -ts $port -td 80 192.168.0.10
usleep $delay
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment