Last active
June 11, 2023 10:41
-
-
Save M-ZubairAhmed/d3e09bd0e9e91bfd34a87eaadf915f05 to your computer and use it in GitHub Desktop.
Spam a Mattermost channels with continuous posts
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 | |
SLEEP_TIME=1 | |
NUM_OF_MESSAGES=100 | |
PACK=$RANDOM | |
echo "Sending continous messages with wait time of ${SLEEP_TIME} seconds between each message" | |
for (( i=1; i<=$NUM_OF_MESSAGES; i++ )) | |
do | |
mmctl post create ad-1:spamc --message "${PACK}--${i} ${RANDOM} lorem ipsum dolar sit ${RANDOM}" | |
sleep ${SLEEP_TIME} | |
done | |
echo "Posted ${NUM_OF_MESSAGES} messages" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment