Advertisement
sandervanvugt

linux under the hood nov23

Nov 13th, 2023
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.92 KB | None | 0 0
  1. [root@localhost ~]# history
  2. 1 history -w
  3. 2 history
  4. 3 lsmod
  5. 4 modinfo xfs
  6. 5 modinfo cdrom
  7. 6 history
  8. 7 lsblk
  9. 8 modprobe -r cdrom
  10. 9 modprobe --remove-dependencies cdrom
  11. 10 lsmod | grep cdrom
  12. 11 modprobe cdrom debug=true
  13. 12 modprobe -c | grep cdrom
  14. 13 vim /etc/modprobe.d/cdrom.conf
  15. 14 ls /sys/module/*/parameters
  16. 15 ls /proc
  17. 16 mount | grep proc
  18. 17 less /proc/meminfo
  19. 18 ls sys
  20. 19 ls /proc/sys
  21. 20 ls -l /proc
  22. 21 cd /proc
  23. 22 less cpuinfo
  24. 23 lscpu
  25. 24 less meminfo
  26. 25 cat cmdline
  27. 26 less modules
  28. 27 lsmod
  29. 28 less filesystems
  30. 29 less devices
  31. 30 ls -l /dev/sda2
  32. 31 ls -l /dev/nvme0n1p2
  33. 32 less devices
  34. 33 ls
  35. 34 cd 3009
  36. 35 ls
  37. 36 cat cmdline
  38. 37 cd ..
  39. 38 ps
  40. 39 ls
  41. 40 cat 2820/cmdline
  42. 41 cd 999
  43. 42 ls
  44. 43 cat cmdline
  45. 44 cat syscall
  46. 45 ls
  47. 46 less status
  48. 47 cd
  49. 48 git clone https://github.com/sandervanvugt/luth
  50. 49 history
  51. 50 cat /proc/sys/vm/swappiness
  52. 51 echo 50 > /proc/sys/vm/swappiness
  53. 52 cat /proc/sys/vm/swappiness
  54. 53 vim /etc/sysctl.conf
  55. 54 cd /etc/sysctl.d/
  56. 55 ls
  57. 56 ls -l
  58. 57 vim 98-swappiness.conf
  59. 58 cd
  60. 59 echo h > /proc/sysrq-trigger
  61. 60 dmesg
  62. 61 dnf install watchdog
  63. 62 systemctl enable --now watchdog
  64. 63 systemctl status watchdog
  65. 64 modprobe -i softdog
  66. 65 rm /etc/modprobe.d/cdrom.conf -f
  67. 66 lsmod | grep soft
  68. 67 #echo c> /proc/sysrq-trigger
  69. 68 history -w
  70. 69 history
  71. 70 vim /etc/watchdog.conf
  72. 71 dnf install bpftrace
  73. 72 cd luth/
  74. 73 ls
  75. 74 cat disk_io.bt
  76. 75 bpftrace luth/disk_io.bt
  77. 76 bpftrace disk_io.bt
  78. 77 uname -r
  79. 78 podman run -it docker.io/library/ubuntu:latest
  80. 79 history -w
  81. 80 history
  82. 81 vim /etc/watchdog.conf
  83. 82 dnf install bpftrace
  84. 83 cd luth/
  85. 84 ls
  86. 85 cat disk_io.bt
  87. 86 bpftrace luth/disk_io.bt
  88. 87 bpftrace disk_io.bt
  89. 88 uname -r
  90. 89 podman run -it docker.io/library/ubuntu:latest
  91. 90 history -w
  92. 91 sync
  93. 92 reboot
  94. 93 history
  95. 94 man 2 execve
  96. 95 ps aux | less
  97. 96 ps aux | grep fire
  98. 97 cd /proc/4402
  99. 98 cd fd
  100. 99 ls -l | less
  101. 100 cd
  102. 101 top
  103. 102 ps -T -p 2736
  104. 103 dnf install epel-release
  105. 104 dnf install -y htop
  106. 105 cd luth/
  107. 106 ls
  108. 107 gcc -o zombie zombie.c
  109. 108 ls
  110. 109 ./zombie &
  111. 110 rm zombie
  112. 111 vim zombie.c
  113. 112 gcc -o zombie zombie.c
  114. 113 ./zombie &
  115. 114 ps aux | grep defunc
  116. 115 kill -9 4805
  117. 116 ps aux | grep defunc
  118. 117 ps -A -ostat,pid,ppid | grep -Z
  119. 118 ps -A -ostat,pid,ppid
  120. 119 ps -A -ostat,pid,ppid | grep -Z
  121. 120 ps -A -ostat,pid,ppid | grep -Z --
  122. 121 kill -s SIGCHLD 4804
  123. 122 ps aux | grep defunc
  124. 123 ps aux | grep 4804
  125. 124 kill -s SIGCHLD 3534
  126. 125 ps aux | grep defunc
  127. 126 kill -p 4805
  128. 127 kill -9 4805
  129. 128 ps aux | grep defunc
  130. 129 ps aux | grep 3534
  131. 130 history -w
  132. 131 chrt --helpo
  133. 132 chrt --help
  134. 133 chrt -r dd if=/dev/zero of=/dev/null
  135. 134 chrt -r "dd if=/dev/zero of=/dev/null"
  136. 135 chrt -r 20 "dd if=/dev/zero of=/dev/null"
  137. 136 history
  138. 137 chrt -r 20 dd if=/dev/zero of=/dev/null
  139. 138 history
  140. 139 ls -l /etc/shadow
  141. 140 chmod u-rw /etc/shadow
  142. 141 ls -l /etc/shadow
  143. 142 whoami
  144. 143 cat /etc/shadow
  145. 144 ls -l /etc/shadow
  146. 145 man 7 capabilities
  147. 146 ldd $(which ls)
  148. 147 man libc
  149. 148 strace ls
  150. 149 strace ls | less
  151. 150 strace ls 2> lsout.txt
  152. 151 less lsout.txt
  153. 152 strace -c ls
  154. 153 strace -c echo *
  155. 154 less lsout.txt
  156. 155 exit
  157. 156 top
  158. 157 less /proc/999/maps
  159. 158 pmap --help
  160. 159 pmap 999
  161. 160 echo $$
  162. 161 dnf install -y zsh
  163. 162 zsh
  164. 163 echo $$
  165. 164 exec zsh
  166. 165 echo $$
  167. 166 exec /bin/zsh
  168. 167 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement