-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrepeat_seq.sh
executable file
·93 lines (81 loc) · 2.98 KB
/
repeat_seq.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
#!/bin/bash
sleep_time=10
normal_count=150
rootkit_count=100
# Default: Loop normal 150 times
for ((i = 1; i <= normal_count; i++)); do
echo "Iteration $i:"
sudo python3 probing.py -n --description default
echo "Sleeping for $sleep_time seconds..."
sleep $sleep_time
done
# Default: Loop rootkit 100 times
for ((i = 1; i <= rootkit_count; i++)); do
echo "Iteration $i:"
sudo python3 probing.py -r --description default
echo "Sleeping for $sleep_time seconds..."
sleep $sleep_time
done
# Random file count in range 10-100: Loop normal 150 times
for ((i = 1; i <= normal_count; i++)); do
echo "Iteration $i:"
visible_files=$((10 + RANDOM % 91))
hidden_files=$((10 + RANDOM % 91))
sudo python3 probing.py -n --visible-files $visible_files --hidden-files $hidden_files --description file_count
echo "Sleeping for $sleep_time seconds..."
sleep $sleep_time
done
# Random file count in range 10-100: Loop rootkit 100 times
for ((i = 1; i <= rootkit_count; i++)); do
echo "Iteration $i:"
visible_files=$((10 + RANDOM % 91))
hidden_files=$((10 + RANDOM % 91))
sudo python3 probing.py -r --visible-files $visible_files --hidden-files $hidden_files --description file_count
echo "Sleeping for $sleep_time seconds..."
sleep $sleep_time
done
# System load: Loop normal and rootkit 150 times
for ((i = 1; i <= normal_count; i++)); do
echo "Iteration $i:"
sudo python3 probing.py -n --load --description system_load
echo "Sleeping for $sleep_time seconds..."
sleep $sleep_time
done
# System load: Loop normal and rootkit 100 times
for ((i = 1; i <= rootkit_count; i++)); do
echo "Iteration $i:"
sudo python3 probing.py -r --load --description system_load
echo "Sleeping for $sleep_time seconds..."
sleep $sleep_time
done
# Execute ls-basic: Loop normal 150 times
for ((i = 1; i <= normal_count; i++)); do
echo "Iteration $i:"
sudo python3 probing.py -n --executable ./ls-basic --description ls_basic
echo "Sleeping for $sleep_time seconds..."
sleep $sleep_time
done
# Execute ls-basic: Loop rootkit 100 times
for ((i = 1; i <= rootkit_count; i++)); do
echo "Iteration $i:"
sudo python3 probing.py -r --executable ./ls-basic --description ls_basic
echo "Sleeping for $sleep_time seconds..."
sleep $sleep_time
done
# Execute filename length: Loop normal 150 times
for ((i = 1; i <= normal_count; i++)); do
echo "Iteration $i:"
file_name_length=$((20 + RANDOM % 41))
sudo python3 probing.py -n --file-name-length $file_name_length --description filename_length
echo "Sleeping for $sleep_time seconds..."
sleep $sleep_time
done
# Execute filename length: Loop rootkit 100 times
for ((i = 1; i <= rootkit_count; i++)); do
echo "Iteration $i:"
file_name_length=$((20 + RANDOM % 41))
sudo python3 probing.py -r --file-name-length $file_name_length --description filename_length
echo "Sleeping for $sleep_time seconds..."
sleep $sleep_time
done
echo "All iterations completed."