Advertisement
sandervanvugt

trouble april23

Apr 7th, 2023
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.00 KB | None | 0 0
  1. [root@localhost ~]# history
  2. 1 getenforce
  3. 2 touch /.autorelabel
  4. 3 vim /etc/default/grub
  5. 4 grub2-mkconfig -o /boot/grub2/grub.cfg
  6. 5 history
  7. 6 mount -r remount,rw /
  8. 7 mount -o remount,rw /
  9. 8 reboot
  10. 9 dnf install -y git
  11. 10 git clone https://github.com/sandervanvugt/trouble
  12. 11 cd trouble/
  13. 12 ls
  14. 13 ./countdown 12
  15. 14 cd /boot/
  16. 15 ls
  17. 16 cp initramfs-5.14.0-47.el9.x86_64.img initramfs-5.14.0-47.el9.x86_64.img.bak
  18. 17 mv initramfs-5.14.0-47.el9.x86_64.img initramfs-5.15.0-47.el9.x86_64.img
  19. 18 reboot
  20. 19 cd /boot
  21. 20 ls
  22. 21 uname -r
  23. 22 mv initramfs-5.15.0-47.el9.x86_64.img initramfs-5.14.0-47.el9.x86_64.img
  24. 23 reboot
  25. 24 vim /etc/modprobe.d/firewalld-sysctls.conf
  26. 25 ls -l /etc/modules-load.d/
  27. 26 vim /etc/modules-load.d/softdog
  28. 27 vim /etc/modprobe.d/softdog
  29. 28 rm -f /etc/modules-load.d/softdog
  30. 29 reboot
  31. 30 lsmod | grep soft
  32. 31 lsblk
  33. 32 xxd -l 512 /dev/sda
  34. 33 fdisk -l /dev/sda
  35. 34 dd if=/dev/zero of=/dev/sda bs=512 count=1
  36. 35 xxd -l 512 /dev/sda
  37. 36 reboot
  38. 37 chvt 2
  39. 38 exit
  40. 39 chvt 3
  41. 40 chvt 2
  42. 41 xxd /dev/sda | less
  43. 42 ldd $(which login)
  44. 43 cd /etc/pam.d/
  45. 44 ls
  46. 45 vim login
  47. 46 vim system-auth
  48. 47 cd /usr/lib64/security/
  49. 48 ls
  50. 49 chvt 4
  51. 50 man pam_securetty
  52. 51 pwd
  53. 52 cd /etc/pam.d/
  54. 53 vim login
  55. 54 vim /etc/securetty
  56. 55 chvt 4
  57. 56 ls
  58. 57 cp login login.bak
  59. 58 vim login
  60. 59 reboot
  61. 60 vim /etc/pam.d/login
  62. 61 chvt 4
  63. 62 vim /etc/pam.d/login
  64. 63 vim /etc/pam.d/system-auth
  65. 64 chvt 4
  66. 65 man pam_permit
  67. 66 mv /bin/mount /bin/tnuom
  68. 67 reboot
  69. 68 touch ff
  70. 69 rpm -qf /bin/mount
  71. 70 dnf install util-linux-core
  72. 71 ip a
  73. 72 systemctl start NetworkManager
  74. 73 ip a
  75. 74 ifup ens33
  76. 75 ip link up ens33
  77. 76 ip link help
  78. 77 ip link help | less
  79. 78 reboot
  80. 79 history
  81.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement