Created
January 2, 2021 13:31
-
-
Save ahmetozer/f4b88d76306a680ce5f8b7f0ac2bac76 to your computer and use it in GitHub Desktop.
Send udp packets in interval
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#### | |
# ahmetozer.org | |
#### | |
## Usage | |
# ./udp_test_package_loop.sh (send-interval) (remote-ip) (remote-port|default 53) (source-port|default 9000) | |
function fakeReq { | |
while true | |
do | |
echo " " | |
sleep $1 | |
done | |
} | |
fakeReq $1 | nc -u $2 ${3-53} -p ${4-9000} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment