diff options
author | Kali Kaneko <kali@leap.se> | 2014-07-11 10:19:47 -0500 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2014-07-11 10:19:47 -0500 |
commit | 4519775ebbbbe09913a1b96c8ac0a55c8a956069 (patch) | |
tree | 780a593e5840142021693cc7c0eada5b7f2cc2c1 /scripts/profiling | |
parent | 2628bbf4c5faff50491cdd227c787ca7f148f368 (diff) | |
parent | 9769301256f994061111e9a18beae90160cc809f (diff) |
Merge branch 'feature/encdb_splitted_drebs' into develop
Diffstat (limited to 'scripts/profiling')
-rwxr-xr-x | scripts/profiling/spam.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/scripts/profiling/spam.sh b/scripts/profiling/spam.sh new file mode 100755 index 00000000..a4f2b8ef --- /dev/null +++ b/scripts/profiling/spam.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +if [ $# -ne 2 ]; then + echo "Usage: ${0} <target_address> <number_of_messages>" + exit 1 +fi + +target_address=${1} +missing=${2} +echo "Will send ${missing} messages to ${target_address}..." + +while [[ ${success} -eq 0 && ${missing} -gt 0 ]]; do + echo " missing: ${missing}" + swaks -S \ + -f ${target_address} \ + -t ${target_address} \ + -s chipmonk.cdev.bitmask.net \ + -tlsc + if [ $? -eq 0 ]; then + missing=`expr ${missing} - 1` + else + echo " error, retrying..." + fi +done |