SHOW:
|
|
- or go back to the newest paste.
| 1 | 1 vim countdown.sh | |
| 2 | 2 chmod +x countdown.sh | |
| 3 | 3 ./countdown.sh 16 | |
| 4 | 4 exit | |
| 5 | 5 tar -czvf /root/archive.tgz /etc | |
| 6 | 6 ls -l /root/archive.tgz | |
| 7 | 7 tar tvf /root/archive.tgz | |
| 8 | 8 grep -v '^$' /etc/dnsmasq.conf | |
| 9 | 9 grep -v '^$' /etc/dnsmasq.conf | sort > /var/tmp/dnslines.txt | |
| 10 | 10 useradd linda | |
| 11 | 11 find / -user linda | |
| 12 | 12 find / -user linda 2>/dev/null | |
| 13 | 13 mkdir /root/userfiles; find / -user linda -exec cp {} /root/userfiles \;
| |
| 14 | 14 history | |
| 15 | 15 ./countdown.sh 13 | |
| 16 | 16 ./countdown.sh 12 | |
| 17 | 17 cat countdown.sh | |
| 18 | 18 #tar -cvzf /root/archive2.tgz /etc | |
| 19 | 19 history | |
| 20 | 20 vim countdown.sh | |
| 21 | 21 git clone https://github.com/sandervanvugt/rhcsa | |
| 22 | 22 cat /etc/passwd | |
| 23 | 23 head -1 /etc/passwd | |
| 24 | 24 tail /etc/group | |
| 25 | 25 id student | |
| 26 | 26 id linda | |
| 27 | 27 su - linda | |
| 28 | 28 passwd lindaA | |
| 29 | 29 su - linda | |
| 30 | 30 usermod -aG wheel linda | |
| 31 | 31 id linda | |
| 32 | 32 su - linda | |
| 33 | 33 history | |
| 34 | 34 vim /etc/login.defs | |
| 35 | 35 cd /etc/skel/ | |
| 36 | 36 ls | |
| 37 | 37 ls -a | |
| 38 | 38 ls -a /home/linda | |
| 39 | 39 pwd | |
| 40 | 40 passwd --help | |
| 41 | 41 chage linda | |
| 42 | 42 grep linda /etc/shadow | |
| 43 | 43 man 5 shadow | |
| 44 | 44 cd | |
| 45 | 45 grep linda /etc/passwd | |
| 46 | 46 grep linda /etc/group | |
| 47 | 47 id linda | |
| 48 | 48 ls -l | |
| 49 | 49 chmod -x countdown.sh | |
| 50 | 50 ls -l | |
| 51 | 51 ./countdown.sh | |
| 52 | 52 chmod +x countdown.sh | |
| 53 | 53 ./countdown.sh | |
| 54 | 54 countdown.sh | |
| 55 | 55 mkdir /data/files | |
| 56 | 56 mkdir -p /data/files | |
| 57 | 57 cd /data | |
| 58 | 58 groupadd sales | |
| 59 | 59 usermod -aG sales linda | |
| 60 | 60 mkdir sales | |
| 61 | 61 ls -l | |
| 62 | 62 chgrp sales sales | |
| 63 | 63 ls -l | |
| 64 | 64 chmod 770 sales | |
| 65 | 65 ls -l | |
| 66 | 66 chmod g-x sales | |
| 67 | 67 ls -l | |
| 68 | 68 chmod g+x sales | |
| 69 | 69 ls -l | |
| 70 | 70 cd sales | |
| 71 | 71 touch myfile | |
| 72 | 72 ls -l | |
| 73 | 73 ln -s myfile linkfile | |
| 74 | 74 ls -l | |
| 75 | 75 history | |
| 76 | 76 cd | |
| 77 | 77 ./countdown.sh 12 | |
| 78 | 78 pwd | |
| 79 | 79 cd /home/linda | |
| 80 | 80 touch rootfile | |
| 81 | 81 ls -l | |
| 82 | 82 su - linda | |
| 83 | 83 pwd | |
| 84 | 84 vim playme.sh | |
| 85 | 85 chmod +x playme.sh | |
| 86 | 86 su - linda | |
| 87 | 87 chmod u+s playme.sh | |
| 88 | 88 ls -k | |
| 89 | 89 ls -l | |
| 90 | 90 find / -perm /4000 2>/dev/null | |
| 91 | 91 find / -perm /4000 -exec ls -l {} \; 2>/dev/null
| |
| 92 | 92 ls -l /etc/shadow | |
| 93 | 93 tail -1 /etc/shadow | |
| 94 | 94 useradd -G sales lisa | |
| 95 | 95 grep sales /etc/group | |
| 96 | 96 passwd lisa | |
| 97 | 97 su - lisa | |
| 98 | 98 chmod g+s /data/sales | |
| 99 | 99 ls -ld /data/sales | |
| 100 | 100 su - lisa | |
| 101 | 101 cd /data | |
| 102 | 102 chmod +t sales/ | |
| 103 | 103 ls -l | |
| 104 | 104 su - lisa | |
| 105 | 105 ls -l | |
| 106 | 106 chgrp wheel files | |
| 107 | 107 ls -l | |
| 108 | 108 xxd -l 512 /dev/sda | |
| 109 | 109 lsblk | |
| 110 | 110 xxd -l 512 /dev/nvme0n1 | |
| 111 | 111 fdisk -l /dev/nvme0n1 | |
| 112 | 112 poweroff | |
| 113 | 113 ./countdown.sh 12 | |
| 114 | 114 lsblk | |
| 115 | 115 ls -l /dev/nv* | |
| 116 | 116 fdisk /dev/nvme0n1 | |
| 117 | 117 lsblk | |
| 118 | 118 mkfs.xfs /dev/nvme0n1p3 | |
| 119 | 119 mount /dev/nvme0n1p3 /mnt | |
| 120 | 120 findmnt | |
| 121 | 121 lsblk | |
| 122 | 122 cd /mnt | |
| 123 | 123 ls | |
| 124 | 124 cp /etc/hosts . | |
| 125 | 125 ls | |
| 126 | 126 umount /mnt | |
| 127 | 127 lsof . | |
| 128 | 128 cd | |
| 129 | 129 umount /mnt | |
| 130 | 130 vim /etc/fstab | |
| 131 | 131 mount -a | |
| 132 | 132 mkdir /files | |
| 133 | 133 mount -a | |
| 134 | 134 reboot | |
| 135 | 135 who | |
| 136 | 136 history | |
| 137 | 137 exit | |
| 138 | 138 lsblk | |
| 139 | 139 history | |
| 140 | 140 cd /files/ | |
| 141 | 141 ls | |
| 142 | 142 lsblk | |
| 143 | 143 history | |
| 144 | 144 exit | |
| 145 | 145 history | |
| 146 | 146 fdisk /dev/nvme0n1 | |
| 147 | 147 reboot | |
| 148 | 148 lsblk | |
| 149 | 149 mkfs.xfs /dev/nvme0n1p5 | |
| 150 | 150 mkfs.ext4 /dev/nvme0n1p6 | |
| 151 | 151 mkdir /xfs | |
| 152 | 152 mkdir /ext4 | |
| 153 | 153 vim /etc/fstab | |
| 154 | 154 mount -a | |
| 155 | 155 lsblk | |
| 156 | 156 touch /ext4/myext4file | |
| 157 | 157 history | |
| 158 | 158 vim /etc/fstab | |
| 159 | 159 fdisk /dev/nvme0n1 | |
| 160 | 160 reboot | |
| 161 | 161 journalctl -xb | |
| 162 | 162 cat /etc/fstab | |
| 163 | 163 lsblk | |
| 164 | 164 cat /etc/fstab | |
| 165 | 165 blkid | |
| 166 | 166 blkid | grep n1p5 | awk '{ print $2 }'
| |
| 167 | 167 blkid | grep n1p5 | awk '{ print $2 }' >> /etc/fstab
| |
| 168 | 168 vim /etc/fstab | |
| 169 | 169 reboot | |
| 170 | 170 lsblk | |
| 171 | 171 tune2fs -L cow /dev/nvme0n1p5 | |
| 172 | 172 blkid | |
| 173 | 173 xfs_admin -L goat /dev/nvme0n1p1 | |
| 174 | 174 umount /dev/nvme0n1p1 | |
| 175 | 175 xfs_admin -L goat /dev/nvme0n1p1 | |
| 176 | 176 mount -a | |
| 177 | 177 lsblk | |
| 178 | 178 blkid | |
| 179 | 179 vim /etc/fstab | |
| 180 | 180 \ | |
| 181 | 181 ls -l /dev/nvm* | |
| 182 | 182 vim /etc/fstab | |
| 183 | 183 reboot | |
| 184 | 184 vim /etc/fstab | |
| 185 | 185 findmnt --verify | |
| 186 | 186 vim /etc/fstab | |
| 187 | 187 findmnt --verify | |
| 188 | 188 groupadd students | |
| 189 | 189 groupadd profs | |
| 190 | 190 vim /etc/login.defs | |
| 191 | 191 useradd -G profs anna | |
| 192 | 192 useradd -G profs anouk | |
| 193 | 193 tail /etc/passwd | |
| 194 | 194 usermod -aG students linda | |
| 195 | 195 usermod -aG students lisa | |
| 196 | 196 id lisa | |
| 197 | 197 cd /data | |
| 198 | 198 mkdir profs students | |
| 199 | 199 ls -l | |
| 200 | 200 chmod 3770 students/ | |
| 201 | 201 chmod 3770 profs | |
| 202 | 202 chgrp students students | |
| 203 | 203 chgrp profs profs | |
| 204 | 204 ls -l | |
| 205 | 205 history | |
| 206 | 206 ls | |
| 207 | 207 ls -l | |
| 208 | 208 cd students | |
| 209 | 209 touch {1..10}.txt
| |
| 210 | 210 ls | |
| 211 | 211 ls -l | |
| 212 | 212 getfacl . | |
| 213 | 213 setfacl -R -m g:profs:rx /data/students | |
| 214 | 214 ls -l | |
| 215 | 215 man setfacl | |
| 216 | 216 setfacl -R -x g:profs /data/students | |
| 217 | 217 ls -l | |
| 218 | 218 setfacl -R -m g:profs:rX /data/students | |
| 219 | 219 ls -lk | |
| 220 | 220 getfacl . | |
| 221 | 221 su - linda | |
| 222 | 222 ls -l | |
| 223 | 223 getfacl 9.txt | |
| 224 | 224 getfacl linda1 | |
| 225 | 225 history | |
| 226 | 226 setfacl -m d:g:profs:rx /data/profs | |
| 227 | 227 getfacl /data/profs | |
| 228 | 228 su - linda | |
| 229 | 229 getfacl linda2 | |
| 230 | 230 setfacl -m d:g:profs:rx /data/students/ | |
| 231 | 231 su - linda | |
| 232 | 232 getfacl linda3 | |
| 233 | 233 cd | |
| 234 | 234 ./countdown.sh 13 | |
| 235 | 235 find / -name "mnttab" | |
| 236 | 236 find / -name "vfstab" | |
| 237 | 237 cat /etc/os-release | |
| 238 | 238 yum repolist | |
| 239 | 239 yum install -y git | |
| 240 | 240 cd /etc/yum.repos.d/ | |
| 241 | 241 ls | |
| 242 | 242 which yum | |
| 243 | 243 which dnf | |
| 244 | 244 ls -l /bin/yum /bin/dnf | |
| 245 | 245 cd | |
| 246 | 246 df -h | |
| 247 | 247 dd if=/dev/sr0 of=/rhel8.iso bs=1M | |
| 248 | 248 bg | |
| 249 | 249 mkdir /repo | |
| 250 | 250 vim /etc/fstab | |
| 251 | 251 mount -a | |
| 252 | 252 cd /repo | |
| 253 | 253 ls | |
| 254 | 254 cd BaseOS/ | |
| 255 | 255 ls | |
| 256 | 256 ls Packages/ | |
| 257 | 257 yum install git | |
| 258 | 258 cd | |
| 259 | 259 df -h | |
| 260 | 260 lsblk | |
| 261 | 261 cd /etc/yum.repos.d/ | |
| 262 | 262 vim base.repo | |
| 263 | 263 vim appstream.repo | |
| 264 | 264 yum repolist | |
| 265 | 265 yum install git | |
| 266 | 266 history | |
| 267 | 267 cd | |
| 268 | 268 yum search nmap | |
| 269 | 269 yum search seinfo | |
| 270 | 270 seinfo | |
| 271 | 271 yum provides */seinfo | |
| 272 | 272 yum module list | |
| 273 | 273 yum module provides httpd | |
| 274 | 274 yum module info httpd | |
| 275 | 275 yum module info postgresql | |
| 276 | 276 yum module info --profile postgresql | |
| 277 | 277 yum module list postgresql | |
| 278 | 278 yum module install postgresql:9.6 | |
| 279 | 279 yum module install postgresql:9.6/devel | |
| 280 | 280 yum install httpd | |
| 281 | 281 yum module enable postgresql:9.6 | |
| 282 | 282 yum module info postgresql | |
| 283 | 283 yum module info postgresql | less | |
| 284 | 284 ./countdown.sh 12 | |
| 285 | 285 fdisk /dev/nvme0n1 | |
| 286 | 286 lsblk | |
| 287 | 287 pvcreate /dev/nvme0n1p7 | |
| 288 | 288 pvs | |
| 289 | 289 vgcreate --help | less | |
| 290 | 290 vgcreate -s 4m vgdata /dev/nvme0n1p7 | |
| 291 | 291 pvs | |
| 292 | 292 vgs | |
| 293 | 293 man lvcreate | |
| 294 | 294 lvcreate -n lvdata -L 1G vgdata | |
| 295 | 295 #lvcreate -n lvdata -l 100%FREE vgdata | |
| 296 | 296 #lvcreate -n lvdata -l 255 vgdata | |
| 297 | 297 lvcreate -n lvdata -l 100%FREE vgdata | |
| 298 | 298 lvs | |
| 299 | 299 mkfs.xfs /dev/vgdata/lvdata | |
| 300 | 300 vim /etc/fstab | |
| 301 | 301 mkdir /lvdata | |
| 302 | 302 mount -a | |
| 303 | 303 mount | |
| 304 | 304 ls -l /dev/vgdata/lvdata /dev/mapper/vgdata-lvdata | |
| 305 | 305 history | |
| 306 | 306 fdisk /dev/nvme0n1 | |
| 307 | 307 vim /etc/fstab | |
| 308 | 308 reboot | |
| 309 | 309 ls /xfs | |
| 310 | 310 ls /ext4 | |
| 311 | 311 vim /etc/fstab | |
| 312 | 312 cd /xfs | |
| 313 | 313 touch myxfsfsfsfsfsfsfs | |
| 314 | 314 cd | |
| 315 | 315 fdisk /dev/nvme0n1 | |
| 316 | 316 reboot | |
| 317 | 317 fdisk /dev/nvme0n1 | |
| 318 | 318 blkid | |
| 319 | 319 vim /etc/fstab | |
| 320 | 320 reboot | |
| 321 | 321 vim /etc/fstab | |
| 322 | 322 reboot | |
| 323 | 323 systemctl list-units | |
| 324 | 324 systemctl isolate emergency.target | |
| 325 | 325 systemctl list-units | |
| 326 | 326 touch hyello | |
| 327 | 327 reboot | |
| 328 | 328 touch hhhh | |
| 329 | 329 systemctl list-units | |
| 330 | 330 touch hhhh | |
| 331 | 331 mount | |
| 332 | 332 lsblk | |
| 333 | 333 mount -o remount,rw / | |
| 334 | 334 touch hiho | |
| 335 | 335 systemctl start rescue.target | |
| 336 | 336 lsblk | |
| 337 | 337 vim /etc/default/grub | |
| 338 | 338 grub2-mkconfig -o /boot/grub2/grub.cfg | |
| 339 | 339 cd /boot | |
| 340 | 340 ls | |
| 341 | 341 cd / | |
| 342 | 342 mount -a | |
| 343 | 343 grub2-mkconfig -o /boot/grub2/grub.cfg | |
| 344 | 344 reboot | |
| 345 | 345 ls /var/log/journal/ | |
| 346 | 346 vim /etc/fstab | |
| 347 | 347 cd /run/systemd/ | |
| 348 | 348 ls | |
| 349 | 349 cd generator/ | |
| 350 | 350 ls | |
| 351 | 351 vim ext4.mount | |
| 352 | 352 lsblk | |
| 353 | 353 blkid | |
| 354 | 354 blkid | grep cow | |
| 355 | 355 cd /dev/disk | |
| 356 | 356 ls | |
| 357 | 357 ls by-label/ | |
| 358 | 358 \ls by-label/ | |
| 359 | 359 \ls -l by-label/ | |
| 360 | 360 cd | |
| 361 | 361 vim /etc/fstab | |
| 362 | 362 cd /run/systemd/generator/ | |
| 363 | 363 ls | |
| 364 | 364 cat files.mount | |
| 365 | 365 cp files.mount /etc/systemd/system/ | |
| 366 | 366 vim /etc/fstab | |
| 367 | 367 systemctl daemon-reload | |
| 368 | 368 ls | |
| 369 | 369 cd .. | |
| 370 | 370 cd generator/ | |
| 371 | 371 ls | |
| 372 | 372 cd /etc/systemd/system/ | |
| 373 | 373 vim files.mount | |
| 374 | 374 systemctl cat sshd.service | |
| 375 | 375 vim files.mount | |
| 376 | 376 systemctl enable --now files.mount | |
| 377 | 377 reboot | |
| 378 | 378 vim /etc/httpd/conf/httpd.conf | |
| 379 | 379 systemctl restart httpd | |
| 380 | 380 systemctl status httpd | |
| 381 | 381 journalctl | grep sealert | |
| 382 | 382 journalctl | grep sealert | grep http | |
| 383 | 383 ./countdown.sh 12 | |
| 384 | 384 history | |
| 385 | 385 journalctl | grep sealert | |
| 386 | 386 restorecon -Rv / | |
| 387 | 387 touch /.autorelabel | |
| 388 | 388 reboot | |
| 389 | 389 mount -o remount,rw / | |
| 390 | 390 rm /.autorelabel | |
| 391 | 391 reboot | |
| 392 | 392 journalctl | grep sealert | |
| 393 | 393 uptime | |
| 394 | 394 rm -rf /var/log/journal/ | |
| 395 | 395 reboot | |
| 396 | 396 journalctl | grep sealert | |
| 397 | 397 systemctl status httpd | |
| 398 | 398 journalctl | grep sealert | |
| 399 | 399* setenforce permissiveA | |
| 400 | 400 systemctl restart httpd | |
| 401 | 401 systemctl status httpd | |
| 402 | 402 journalctl | grep sealert | |
| 403 | 403 sealert -l f782833b-c95d-4e50-a6c3-bd9b2c4fc9a5 | |
| 404 | 404 sealert -l f782833b-c95d-4e50-a6c3-bd9b2c4fc9a5 | less | |
| 405 | 405 semanage port -a -t http_port_t -p tcp 82 | |
| 406 | 406 setenforce enforcing | |
| 407 | 407 systemctl restart httpd | |
| 408 | 408 systemctl status httpd | |
| 409 | 409 grep AVC /var/log/audit/audit.log | |
| 410 | 410 vim /etc/httpd/conf/httpd.conf | |
| 411 | 411 systemctl restart httpd | |
| 412 | 412 journalctl | grep sealert | |
| 413 | 413 systemctl status httpd | |
| 414 | 414 mkdir /www | |
| 415 | 415 systemctl restart httpd | |
| 416 | 416 journalctl | grep sealert | |
| 417 | 417 systemctl status setroubleshootd | |
| 418 | 418 curl localhost | |
| 419 | 419 curl localhost:80 | |
| 420 | 420 curl localhost:82 | |
| 421 | 421 journalctl | grep sealert | |
| 422 | 422 grep sealert /var/log/messages | less | |
| 423 | 423 sealert -l 84188fa1-166f-43af-8f0b-4b213c2d2f50 | less | |
| 424 | 424 man -k _selinux | |
| 425 | 425 yum search selinux | |
| 426 | 426 yum install selinux-policy-doc | |
| 427 | 427 mandb | |
| 428 | 428 man -k _selinux | |
| 429 | 429 man -k _selinux | wc | |
| 430 | 430 man -k _selinux | grep http | |
| 431 | 431 man httpd_selinux | |
| 432 | 432 getsebool -a | |
| 433 | 433 getsebool -a | wc | |
| 434 | 434 getsebool -a | grep http | |
| 435 | 435 setsebool -P httpd_use_cifs on | |
| 436 | 436 history | |
| 437 |