sandervanvugt

Ruth prerelease nov23 day1

Nov 20th, 2023
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.54 KB | None | 0 0
  1. oot@localhost system]# history
  2. 1 echo 0 > /sys/bus/cpu/devices/cpu1/online
  3. 2 exit
  4. 3 echo 1 > /sys/bus/cpu/devices/cpu1/online
  5. 4 killall dd
  6. 5 exit
  7. 6 systemctl status sshd
  8. 7 systemctl disable --now sshd.socket
  9. 8 systemctl disable --now sshd.service
  10. 9 systemctl show sshd.service
  11. 10 systemctl edit sshd.service
  12. 11 systemctl disable --now sshd.socket
  13. 12 systemctl start sshd.service
  14. 13 systemctl cat sshd.service
  15. 14 systemctl status sshd.service
  16. 15 systemctl show sshd.service
  17. 16 man systemd.directives
  18. 17 systemctl edit sshd.service
  19. 18 systemctl cat sshd.service
  20. 19 systemctl status sshd.service
  21. 20 cat /etc/fstab
  22. 21 systemctl list-units -t mount
  23. 22 systemctl list-units -t swap
  24. 23 cd /run/systemd/generator/
  25. 24 ls
  26. 25 cat boot.mount
  27. 26 cp boot.mount /etc/systemd/system/
  28. 27 cd /etc/systemd/system/
  29. 28 cat boot.mount
  30. 29 systemctl enable boot.mount
  31. 30 systemctl status.service
  32. 31 systemctl status ssh.service
  33. 32 systemctl status sshd.service
  34. 33 systemctl cat sshd.service
  35. 34 systemctl list-dependencies
  36. 35 pwd
  37. 36 vim boot.mount
  38. 37 umount /boot
  39. 38 mount | grep boot
  40. 39 systemctl enable --now boot.mount
  41. 40 vim /etc/fstab
  42. 41 reboot
  43. 42 systemctl cat sshd.service
  44. 43 systemctl -t help
  45. 44 systemctl status sshd
  46. 45 journalctl -u sshd
  47. 46 journalctl -ux sshd
  48. 47 journalctl -xu sshd
  49. 48 systemctl status
  50. 49 systemctl stop sshd; systemctl start sshd
  51. 50 systemctl cat sshd
  52. 51 systemctl status sshd
  53. 52 kill -9 3373
  54. 53 systemctl status sshd
  55. 54 systemctl cat sshd.socket
  56. 55 systemctl disable --now sshd
  57. 56 systemctl status sshd
  58. 57 ps aux | grep sshd
  59. 58 systemctl enable --now sshd.socket
  60. 59 ps aux | grep ssh
  61. 60 systemctl status sshd
  62. 61 ssh localhost
  63. 62 ssh student@localhost
  64. 63 systemctl status boot.mount
  65. 64 cd /run/systemd/generator/
  66. 65 cat -.mount
  67. 66 cat -- -.mount
  68. 67 cp -- -.mount /etc/systemd/system/
  69. 68 cd /etc/systemd/system/
  70. 69 vim -- -.mount
  71. 70 systemctl enable --now -- -.mount
  72. 71 vim /etc/default/grub
  73. 72 vim /boot/grub2/grub.cfg
  74. 73 vim /etc/fstab
  75. 74 reboot
  76. 75 ls /run/systemd/generator/
  77. 76 cat /etc/fstab
  78. 77 cd /boot/grub2/
  79. 78 vim grub.cfg
  80. 79 cd /etc/default/
  81. 80 vim grub
  82. 81 grub2-mkconfig -o /boot/grub2/grub.cfg
  83. 82 reboot
  84. 83 systemctl start graphical.target
  85. 84 vim hello
  86. 85 ls -l /etc/shadow
  87. 86 cat /etc/shadow
  88. 87 mv /etc/passwd /etc/passwd.bak
  89. 88 reboot
  90. 89 ls -Z /etc/passwd
  91. 90 df -h
  92. 91 ls -l /dev/mapper/cs-root
  93. 92 ls -l /dev/dm-0
  94. 93 less /proc/devices
  95. 94 lsmod
  96. 95 lsmod | grep dm
  97. 96 ls
  98. 97 ls /home/student/
  99. 98 /home/student/containers/countdown 30
  100. 99 ldd $(which ls)
  101. 100 cd /proc
  102. 101 ls
  103. 102 cd 4634
  104. 103 ls
  105. 104 cat cmdline
  106. 105 cd
  107. 106 ps aux | grep fire
  108. 107 cd /proc/5072
  109. 108 cat cmdline
  110. 109 ls
  111. 110 cd fd
  112. 111 ls -l | less
  113. 112 stat /bin/ls
  114. 113 cd
  115. 114 reboot
  116. 115 modprobe -c | grep cdrom
  117. 116 cd /sys/module/cdrom/
  118. 117 ls
  119. 118 pwd
  120. 119 cd /etc/modprobe.d/
  121. 120 vim cdrom.conf
  122. 121 reboot
  123. 122 modprobe -c | grep cdrom
  124. 123 cd /sys/module/cdrom/
  125. 124 ls
  126. 125 ls sections/
  127. 126 cat sections/__param
  128. 127 cd
  129. 128 ls
  130. 129 /home/student/containers/countdown 10
  131. 130 cd /proc
  132. 131 cat cpuinfo
  133. 132 grep vmx cpuinfo
  134. 133 lscpu
  135. 134 less meminfo
  136. 135 cat cmdline
  137. 136 cat vmstat
  138. 137 cat modules
  139. 138 lsmod
  140. 139 cat filesystems
  141. 140 cat devices
  142. 141 cat swaps
  143. 142 cat mounts
  144. 143 cat /etc/mtab
  145. 144 ls
  146. 145 cd 2403
  147. 146 ls
  148. 147 cat status
  149. 148 ps aux | grep 2402
  150. 149 cd /proc
  151. 150 ls
  152. 151 cd sys
  153. 152 ls
  154. 153 cd net
  155. 154 ls
  156. 155 cd ipv6
  157. 156 ls
  158. 157 sysctl -a
  159. 158 sysctl -a | grep disable
  160. 159 cd conf
  161. 160 cd all/
  162. 161 ls
  163. 162 ip a
  164. 163 echo 1 > disable_ipv6
  165. 164 ip a
  166. 165 sysctl -a | grep disable
  167. 166 vim /etc/sysctl.d/50-disable-ipv6.conf
  168. 167 cd /proc
  169. 168 ls
  170. 169 echo h > /proc/sysrq-trigger
  171. 170 dmesg
  172. 171 history -w
  173. 172 dnf install -y watchdog
  174. 173 systemctl enable --now watchdog
  175. 174 systemctl status watchdog
  176. 175 modprobe -i softdog
  177. 176 history -w
  178. 177 dnf install -y bpftrace
  179. 178 git clone https://github.com/sandervanvugt/luth
  180. 179 cd luth/
  181. 180 ls
  182. 181 less disk_io.bt
  183. 182 bpftrace disk_io.bt
  184. 183 history
  185. 185 cd ..
  186. 186 git clone https://github.com/sandervanvugt/bash
  187. 187 git clone https://github.com/sandervanvugt/bash-scripting
  188. 188 cd bash-scripting/
  189. 189 ls
  190. 190 vim network
  191. 191 cd /usr/lib/systemd/system
  192. 192 ls
  193. 193 vim sshd.service
  194. 194 cd /etc/systemd/system/
  195. 195 ls
  196. 196 systemctl edit sshd.service
  197. 197 export EDITOR=/usr/bin/vim
  198. 198 systemctl edit sshd.service
  199. 199 systemctl cat sshd.service
  200. 200 systemctl status sshd.service
  201. 201 systemctl disable --now sshd.socket
  202. 202 systemctl enable --now sshd.service
  203. 203 systemctl status sshd.service
  204. 204 systemctl edit sshd.service
  205. 205 systemctl status sshd.service
  206. 206 kill -9 24338
  207. 207 systemctl status sshd.service
  208. 208 systemctl -t help
  209. 209 ls -l /etc/cron*/
  210. 210 systemctl list-unit-files cups*
  211. 211 systemctl disable --now sshd
  212. 212 systemctl enable --now sshd.socket
  213. 213 ss -tunap | grep 22
  214. 214 systemctl status sshd
  215. 215 ssh student@localhost
  216. 216 systemctl cat sshd.socket
  217. 217 systemctl status sshd.socket
  218. 218 systemctl status sshd.service
  219. 219 systemctl show sshd.service
  220. 220 man systemd.directives
  221. 221 man systemd.exec
  222. 222 systemctl edit sshd.service
  223. 223 history
  224.  
  225.  
  226. UEFI system
  227. [root@localhost ~]# history
  228. 1 grub2-set-password
  229. 2 usermod -aG wheel student
  230. 3 reboot
  231. 4 xxd -l 512 /dev/sda
  232. 5 dnf provides */grubx64.efi
  233. 6 man dnf
  234. 7 rm /boot/efi/EFI/redhat/grubx64.efi
  235. 8 cd /boot/efi/EFI/centos/
  236. 9 ls
  237. 10 rm -f grubx64.efi
  238. 11 reboot
  239. 12 lsblk
  240. 13 xxd -l 512 /dev/sda
  241. 14 ls
  242. 15 cd trouble/
  243. 16 ls
  244. 17 ./countdown 10
  245. 18 cd /boot/efi/
  246. 19 ls
  247. 20 cd EFI
  248. 21 ls
  249. 22 tree
  250. 23 efibootdump
  251. 24 efibootmgr
  252. 25 reboot
  253. 26 free -
  254. 27 free -m
  255. 28 cd /etc/default/
  256. 29 vim grub
  257. 30 cd /boot/grub2
  258. 31 ls -l
  259. 32 cd ../
  260. 33 cd efi/EFI/centos/
  261. 34 ,s
  262. 35 ls
  263. 36 ls -l grub.cfg
  264. 37 #grub2-mkconfig -o /boot/grub2/grub.cfg
  265. 38 cp /boot/grub2/grub.cfg /boot/grub2/grub.cfg.bak
  266. 39 grub2-mkconfig -o /boot/grub2/grub.cfg
  267. 40 reboot
  268. 41 free -m
  269. 42 systemctl status mount.target
  270. 43 systemctl status boot.mount
  271. 44 mount | grep boot
  272. 45 cat /etc/fstab
  273. 46 cd /run/systemd/generator/
  274. 47 ls
  275. 48 cp boot-efi.mount /etc/systemd/system/
  276. 49 cp -- -.mount /etc/systemd/system
  277. 50 cd /etc/systemd/system/
  278. 51 vim boot-efi.mount
  279. 52 systemctl enable --now boot-efi.mount
  280. 53 systemctl list-dependencies
  281. 54 vim -- -.mount
  282. 55 systemctl enable -- -.mount
  283. 56 vim /etc/fstab
  284. 57 reboot
  285. 58 mount -o remount,rw /
  286. 59 systemctl start multi-user.target
  287. 60 touch hhh
  288. 61 cat /etc/fstab
  289. 62 vim /etc/default/grub
  290. 63 ls -l /boot/grub2/grub.cfg
  291. 64 grub2-mkconfig -o /boot/grub2/grub.cfg
  292. 65 reboot
  293. 66 history
  294.  
Advertisement
Add Comment
Please, Sign In to add comment