Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@localhost ~]#
- [root@localhost ~]# history
- 1 echo can you read this
- 2 history
- 3 touch afile
- 4 chattr +i afile
- 5 rm -f afile
- 6 whoami
- 7 ls -l afile
- 8 lsattr afile
- 9 man chattr
- 10 rm -f afile
- 11 chattr -i afile
- 12 rm -f afile
- 13 useradd -m -s /bin/bash lisa
- 14 grep lisa /etc/passwd
- 15 ls -l /home
- 16 cd /home/lida
- 17 cd /home/lisa
- 18 touch removeme
- 19 su - lisa
- 20 pwd
- 21 touch changeme
- 22 su - lisa
- 23 ls -l /etc/shadow
- 24 echo hello >> /etc/shadow
- 25 tail -3 /etc/shadow
- 26 vim /etc/shadow
- 27 ls
- 28 chattr +a changeme
- 29 ls -k
- 30 ls -l
- 31 lsattr
- 32 cde
- 33 cd
- 34 echo $EDITOR
- 35 visudo
- 36 useradd linda
- 37 passwd linda
- 38 vim /etc/sudoers.d/linda
- 39 su - linda
- 40 vim /etc/sudoers.d/linda
- 41 su - linda
- 42 cat /etc/sudoers.d/linda
- 43 history | tail -20
- 44 su - linda
- 45 exit
- 46 touch /root/helloroot
- 47 exit
- 48 ./countdown 12
- 49 visudo
- 50 vim /etc/sudoers.d/linda
- 51 su - linda
- 52 vim countdown
- 53 chmod +x countdown
- 54 ./countdown 12
- 55 ip link show
- 56 man ifconfig
- 57 ip a
- 58 ip addr add dev ens33 10.0.0.10/24
- 59 ip addr show
- 60 ifconfig
- 61 ifconfig -a
- 62 man hostname
- 63 hostname -i
- 64 hostname --all-ip-addresses
- 65 ip a
- 66 lshw
- 67 lshw -class network
- 68 ip a
- 69 ip a | grep inet
- 70 ip a | grep inet | awk '{ print $2 }'
- 71 ip a | grep inet | grep -v inet6 | awk '{ print $2 }'
- 72 ethtool -s ens33
- 73 ethtool ens33
- 74 vim staticroute.txt
- 75 ip route show
- 76 ip route add 192.2.0.0/24 via 192.168.29.3
- 77 ip route show
- 78 ping 192.2.0.1
- 79 history
- 80 vim /etc/resolv.conf
- 81 ping nu.nl
- 82 vim /etc/hosts
- 83 ping nu.nl
- 84 vim /etc/nsswitch.conf
- 85 ping nu.nl
- 86 podman run -d docker.io/library/nginx
- 87 ip a
- 88 podman ps
- 89 podman inspect 0b0 | less
- 90 ip routes
- 91 ip route show
- 92 brctl
- 93 dnf provides */brctl
- 94 ovsctl
- 95 ovs-ctl
- 96 ss
- 97 ss -tu
- 98 ss -tua
- 99 ss -tln
- 100 ss -tuan
- 101 vim /etc/services
- 102 ss -tulpn
- 103 tcpdump -i ens33
- 104 tcpdump -i ens33 -A
- 105 tcpdump -i ens33 -A -w dump.pcap
- 106 ls -l dump.pcap
- 107 tcpdump -i ens33 port 22
- 108 tcpdump -i ens33 src 192.168.29.2
- 109 ip a
- 110 ip link set ens33 down
- 111 ip a
- 112 ping nu.nl
- 113 nmap localhost
- 114 ip link set ens33 up
- 115 dnf install nmap
- 116 ip link set ens33 down
- 117 nmap localhost
- 118 nmap -O localhost
- 119 uname -r
- 120 nmap -sV localhost
- 121 nmap -sS localhost
- 122 ip link set ens33 up
- 123 history
- 124 lsmod
- 125 modinfo fuse
- 126 cd /boot
- 127 ls -l
- 128 udevadm monitor
- 129 lsmod
- 130 lsmod | vfat
- 131 lsmod | grep vfat
- 132 modprobe vfat
- 133 lsmod | grep vfat
- 134 modprobe -r vfat
- 135 lsblk
- 136 ls -l /dev/sd*
- 137 cd /proc
- 138 ls
- 139 less devices
- 140 lscpu
- 141 ls -l /sys/bus/cpu/devices/
- 142 ls -l /sys/bus/cpu/devices/cpu1
- 143 ls -l /sys/bus/cpu/devices/cpu1/
- 144 cat /sys/bus/cpu/devices/cpu1/online
- 145 echo 0 > /sys/bus/cpu/devices/cpu1/online
- 146 lscpu | less
- 147 top
- 148 echo 1 > /sys/bus/cpu/devices/cpu1/online
- 149 top
- 150 history
- 151 lspci
- 152 lspci -k
- 153 lsdev
- 154 dnf provides */lsdev
- 155 lsub
- 156 lsusb
- 157 lsblk
- 158 lscpu
- 159 less /proc/cpuinfo
- 160 lscpu\
- 161 lscpu
- 162 dmesg
- 163 lsmod | grep cdrom
- 164 lsblk
- 165 modprobe -r cdrom
- 166 mount
- 167 modinfo cdrom
- 168 modprobe cdrom debug=1
- 169 cd
- 170 vim /etc/modprobe.d/tuned.conf
- 171 vim /etc/modprobe.d/firewalld-sysctls.conf
- 172 vim /etc/modules-load.d/
- 173 cd /etc/modprobe.d/
- 174 vim cdrom
- 175 cd /sys
- 176 ls
- 177 cd module/
- 178 ls
- 179 cd e1000/
- 180 ls
- 181 cd parameters/
- 182 ls
- 183 cat copybreak
- 184 modinfo e1000
- 185 pwd
- 186 cd
- 187 udevadm info --name=/dev/sda | less
- 188 cd /usr/lib/udev/rules.d/
- 189 ls
- 190 ls | grep net
- 191 vim 60-net.rules
- 192 cd
- 193 dnf install -y git
- 194 git clone https://github.com/sandervanvugt/linuxplus
- 195 cd linuxplus/
- 196 ls
- 197 cp 50-custom.rules /etc/udev/rules.d/
- 198 cd /etc/udev/rules.d/
- 199 vim 50-custom.rules
- 200 mount | grep proc
- 201 cd /proc
- 202 ls
- 203 mount | grep sys
- 204 cd
- 205 ./countdown 12
- 206 lsblk
- 207 poweroff
- 208 lsblk
- 209 xxd -l 512 /dev/sda | less
- 210 fdisk /dev/sda
- 211 mkfs.xfs -L three /dev/sda3
- 212 blkid
- 213 vim /etc/fstab
- 214 mount -a
- 215 mkdir /three
- 216 findmnt --verify
- 217 reboot
- 218 lsblk
- 219 findmnt
- 220 mount
- 221 fdisk /dev/sda
- 222 mkfs.ext4 /dev/sda5
- 223 mkfs.xfs /dev/sda6
- 224 vim /etc/fstab
- 225 mkdir /five /six
- 226 mount-a
- 227 mount -a
- 228 lsblk
- 229 touch /five/ext4file
- 230 touch /six/xfsfile
- 231 vim /etc/fstab
- 232 fdisk /dev/sda
- 233 reboot
- 234 lsblk
- 235 blkid
- 236 blkid | grep sda5 | awk '{ print $2 }'
- 237 blkid | grep sda5 | awk '{ print $2 }' >> /etc/fstab
- 238 vim /etc/fstab
- 239 exit
- 240 lsblk
- 241 parted /dev/sdb
- 242 fdisk -l /dev/sdb
- 243 history
- 244 free -m
- 245 less /proc/meminfo
- 246 vim /etc/default/grub
- 247 grub2-mkconfig -o /boot/grub2/grub.cfg
- 248 reboot
- 249 free -m
- 250 grep ctive /proc/meminfo
- 251 vmstat 2 20
- 252 reboot
- 253 fdisk /dev/sda
- 254 mkswap /dev/sda6
- 255 vim /etc/fstab
- 256 free -m
- 257 swapon -a
- 258 free -m
- 259 dd if=/dev/zero of=/swapfile bs=1M count=1024
- 260 mkswap /swapfile
- 261 chmod 600 /swapfile
- 262 vim /etc/fstab
- 263 free -m
- 264 swapon -a
- 265 vim /etc/fstab
- 266 swapon -a
- 267 free -m
- 268 fdisk /dev/sda
- 269 lsblk
- 270 blkid
- 271 mount UUID="72b0bec0-58e1-4990-b301-e5ff7efb2873" /mnt
- 272 cd /mnt
- 273 ls
- 274 fdisk /dev/sda
- 275 pvcreate /dev/sda8
- 276 vgcreate vgdata /dev/sda8
- 277 vgs
- 278 lvcreate -L 1G -n lvdata vgdata
- 279 lvs
- 280 vgs
- 281 mkfs.ext4 /dev/vgdata/lvdata
- 282 mkdir /data
- 283 vim /etc/fstab
- 284 mkdir /data
- 285 ls /data
- 286 mount -a
- 287 mount
- 288 ls -l /dev/mapper/vgdata-lvdata /dev/vgdata/lvdata
- 289 df -h
- 290 dd if=/dev/zero of=/data/bigfile bs=1M
- 291 df -h
- 292 lvextend /dev/vgdata/lvdata -r -L +1G
- 293 df -h
- 294 history
- 295 poweroff
- 296 systemctl set-default multi-user.target
- 297 systemctl set-default graphical.target
- 298 lsblk
- 299 xxd -l 512 /dev/sda
- 300 dd if=/dev/sda of=/boot/sda-backup bs=512 count=1
- 301 dd if=/dev/zero of=/sda bs=1 count=446
- 302 dd if=/dev/zero of=/dev/sda bs=1 count=446
- 303 xxd -l 512 /dev/sda
- 304 reboot
- 305 ./countdown 12
- 306 getenforce
- 307 setenforce permissive
- 308 getenforce
- 309 setenforce disabled
- 310 dnf install httpd
- 311 systemctl enable --now httpd
- 312 ps Zaux | grep httpd
- 313 ls -Z /var/www/
- 314 history
- 315 vim /etc/ssh/sshd_config
- 316 ps Zaux | grep ssh
- 317 ss tunpZ
- 318 netstat -Ztulpen
- 319 systemctl restart sshd
- 320 getenforce
- 321 setenforce enforcing
- 322 systemctl restart sshd
- 323 vim /etc/ssh/sshd_config
- 324 semanage port -a -t ssh_port_t -p tcp 2022
- 325 systemctl restart sshd
- 326 netstat -Ztulpne | grep 2022
- 327 history
- 328 mkdir /web
- 329 vim /web/index.html
- 330 ls -Zd /web
- 331 ps Zaux | grep http
- 332 vim /etc/httpd/conf/httpd.conf
- 333 systemctl restart httpd
- 334 curl localhost
- 335 setenforce permissive
- 336 curl localhost
- 337 setenforce enforce
- 338 setenforce enforcing
- 339 grep AVC /var/log/audit/audit.log
- 340 ls -Z /var/www
- 341 man semanage-fcontext
- 342 # semanage fcontext -a -t httpd_sys_content_t "/web(/.*)?"
- 343 # restorecon -R -v /web
- 344 semanage fcontext -a -t httpd_sys_content_t "/web(/.*)?"
- 345 restorecon -R -v /web
- 346 getenforce
- 347 curl localhost
- 348 history
- 349 ./countdown 1
- 350 man -k _selinux
- 351 dnf install -y selinux-policy-doc
- 352 mandb
- 353 man -k _selinux
- 354 man -k _selinux | wc
- 355 man httpd_selinux
- 356 journalctl | grep sealert
- 357 sealert -l fe96e344-09b6-4d9d-bba5-dbe7df5d48ca | less
- 358 getsebool -a | grep ftp
- 359 setsebool -P ftpd_anon_write on
- 360 ./countdown 12
- 361 ldd $(which login)
- 362 ldd $(which passwd)
- 363 cd /etc/pam.d
- 364 ls
- 365 vim login
- 366 find / -name "pam_nologin.so"
- 367 cd /usr/lib64/security/
- 368 ls
- 369 man pam_securetty
- 370 cd /etc/pam.d/
- 371 vim login
- 372 chvt 3
- 373 vim login
- 374 vim /etc/securetty
- 375 chvt 5
- 376 w
- 377 loginctl list-sessions
- 378 loginctl terminate-session 9
- 379 loginctl terminate-session 8
- 380 loginctl terminate-session 4
- 381 w
- 382 vim system-auth
- 383 cd
- 384 ./countdown 1
- 385 man ls
- 386 podman run -d --name test1 docker.io/library/nginx
- 387 podman run -it docker.io/sandervanvugt/gitops
- 388 podman ps
- 389 podman ps -a
- 390 podman image
- 391 podman images
- 392 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement