Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@rocky2 ~]# history
- 1 git clone https://github.com/sandervanvugt/luth
- 2 git clone https://github.com/sandervanvugt/lfcs
- 3 cd lfcs
- 4 ls
- 5 ./countdown 12
- 6 find / -name "hosts"
- 7 find / -name "*hosts*"
- 8 useradd linda
- 9 find / -user linda
- 10 find / -user linda 2>/dev/null
- 11 mkdir /root/linda; find / -user linda -exec cp {} /root/linda/ \; 2>/dev/null
- 12 ls -a /root/linda
- 13 find / -perm /4000
- 14 find / -perm /4000 > ~/suidfiles.txt
- 15 ls ihiuhiu; who
- 16 ls ukhiuiu && who
- 17 echo $?
- 18 ls ukhiuiu || who
- 19 ls || who
- 20 man find
- 21 find / -perm /4111
- 22 find / -perm /4000
- 23 find / -perm 4111
- 24 find / -perm /4000 -exec ls -l {} \;
- 25 find / -perm -4111
- 26 man find
- 27 find / -type f -size +100M
- 28 mkdir find/contents; find /etc -exec grep -l student {} \; -exec cp {} find/contents/ \; 2>/dev/null
- 29 mkdir -p find/contents; find /etc -exec grep -l student {} \; -exec cp {} find/contents/ \; 2>/dev/null
- 30 find /etc/ -name '*' -type f | xargs grep '127.0.0.1'
- 31 sed -n 5p /etc/passwd
- 32 ls
- 33 cd ..
- 34 ls
- 35 vim mythings
- 36 sed -i 's/apple/beer/g' mythings
- 37 cat suidfiles.txt
- 38 cat mythings
- 39 sed -i -e '2d' mythings
- 40 cat mythings
- 41 awk -F : '{ print $4 }' /etc/passwd
- 42 awk -F : '{ print $4 }' /etc/passwd | sort -n
- 43 cut -d -f 4 /etc/passwd | sort -n
- 44 cut -d : -f 4 /etc/passwd
- 45 awk -F : '/linda/ { print $4 }' /etc/passwd
- 46 vim demo1.txt
- 47 vim /etc/login.defs
- 48 cd /etc/skel/
- 49 ls
- 50 ls -a
- 51 touch hello
- 52 groupadd sales
- 53 groupadd account
- 54 useradd -G sales linda
- 55 usermod -aG sales linda
- 56 useradd lisa
- 57 id lisa
- 58 usermod -aG sales lisa
- 59 id lisa
- 60 usermod -G wheel lisa
- 61 id lisa
- 62 usermod -aG sales lisa
- 63 id lisa
- 64 useradd -aG account anna
- 65 useradd -G account anna
- 66 id anna
- 67 useradd -G account anouk
- 68 cat demo1.txt
- 69 for user in lisa linda anna anouk; do echo password | passwd --stdin $user; done
- 70 passwd lisa
- 71 history
- 72 history -d 68
- 73 tail -4 /etc/passwd
- 74 tail -4 /etc/shadow
- 75 passwd -l lisa
- 76 tail -4 /etc/shadow
- 77 luth/countdown 12
- 78 touch removeme
- 79 lsattr
- 80 chattr +o removeme
- 81 chattr +i removeme
- 82 ls -l
- 83 rm -f removeme
- 84 chattr -i removeme
- 85 rm -f removeme
- 86 ls
- 87 vim demo2.txt
- 88 mkdir -p /data/sales
- 89 mkdir -p /data/account
- 90 cd /data
- 91 ls -l
- 92 chown anna:account account
- 93 ls -l
- 94 chown anna:sales sales
- 95 cat ~/demo2.txt
- 96 id linda
- 97 su - linda
- 98 chmod g+w *
- 99 ls -l
- 100 su - linda
- 101 su - lisa
- 102 ls -l
- 103 chmod g+s sales
- 104 ls -l
- 105 su - lisa
- 106 ls -l
- 107 chmod +t *
- 108 ls -l
- 109 su - lisa
- 110 su - anna
- 111 cd /home/linda
- 112 whoami
- 113 echo hellowortel > wortelfile
- 114 ls -l
- 115 echo hellobrocolli > brofile
- 116 su - linda
- 117 lsattr
- 118 chattr +i hello
- 119 rm -f hello
- 120 chattr -i hello
- 121 lsattr
- 122 cd /data
- 123 ls -al
- 124 ls -ld sales/
- 125 cd
- 126 luth/countdown 18
- 127 find / -perm /4000 2>/dev/null
- 128 ls -l $(which passwd)
- 129 ls -l /etc/shadow
- 130 cd /home/linda
- 131 ls
- 132 vim playme
- 133 chmod +x playme
- 134 exit
- 135 cd /home/linda
- 136 chmod u+s playme
- 137 ls -l
- 138 history
- 139 cat playme
- 140 cd
- 141 yum repolist
- 142 yum search zsh
- 143 yum install zsh
- 144 yum update
- 145 yum list installed
- 146 yum provides */sealert
- 147 which dnf
- 148 which yum
- 149 ls -l /usr/bin/yum
- 150 yum groups list
- 151 yum groups install "Virtualization Host"
- 152 man yum
- 153 yum --help | less
- 154 ip a
- 155 ip a a dev ens33 10.0.0.10/24
- 156 ip a
- 157 ping 10.0.0.10
- 158 ifconfig
- 159 ip --help | less
- 160 rpm -qf $(which ifconfig)
- 161 rpm -ql net-tools | grep bin
- 162 yum remove net-tools
- 163 man ifconfig
- 164 luth/countdown 12
- 165 systemctl status NetworkManager
- 166 nmtui
- 167 ip a
- 168 lsblk
- 169 history
- [root@rocky ~]# history
- 1 lsblk
- 2 fdisk /dev/sda
- 3 reboot
- 4 lsblk
- 5 mkfs.xfs /dev/sda5
- 6 mkfs.ext4 /dev/sda6
- 7 mkdir /ext4 /xfs
- 8 vim /etc/fstab
- 9 history
- 10 vim /etc/fstab
- 11 mount -a
- 12 mount
- 13 mount | grep '^/'
- 14 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement