Advertisement
sandervanvugt

luth june22

Jun 15th, 2022
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.30 KB | None | 0 0
  1. [root@localhost ~]# history
  2. 1 dnf search epel
  3. 2 dnf install epel-release
  4. 3 dnf search iftop
  5. 4 dnf install iftop
  6. 5 useradd linda
  7. 6 passwd linda
  8. 7 su - linda
  9. 8 setcap cap_net_raw+ep /usr/sbin/iftop
  10. 9 su - linda
  11. 10 grep pam_cap /etc/pam.d/*
  12. 11 dnf install libcap
  13. 12 id
  14. 13 ls -l /etc/shadow
  15. 14 ls -l /etc/passwd
  16. 15 cat /etc/shadow
  17. 16 ls -l /etc/shadow
  18. 17 man capabilities
  19. 18 ls -l $(which passwd)
  20. 19 ls -l /etc/shadow
  21. 20 cd /home/linda/
  22. 21 vim playme.sh
  23. 22 chmod +x playme.sh
  24. 23 su - linda
  25. 24 chmod u+s playme.sh
  26. 25 su - linda
  27. 26 ping google.com > /dev/null &
  28. 27 ps aux | grep 33302
  29. 28 cd /proc
  30. 29 ls
  31. 30 cd 33302
  32. 31 ls
  33. 32 cat cmdline
  34. 33 cat status
  35. 34 grep Cap status
  36. 35 capsh --decode=0000000000003000
  37. 36 history
  38. 37 cd
  39. 38 kill 33302
  40. 39 strace ping -c 1 google.com
  41. 40 strace ping -c 1 google.com | less
  42. 41 strace ping -c 1 google.com 2>&1 | less
  43. 42 dnf remove iftop
  44. 43 dnf install epel-release
  45. 44 dnf install iftop
  46. 45 useradd lisa
  47. 46 passwd lisa
  48. 47 su - lisa
  49. 48 strace iftop 2&>1 | less
  50. 49 strace iftop 2>&1 | less
  51. 50 setcap cap_net_raw+ep /usr/sbin/iftop
  52. 51 getcap /usr/sbin/iftop
  53. 52 su - lisa
  54. 53 history
  55. 54 dnf install -y git
  56. 55 git clone https://github.com/sandervanvugt/luth
  57. 56 cd luth/
  58. 57 ./countdown 13
  59. 58 strace podman run nginx 2>&1 | less
  60. 59 strace podman run -v /tmp:/tmp nginx 2>&1 | less
  61. 60 getcap $(which podman)
  62. 61 getenforce
  63. 62 vim /etc/default/grub
  64. 63 grub2-mkconfig -o /boot/grub2/grub.cfg
  65. 64 reboot
  66. 65 chvt 2
  67. 66 exit
  68. 67 chvt 2
  69. 68 exit
  70. 69 systemctl show cron.service
  71. 70 dnf provides */securetty
  72. 71 ldd $(which login)
  73. 72 cd /usr/lib64/security/
  74. 73 ls
  75. 74 man -k _pam
  76. 75 man -k pam
  77. 76 man pam_securetty
  78. 77 pwd
  79. 78 ls
  80. 79 cd /etc/pam.d/
  81. 80 ls
  82. 81 find / -name pam_limits.so
  83. 82 vim login
  84. 83 vim /etc/securetty
  85. 84 w
  86. 85 chvt 3
  87. 86 w
  88. 87 vim /etc/securetty
  89. 88 pwd
  90. 89 vim login
  91. 90 pwd
  92. 91 vim login
  93. 92 vim system-auth
  94. 93 cp login login.bak
  95. 94 vim other
  96. 95 cp other login
  97. 96 vim login
  98. 97 chvt 6
  99. 98 cat login
  100. 99 chvt 6
  101. 100 cp login.bak login
  102. 101 vim system-auth
  103. 102 chvt 6
  104. 103 cd
  105. 104 git clone git://git.sv.gnu.org/coreutils
  106. 105 rpm -qa | grep coreutils
  107. 106 cd coreutils/
  108. 107 ls
  109. 108 cd src
  110. 109 ls
  111. 110 ls -l | less
  112. 111 less dirname.c
  113. 112 cd ..
  114. 113 ls
  115. 114 cd src
  116. 115 ls
  117. 116 cd ..
  118. 117 ls
  119. 118 vim Makefile.am
  120. 119 cd
  121. 120 ./coreutils
  122. 121 cd luth/
  123. 122 ./countdown 13
  124. 123 reboot
  125. 124 w
  126. 125 chvt 5
  127. 126 cd /etc/pam.d
  128. 127 vim system-auth
  129. 128 chvt 2
  130. 129 pwd
  131. 130 ls
  132. 131 cd ..
  133. 132 ls
  134. 133 passwd linda
  135. 134 exit
  136. 135 ps fax | less
  137. 136 echo test > /tmp/test
  138. 137 chmod 600 /tmp/test
  139. 138 ls -l /tmp/test
  140. 139 podman run -it -v /tmp/test:/tmp/test:Z --uidmap 0:100000:5000 fedora sh
  141. 140 podman run -it -v /tmp/test:/tmp/test:Z fedora sh
  142. 141 ls -l /tmp/test
  143. 142 dnf install -y httpd
  144. 143 systemctl show httpd.service
  145. 144 export EDITOR=/usr/bin/vim; systemctl edit httpd.service
  146. 145 systemctl cat httpd.service
  147. 146 systemctl restart httpd.service
  148. 147 systemctl status httpd.service
  149. 148 mount
  150. 149 systemctl status httpd.service
  151. 150 cd /sys
  152. 151 find . -name "httpd"
  153. 152 find . -name "3876"
  154. 153 cd
  155. 154 luth/countdown 13
  156. 155 systemctl edit httpd.service
  157. 156 systemctl cat httpd.service
  158. 157 systemctl start httpd
  159. 158 systemctl status httpd
  160. 159 less /proc/4743/status
  161. 160 cd /proc/4743
  162. 161 ls
  163. 162 cat mem
  164. 163 cd
  165. 164 ip a
  166. 165 ss
  167. 166 ss | less
  168. 167 ss -tunap | less
  169. 168 exit
  170. 169 lsns
  171. 170 ls /proc/*/ns
  172. 171 unshare --fork --pid --mount-proc zsh
  173. 172 dnf install zsh
  174. 173 unshare --fork --pid --mount-proc zsh
  175. 174 exit
  176. 175 ps fax | less
  177. 176 podman run -it busybox sh
  178. 177 podman top --latest user huser
  179. 178 ls -l /tmp/test
  180. 179 cat > myfifo
  181. 180 exit
  182. 181 dd if=/dev/sda of=/dev/null &
  183. 182 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement