-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrepeat_sim.sh
executable file
·45 lines (39 loc) · 1.23 KB
/
repeat_sim.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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/bash
# Default: Loop normal 10 times
for i in {1..10}; do
echo "Iteration $i:"
sudo python3 probing.py -n --description default
echo "Sleeping for 10 seconds..."
sleep 10
done
# Default: Loop normal and rootkit 100 times
for i in {1..100}; do
echo "Iteration $i:"
sudo python3 probing.py -nr --description default
echo "Sleeping for 10 seconds..."
sleep 10
done
# Random file count in range 10-100: Loop normal and rootkit 100 times
for i in {1..100}; do
echo "Iteration $i:"
visible_files=$((10 + RANDOM % 91))
hidden_files=$((10 + RANDOM % 91))
sudo python3 probing.py -nr --visible-files $visible_files --hidden-files $hidden_files --description file_count
echo "Sleeping for 10 seconds..."
sleep 10
done
# System load: Loop normal and rootkit 100 times
for i in {1..100}; do
echo "Iteration $i:"
sudo python3 probing.py -nr --load --description system_load
echo "Sleeping for 10 seconds..."
sleep 10
done
# Execute ls-basic: Loop normal and rootkit 100 times
for i in {1..100}; do
echo "Iteration $i:"
sudo python3 probing.py -nr --executable ./ls-basic --description ls_basic
echo "Sleeping for 10 seconds..."
sleep 10
done
echo "All iterations completed."