-
Notifications
You must be signed in to change notification settings - Fork 45
/
nov2024.txt
355 lines (355 loc) · 8.6 KB
/
nov2024.txt
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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
1 cat /etc/passwd
2 mv /etc/shadow /etc/shadow.bak
3 reboot
4 systemctl start graphical.target
5 dnf install -y git
6 git clone https://github.com/sandervanvugt/luth
7 cd luth/
8 ls
9 ./countdown 12
10 echo hello
11 lsblk
12 cat /proc/modules
13 cd /proc
14 ls
15 cat devices
16 lsmod
17 modinfo e1000e
18 ls -l /dev/nvme*
19 ip a
20 ls -l /dev/en*
21 ldd $(which ls)
22 ps aux | grep firef
23 cd /proc/35629
24 ls
25 cat status
26 cd fd
27 ls
28 grep root /proc/* 2> /dev/null
29 ls -l
30 lsof --help | less
31 pwd
32 lsof -p 35629
33 podman run -d docker.io/library/nginx
34 podman ps
35 podman exec -it 0da sh
36 cd
37 cd /proc/sys
38 ls
39 cd /etc/modprobe.d/
40 ls
41 cd /usr/lib/modprobe.d/
42 ls
43 vim dist-alsa.conf
44 cd
45 cd luth/
46 ./countdown 12
47 cd /proc/sys
48 ls
49 cd vm/
50 pwd
51 cat swappiness
52 man proc
53 mount | grep proc
54 echo 30 > /proc/sys/vm/swappiness
55 cat swappiness
56 sysctl -a
57 sysctl -a | wc -l
58 vim /etc/sysctl.conf
59 dnf install -y zsh
60 echo $SHELL
61 ps aux
62 unshare --fork --pid --mount-proc zsh
63 ps faux | grep -B 5 zsh
64 lsns -p $(pidof zsh)
65 nsenter -a -t $(pidof zsh) ps aux
66 dnf install -y httpd
67 systemctl show httpd
68 systemctl edit httpd
69 systemctl start httpd
70 systemctl status httpd
71 mount | grep cgroup
72 cd /sys/fs/cgroup/
73 ls
74 mkdir mycgroup
75 ls mycgroup/
76 dd if=/dev/zero of=/dev/null &
77 echo $! > cgroup.procs
78 echo 25 > cpu.weight
79 echo 50 > cpu.weight
80 cd mycgroup/
81 ps aux | grep dd
82 echo 39095 > cgroup.procs
83 echo 39085 > cgroup.procs
84 echo 50 > cpu.weight
85 echo 0 > /sys/bus/cpu/devices/cpu1/online
86 top
87 dd if=/dev/zero of=/dev/null &
88 top
89 cd
90 history > /tmp/history-08nov24.txt
91 ip a
92 poweroff
93 cd /proc
94 less meminfo
95 top
96 less /proc/meminfo
97 cd sys/vm/
98 ls
99 free -m
100 echo 2 > drop_caches
101 free -m
102 man proc
103 echo 3 > drop_caches
104 free -m
105 man proc
106 cat swappiness
107 cat /etc/sysctl.conf
108 top
109 grep -i virt /proc/meminfo
110 less /proc/meminfo
111 arch
112 less /proc/cpuinfo
113 top
114 slabtop
115 pwd
116 ls
117 cat dirty_expire_centisecs
118 cat dirty_writeback_centisecs
119 cd
120 cd luth/
121 ./countdown 12
122 top
123 reboot
124 systemctl set-default graphical.target
125 free -m
126 vmstat
127 vmstat 2 40
128 top
129 reboot
130 free -m
131 df -h
132 dd if=/dev/zero of=/swapfile bs=1M count=1024
133 chmod 0600 /swapfile
134 mkswap /swapfile
135 free -m
136 swapon /swapfile
137 free -m
138 echo 90 >/proc/sys/vm/swappiness
139 free -m
140 echo 60 >/proc/sys/vm/swappiness
141 less /proc/meminfo
142 cd /proc/sys/vm/
143 ls
144 echo 200 > nr_hugepages
145 free -m
146 cat /proc/meminfo
147 vim /etc/sysctl.conf
148 reboot
149 free -m
150 cat /proc/meminfo
151 strace ls
152 strace -c
153 strace -c ls
154 mount
155 mount | grep huge
156 cd /proc
157 ls
158 echo h > sysrq-trigger
159 dmesg
160 echo f > sysrq-trigger
161 vim /etc/sysctl.conf
162 reboot
163 top
164 cat /proc/1977/oom_score
165 top
166 cat /proc/2653/oom_score
167 cat /proc/1/oom_score
168 ps aux | grep top
169 sleep infinity &
170 cat /proc/2865/oom_score
171 top
172 echo f > /proc/sysrq-trigger
173 dmesg
174 echo -400 > /proc/$(pidof gnome-shell)/oom_score_adj
175 top
176 echo f > /proc/sysrq-trigger
177 dmesg
178 systemctl list-unit-files | grep gnome
179 systemctl show sshd.service
180 systemctl edit sshd.service
181 systemctl status sshd.service
182 cat /proc/987/oom_score_adj
183 cat /proc/987/oom_score
184 less /proc/meminfo
185 slabinfo
186 slabinfo | less
187 cd /proc/sys/vm
188 ls
189 cd ../kernel/
190 ls
191 cd
192 history
193 history > /tmp/nov2024.txt
194 ip a
195 poweroff
196 dnf install nfs-utils
197 mkdir -p /nfsdata /home/ldap/ldapuser{1..9}
198 ls -l /home/ldap
199 vim /etc/exports
200 systemctl enable --now nfs-server
201 systemctl status nfs-server
202 poweroff
203 hostnamectl hostname nfsserver.example.local
204 ip a
205 vim /etc/sysctl.conf
206 reboot
207 ps faux | grep -B 1 sleep
208 ps faux | less
209 cd luth/
210 ls
211 gcc -o zombie zombie.c
212 ls
213 ./zombie &
214 top
215 vim zombie.c
216 gcc -o zombie zombie.c
217 ./zombie &
218 ps aux | grep defunc
219 ps aux | grep -B 5 defunc
220 ps faux | grep -B 5 defunc
221 kill 4425
222 ps faux | grep -B 5 defunc
223 kill 4424
224 ps faux | grep -B 5 defunc
225 ./zombie &
226 ps faux | grep -B 5 defunc
227 kill -s SIGCHLD 4438
228 ps faux | grep -B 5 defunc
229 kill -9 4438
230 ps faux | grep -B 5 defunc
231 ps aux | grep sleep
232 chrt -p 3535
233 man chrt
234 chrt --max
235 dd if=/dev/zero of=/dev/null &
236 chrt -p 4488
237 top
238 man chrt
239 chrt -i -p 0 4488
240 top
241 dd if=/dev/zero of=/dev/null &
242 top
243 echo 0 > /sys/bus/cpu/devices/cpu1/online
244 top
245 chrt -r 50 dd if=/dev/zero of=/dev/null &
246 top
247 echo 1 > /sys/bus/cpu/devices/cpu1/online
248 top
249 dd if=/dev/zero of=/dev/null &
250 top
251 systemctl show sshd
252 taskset --help
253 ps aux | grep dd
254 taskset -pc 1 4488
255 top
256 echo 0 > /sys/bus/cpu/devices/cpu1/online
257 top
258 killall dd
259 dd if=/dev/zero of=/dev/null &
260 pidof dd
261 renice -5 4569
262 renice 10 4568
263 top
264 chrt -r 50 dd if=/dev/zero of=/dev/null &
265 toop
266 top
267 kill 4609
268 history
269 cd /proc/sys
270 ls
271 cd kernel/
272 ls
273 ls sched*
274 man proc
275 man sched
276 top
277 killall dd
278 history
279 echo 1 > /sys/bus/cpu/devices/cpu1/online
280 cd
281 mkfifo myfifo
282 ls -l myfifo
283 cat myfifo
284 ls -l myfifo
285 cat myfifo
286 unlink mmyfi
287 unlink myfifo
288 ls
289 cd luth/
290 ls
291 cat dbus-commands.sh
292 dbus-send --system --print-reply --dest=org.freedesktop.NetworkManager /org/freedesktop/NetworkManager org.freedesktop.DBus.Properties.Get string:"org.freedesktop.NetworkManager" string:"NetworkingEnabled"
293 dbus-send --system --print-reply --dest=org.freedesktop.NetworkManager /org/freedesktop/NetworkManager/ActiveConnection/6 org.freedesktop.DBus.Properties.Get string:"org.freedesktop.NetworkManager.Connection.Active" string:"Devices"
294 busctl list
295 ldd $(which ls)
296 cd /proc/
297 ls
298 cd 2353
299 cat cmdline
300 cd ../1987
301 cat cmdline
302 cat status
303 vmstat
304 vmstat -s
305 cd
306 strace ls |& less
307 strace -c ls
308 ls *
309 strace -c ls *
310 strace -c ls /etc/*
311 strace -d echo /etc/*
312 strace -d echo *
313 strace -c echo /etc/*
314 strace -c ls *
315 strace echo hello > hellofile
316 strace echo hello > hellofile |& less
317 strace echo hello > hellofile
318 dnf install -y netcat
319 netcat -l 8080
320 strace netcat -l 8080
321 history
322 ps aux
323 ps aux | grep ssh
324 pmap --help
325 pmap 1018
326 cat /proc/$(pidof sshd)/status
327 cat /proc/$(pidof sshd)/maps
328 pmap -X $(pidof sshd)
329 pmap -X $(pidof sshd) | less
330 echo $$
331 ps aux | grep 3556
332 dnf install -y zsh
333 zsh
334 exec zsh
335 history | grep cpu
336 echo 1 > /sys/bus/cpu/devices/cpu1/online
337 cp stress* /etc/systemd/system
338 systemctl start stress1
339 systemctl start stress2
340 top
341 echo 0 > /sys/bus/cpu/devices/cpu1/online
342 top
343 cat /sys/fs/cgroup/system.slice/
344 cat /sys/fs/cgroup/system.slice/stress1.service/cpu.weight
345 cat /sys/fs/cgroup/system.slice/stress2.service/cpu.weight
346 echo 800 > /sys/fs/cgroup/system.slice/stress2.service/cpu.weight
347 top
348 killall dd
349 echo 1 > /sys/bus/cpu/devices/cpu1/online
350 top
351 systemctl start stress1
352 systemctl start stress2
353 top
354 cd
355 history > /tmp/nov2024.txt