Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1 tar -czvf /root/archive.tgz /etc
- 2 tar -tvf archive.tgz
- 3 cat /etc/dnsmasq.conf
- 4 cat /etc/dnsmasq.conf | grep -v ""
- 5 cat /etc/dnsmasq.conf | grep -v " "
- 6 cat /etc/dnsmasq.conf | grep -v ''
- 7 cat /etc/dnsmasq.conf | grep -v '^$'
- 8 cat /etc/dnsmasq.conf | grep -v '^$' | sort
- 9 cat /etc/dnsmasq.conf | grep -v '^$' | grep -v '^#'
- 10 cat /etc/dnsmasq.conf | grep -v '^$' | grep -v '^#' | sort
- 11 find / -user $USER
- 12 useradd lisa
- 13 find / -user lisa
- 14 find / -user lisa -exec cp {} /root/userfiles/ \;
- 15 mkdir userfiles; find / -user lisa -exec cp {} /root/userfiles/ \;
- 16 mkdir userfiles; find / -user lisa -exec cp {} /root/userfiles/ \; 2>/dev/null
- 17 mkdir userfiles; find / -user lisa -exec cp {} /root/userfiles/ \; 2> finderr.txt
- 18 less finderr.txt
- 19 ls
- 20 ls /home/student/
- 21 /home/student/countdown 12
- 22 find / -user student -exec cp {} /root/userfiles/ \; 2>/dev/null
- 23 find / -user student
- 24 find / -user student -exec ls -l {} \; 2>/dev/null
- 25 history
- 26 less /etc/passwd
- 27 id lisa
- 28 id student
- 29 vim /etc/login.defs
- 30 ls -a /etc/skel/
- 31 ls -a /home/lisa
- 32 vim /etc/login.defs
- 33 groupadd sales
- 34 groupadd account
- 35 useradd -G sales linda
- 36 id linda
- 37 id lisa
- 38 usermod --help
- 39 usermod -aG sales lisa
- 40 id lisa
- 41 chage lisa
- 42 su - linda
- 43 tail -5 /etc/shadow
- 44 man shadow
- 45 man 5 shadow
- 46 tail -5 /etc/shadow
- 47 passwd linda
- 48 tail -5 /etc/shadow
- 49 grep linda /etc/passwd
- 50 grep linda /etc/shadow
- 51 grep linda /etc/group
- 52 authconfig
- 53 man authselect
- 54 grep account /etc/group
- 55 useradd -G account anna
- 56 useradd -G account anouk
- 57 mkdir /data/account
- 58 mkdir -p /data/account
- 59 mkdir -p /data/sales
- 60 cd /data
- 61 ls -l
- 62 chgrp account account
- 63 ls -lk
- 64 chgrp sales sales
- 65 ls -l
- 66 chmod g+w account/
- 67 ls -l
- 68 chmod g+w,o-rx account/
- 69 ls -l
- 70 chmod 770 sales/
- 71 ls -l
- 72 cd /home/linda
- 73 touch wortel
- 74 ls -l
- 75 ls -ld .
- 76 su - linda
- 77 touch carrot
- 78 su - linda
- 79 useradd bob
- 80 cd /home/sales
- 81 cd /data/sales
- 82 touch bobfile
- 83 ls -l
- 84 ls -ld .
- 85 su - bob
- 86 ln /home/student/countdown /usr/bin/countdown
- 87 countdown 12
- 88 cd
- 89 man chattr
- 90 su - linda
- 91 ls
- 92 chattr +i archive.tgz
- 93 rm -f archive.tgz
- 94 cd /home/linda
- 95 vim runme
- 96 chmod +x runme
- 97 su - linda
- 98 chmod u+s runme
- 99 ls -l
- 100 su - linda
- 101 vim runme
- 102 exit
- 103 su - linda
- 104 find / -perm /4000 2>/dev/null
- 105 ls -l /usr/bin/passwd
- 106 ls -l /etc/shadow
- 107 su - linda
- 108 chmod g+s /data/sales
- 109 su - linda
- 110 su - lisa
- 111 chmod +t /data/sales
- 112 su - lisa
- 113 cd /
- 114 ls -l
- 115 cd /tmp
- 116 ls
- 117 cd /data/
- 118 ls -ld
- 119 ls -l
- 120 chown lisa sales
- 121 su - lisa
- 122 history | grep find
- 123 find / -perm /1000 -exec ls -l {} 2>/dev/null
- 124 find / -perm /1000 -type d -exec ls -l {} 2>/dev/null
- 125 find / -perm /1000 -exec ls -l {} \; 2>/dev/null
- 126 find / -perm /1000 -exec ls -ld {} \; 2>/dev/null
- 127 ls -l
- 128 getfacl sales
- 129 ls -ld salesx
- 130 ls -ld sales
- 131 setfacl -m R g:account:rx /data/sales
- 132 setfacl -R -m g:account:rx /data/sales
- 133 ls -l sales
- 134 man setfacl
- 135 setfacl -R -x g:account sales
- 136 ls -l
- 137 ls -l sales/
- 138 setfacl -R -m g:account:rX sales
- 139 getfacl sales
- 140 getfacl sales/linda2
- 141 history
- 142 countdown 12
- 143 setfacl -m d:g:account:rx sales
- 144 getfacl sales/
- 145 lsblk
- 146 poweroff
- 147 lsblk
- 148 fdisk /dev/sda
- 149 lsblk
- 150 mkfs.xfs /dev/sda
- 151 mkfs.xfs /dev/sda3
- 152 mkdir /files
- 153 vim /etc/fstab
- 154 mount -a
- 155 mount
- 156 lsblk
- 157 xxd -l 512 /dev/sda | less
- 158 fdisk /dev/sda
- 159 reboot
- 160 lsblk
- 161 mkfs.xfs /dev/sda5
- 162 mkfs.ext4 /dev/sda6
- 163 mkdir /xfs
- 164 mkdir /ext4
- 165 vim /etc/fstab
- 166 fdisk /dev/sda
- 167 reboot
- 168 vim /etc/fstab
- 169 reboot
- 170 history
- 171 vim /etc/fstab
- 172 reboot
- 173 journalctl -xb
- 174 mount
- 175 mount | grep '^/'
- 176 vim /etc/fstab
- 177 lslbk
- 178 lsblk
- 179 blkid
- 180 vim /etc/fstab
- 181 tune2fs --help
- 182 tune2fs -L cow /dev/sda5
- 183 tune2fs -l /dev/sda5 | less
- 184 blkid
- 185 vim /etc/fstab
- 186 blkid
- 187 blkid | grep sda5 | awk '{ print $3 }'
- 188 blkid | grep sda5 | awk '{ print $3 }' >> /etc/fstab
- 189 vim /etc/fstab
- 190 exit
- 191 mount | grep xfs
- 192 xfs_admin --help
- 193 xfs_admin -L goat /dev/sda1
- 194 umount /dev/sda1
- 195 xfs_admin -L goat /dev/sda1
- 196 mount -a
- 197 tune2fs --help
- 198 gdisk /dev/sda
- 199 fdisk -l
- 200 fdisk -l /dev/sda
- 201 cat /proc/partitions
- 202 lsblk
- 203 mount | grep '^/'
- 204 tail -1 /etc/fstab
- 205 tail /etc/fstab
- 206 cd /dev/disk/by-path/
- 207 ls
- 208 ls -l
- 209 cd
- 210 yum repolist
- 211 yum install nmap
- 212 cd /etc/yum.repos.d/
- 213 ls
- 214 cat redhat.repo
- 215 rm -f *
- 216 yum repolist
- 217 cd
- 218 #dd if=/dev/ser0 of=/rhel8.iso bs=1M
- 219 df -h
- 220 dd if=/dev/sr0 of=/rhel8.iso bs=1M
- 221 yum clean all
- 222 ls -l/ /
- 223 ls -l /
- 224 mkdir /repo
- 225 vim /etc/fstab
- 226 mount -a
- 227 cd /repo
- 228 ls
- 229 cd
- 230 cd /
- 231 lsblk
- 232 yum repolist
- 233 countdown 12
- 234 history
- 235 cd /etc/yum.repos.d/
- 236 vim base.repo
- 237 vim appstream.repo
- 238 cd /repo
- 239 ls
- 240 cd AppStream/
- 241 ls
- 242 cd Packages/
- 243 ls
- 244 ls | wc
- 245 yum repolist
- 246 vim /etc/yum.repos.d/appstream.repo
- 247 cd
- 248 yum search nmap
- 249 yum install nmap
- 250 yum remove nmap
- 251 yum search seinfo
- 252 yum provides */seinfo
- 253 seinfo
- 254 vim /etc/yum.repos.d/base.repo
- 255 grep iso /etc/fstab
- 256 cat /etc/yum.repos.d/appstream.repo
- 257 yum module list
- 258 yum module list | less
- 259 yum module provides httpd
- 260 yum module info postgresql
- 261 yum module info postgresql | less
- 262 yum module info --profile postgresql
- 263 yum module list postgresql
- 264 yum module enable postgresql:9.6
- 265 yum install httpd
- 266 yum module info --profile php
- 267 yum module install php:7.2/devel
- 268 yum module reset php
- 269 yum module install --allowerasing php:7.3
- 270 lsblk
- 271 ip --help
- 272 ip a
- 273 ifconfig
- 274 man ifconfig
- 275 ip a
- 276 ip a a dev ens160 10.0.0.10/24
- 277 ip a
- 278 ifconfig
- 279 ifconfig -a
- 280 ifconfig /all
- 281 man ifconfig
- 282 ip 0c a
- 283 ip -c a
- 284 rpm -qf $(which ifconfig)
- 285 rpm -ql net-tools
- 286 rpm -ql net-tools | grep bin
- 287 yum remove net-tools
- 288 ifconfig
- 289 ip route show
- 290 ip route del default via 192.168.29.1
- 291 ping nu.nl
- 292 ip route add default via 192.168.29.1
- 293 nmap -sn 192.168.29.0/24
- 294 vim /etc/resolv.conf
- 295 cd /etc/sysconfig/network-scripts/
- 296 ls
- 297 cat ifcfg-ens160
- 298 cd
- 299 nmtui
- 300 ip a
- 301 ping nu.nl
- 302 countdown 12
- 303 vim /etc/sysconfig/network-scripts/ifcfg-ens160
- 304 nmcli connection up ens160
- 305 ip a
- 306 nmcli connection load ens160
- 307 ip a
- 308 nmtui
- 309 ip
- 310 ip a
- 311 nmcli connection down ens160
- 312 ip a
- 313 nmcli connection up ens160
- 314 ip a
- 315 reboot
- 316 mount | grep vdo
- 317 vdostats --human-readable
- 318 df -h
- 319 df -h | grep vdo
- 320 systemctl list-units -t mount
- 321 systemctl cat vdo1.mount
- 322 vim /etc/systemd/system
- 323 systemctl daemon-reload
- 324 systemctl cat vdo1.mount
- 325 countdown 12
- 326 yum install httpd curl
- 327 systemctl status httpd
- 328 systemctl enable httpd
- 329 systemctl status httpd
- 330 systemctl start httpd
- 331 systemctl status httpd
- 332 ps aux | grep httpd
- 333 ps Zaux | grep httpd
- 334 ls -lZ /var/www
- 335 ls -lZd /var/tmp
- 336 ps Zaux | grep http
- 337 vim /etc/sysconfig/selinux
- 338 getenforce
- 339 setenforce
- 340 setenforce permissive
- 341 getenforce
- 342 setenforce enforcing
- 343 vim /etc/httpd/conf/httpd.conf
- 344 vim /web/index.html
- 345 mkdir /web
- 346 echo hello moon > /web/index.html
- 347 systemctl restart httpd
- 348 curl http://localhost
- 349 getenforce
- 350 setenforce permissive
- 351 curl http://localhost
- 352 cd /var/log
- 353 ls
- 354 cd httpd/
- 355 ls
- 356 cat error_log
- 357 vim /web/index.html
- 358 vim /etc/httpd/conf/httpd.conf
- 359 systemctl restart httpd
- 360 getenforce
- 361 curl http://localhost
- 362 setenforce enforcing
- 363 curl http://localhost
- 364 grep AVC /var/log/audit/audit.log
- 365 ls -lZ /var/www
- 366 man semanage-fcontext
- 367 semanage fcontext -a -t httpd_sys_content_t "/web(/.*)?"
- 368 ls -ldZ /web
- 369 cd /etc/selinux/targeted/contexts/files/
- 370 ls
- 371 cat file_contexts.local
- 372 restorecon -Rv /web
- 373 setenforce 1
- 374 getenforce
- 375 curl http://localhost
- 376 cd
- 377 countdown 12
- 378 man -k selinux
- 379 man -k s_elinux
- 380 man -k _selinux
- 381 yum search selinux
- 382 yum install selinux-policy-doc
- 383 man -k _selinux
- 384 man -k _selinux | wc
- 385 man -k _selinux | grep http
- 386 man httpd_selinux
- 387 grep sealert /var/log/messages
- 388 sealert -l 23c9e991-e00f-4c05-9cab-3bc1f7912e58
- 389 sealert -l 23c9e991-e00f-4c05-9cab-3bc1f7912e58 | less
- 390 vim /etc/httpd/conf/httpd.conf
- 391 systemctl restart httpd
- 392 systemctl status httpd
- 393 getenforce
- 394 setenforce permissive
- 395 systemctl restart httpd
- 396 grep sealert /var/log/messages
- 397 sealert -l 6b1004fc-4033-46ba-a1ef-abad895c4057 | less
- 398 semanage port -a -t http_port_t -p tcp 82
- 399 setenforce enforcing
- 400 systemctl restart httpd
- 401 systemctl status httpd
- 402 getsebool -a | grep ftp
- 403 setsebool -P ftpd_anon_write on
- 404 getsebool -a | grep ftp
- 405 getsebool -a | grep http
- 406 grep AVC /var/log/audit/audit.log
- 407 grep AVC /var/log/audit/audit.log | grep -v USER
- 408 ssh root@192.168.29.27
- 409 showmount -e 192.168.29.27
- 410 vim /etc/fstab
- 411 mkdir /remotefs
- 412 cat /etc/fstab
- 413 mkdir /remotedata
- 414 mount -a
- 415 mount
- 416 vim /etc/fstab
- 417 yum install -y autofs
- 418 vim /etc/auto.master
- 419 vim /etc/auto.misc
- 420 vim /etc/auto.master
- 421 vim /etc/auto.remote
- 422 showmount -e 192.168.29.27
- 423 vim /etc/auto.remote
- 424 systemctl enable --now autofs
- 425 cd /
- 426 ls
- 427 cd remote
- 428 ls -a
- 429 cd data
- 430 ls
- 431 mount
- 432 showmount -e 192.168.29.27
- 433 vim /etc/auto.master
- 434 vim /etc/auto.ldap
- 435 systemctl restart autofs
- 436 cd /home/ldap
- 437 ls -a
- 438 cd ldapuser5
- 439 cd ldapuser1
- 440 ip a
- 441 countdown 12
- 442 cd
- 443 vim /usr/lib/firewalld/services/
- 444 cp /usr/lib/firewalld/services/ssh.xml /etc/firewalld/services/sander.xml
- 445 vim /etc/firewalld/services/sander.xml
- 446 firewall-cmd --get-services | grep sander
- 447 systemctl restart firewalld
- 448 firewall-cmd --get-services | grep sander
- 449 systemctl get-default
- 450 systemctl list-units
- 451 systemctl list-units -t target
- 452 systemctl list-unit-files -t target
- 453 systemctl isolate emergency.target
- 454 systemctl list-units
- 455 systemctl restart
- 456 reboot
- 457 ssh root@192.168.29.27
- 458 cd /home
- 459 ls
- 460 cd ldap
- 461 ls -a
- 462 cd ldapuser1
- 463 vim /etc/auto.master
- 464 vim /etc/auto.ldap
- 465 journalctl
- 466 grep sealert /var/log/messages
- 467 mount
- 468 vim /etc/auto.ldap
- 469 systemctl list-units
- 470 systemctl restart
- 471 systemctl reboot
- 472 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement