-
Notifications
You must be signed in to change notification settings - Fork 2
/
Elk_Stack_scripts.sh
26 lines (13 loc) · 1012 Bytes
/
Elk_Stack_scripts.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
#Generate 1000 failed SSH login attempts on a single web server. Must be run outside of the authaurized VM/Container to generate failed attempts.
for i in {1..1000}; do ssh Web_1@10.0.0.5; done
#Generate an infinite number of SSH login attempts on a single web server on all webservers. Must be run outside of the authaurized VM/Container to generate failed attempts.
while true; do for i in {5..6}; do ssh Web_1@10.0.0.$i; done
#start and attach to the Ansible container in one command from the Jump Box.
sudo docker start goofy_wright && sudo docker attach goofy_wright
#use wget to generate high amount of web request to perform a DoS attack
while true; do wget 10.0.0.5; done
#same as the previous command without generating the `index.html` file after each request
while true; do wget 10.0.0.5 -O /dev/null; done
#same as the previous command, this time the `wget` DoS is performed on webservers at the same time
while true; do for i in {5..6}; do wget -O /dev/null 10.0.0.$i; done