-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
sys_vul.sh
executable file
·137 lines (120 loc) · 4.63 KB
/
sys_vul.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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# System vulnerability checking function
#--------------------------------------------------------------------------
espeak " Checking Hard ware Vul nerability " -w foo.wav
vlc --fullscreen --effect-list=spectrometer foo.wav
sleep 1
echo " -----------------------------------------------------------------------------"
echo " Hardware vulnerability "
echo " -----------------------------------------------------------------------------"
espeak " Checking Itlb multihit " -w foo.wav
vlc --fullscreen --effect-list=spectrometer foo.wav
sleep 1
espeak "$(lscpu | grep -w "Itlb multihit:")" -w foo.wav
vlc --fullscreen --effect-list=spectrometer foo.wav
sleep 1
echo "$(lscpu | grep -w "Itlb multihit:")"
vv=$(lscpu | grep -w "Itlb multihit:");
if [ "$vv" == 'Affected' ];
then
espeak " Looking for solution "
fi
#--------------------------------------------------------------------------
espeak " Checking L1tf: " -w foo.wav
vlc --fullscreen --effect-list=spectrometer foo.wav
sleep 1
espeak "$(lscpu | grep -w "L1tf:")" -w foo.wav
vlc --fullscreen --effect-list=spectrometer foo.wav
sleep 1
echo "$(lscpu | grep -w "L1tf:")"
if [ "$(lscpu | grep -w "L1tf:")" == 'Affected' ]
then
espeak " Looking for solution " -w foo.wav
vlc --fullscreen --effect-list=spectrometer foo.wav
sleep 1
fi
#--------------------------------------------------------------------------
espeak " Checking Tsx async abort:" -w foo.wav
vlc --fullscreen --effect-list=spectrometer foo.wav
sleep 1
espeak "$(lscpu | grep -w "Tsx async abort: ")" -w foo.wav
vlc --fullscreen --effect-list=spectrometer foo.wav
sleep 1
echo "$(lscpu | grep -w "Tsx async abort: ")"
if [ "$(lscpu | grep -w "Tsx async abort: ")" == 'Affected' ]
then
espeak " Looking for solution " -w foo.wav
vlc --fullscreen --effect-list=spectrometer foo.wav
sleep 1
fi
#--------------------------------------------------------------------------
espeak " Checking Spec store bypass: " -w foo.wav
vlc --fullscreen --effect-list=spectrometer foo.wav
sleep 1
espeak "$(lscpu | grep -w "Spec store bypass:")" -w foo.wav
vlc --fullscreen --effect-list=spectrometer foo.wav
sleep 1
echo "$(lscpu | grep -w "Spec store bypass:")"
if [ "$(lscpu | grep -w "Spec store bypass:")" == 'Affected' ]
then
espeak " Looking for solution " -w foo.wav
vlc --fullscreen --effect-list=spectrometer foo.wav
sleep 1
fi
#-------------------------------------------------------------------------------------
espeak " Checking Mds: " -w foo.wav
vlc --fullscreen --effect-list=spectrometer foo.wav
sleep 1
espeak "$(lscpu | grep -w "Mds:")" -w foo.wav
vlc --fullscreen --effect-list=spectrometer foo.wav
sleep 1
echo "$(lscpu | grep -w "Mds:")"
vp=$(lscpu | grep -w "Mds:")
if [ "$vp" == 'Affected' ] || [ "$vp" == 'enabled' ]
then
espeak " Looking for solution " -w foo.wav
vlc --fullscreen --effect-list=spectrometer foo.wav
sleep 1
fi
#--------------------------------------------------------------------------
espeak " Checking Meltdown: " -w foo.wav
vlc --fullscreen --effect-list=spectrometer foo.wav
sleep 1
espeak "$(lscpu | grep -w "Meltdown:")" -w foo.wav
vlc --fullscreen --effect-list=spectrometer foo.wav
sleep 1
echo "$(lscpu | grep -w "Meltdown:")"
if [ "$(lscpu | grep -w "Meltdown:")" == 'Affected' ] || [ "$(lscpu | grep -w "Meltdown:")" == 'enabled' ]
then
espeak " Looking for solution " -w foo.wav
vlc --fullscreen --effect-list=spectrometer foo.wav
sleep 1
fi
#--------------------------------------------------------------------------
espeak " Checking MSpectre v1:" -w foo.wav
vlc --fullscreen --effect-list=spectrometer foo.wav
sleep 1
espeak "$(lscpu | grep -w "Spectre v1:")" -w foo.wav
vlc --fullscreen --effect-list=spectrometer foo.wav
sleep 1
echo "$(lscpu | grep -w "Spectre v1:")"
if [ "$(lscpu | grep -w "Spectre v1:")" == 'Affected' ] || [ "$(lscpu | grep -w "Spectre v1:")" == 'enabled' ]
then
espeak " Looking for solution " -w foo.wav
vlc --fullscreen --effect-list=spectrometer foo.wav
sleep 1
fi
#--------------------------------------------------------------------------
espeak " Checking Spectre v2: " -w foo.wav
vlc --fullscreen --effect-list=spectrometer foo.wav
sleep 1
espeak "$(lscpu | grep -w "Spectre v2:")" -w foo.wav
vlc --fullscreen --effect-list=spectrometer foo.wav
sleep 1
echo "$(lscpu | grep -w "Spectre v2:")"
if [ "$(lscpu | grep -w "Spectre v2:")" == 'Affected' ] || [ "$(lscpu | grep -w "Spectre v2:")" == 'enabled' ]
then
espeak " Looking for solution " -w foo.wav
vlc --fullscreen --effect-list=spectrometer foo.wav
sleep 1
fi
#--------------------------------------------------------------------------