Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @localhost system]# history
- 1 ssh sander@192.168.52.167
- 2 ssh sander@192.168.52.136
- 3 vim countdown
- 4 cat countdown
- 5 chmod +x countdown
- 6 ./countdown 1
- 7 ./countdown 10
- 8 find / -type f -links +1 2> /dev/null
- 9 man find
- 10 cp /etc/hosts .
- 11 ln hosts myhosts
- 12 ls -il *
- 13 find . -type f -links +1 2> /dev/null
- 14 find . -type f -exec ls -i {} \;
- 15 find . -type f -exec ls -i {} \; awk '{ print $1 }'
- 16 find . -type f -exec ls -i {} \;| awk '{ print $1 }'
- 17 find . -type f -exec ls -i {} \;| awk '{ print $1 }' | sort
- 18 find . -type f -exec ls -i {} \;| awk '{ print $1 }' | sort | uniq -d
- 19 man uniq
- 20 find . -type f -exec ls -i {} \;| awk '{ print $1 }' | sort | uniq -d | wc -l
- 21 find / -type f -exec ls -i {} \;| awk '{ print $1 }' | sort | uniq -d | wc -l
- 22 find / -type f -links +1 -exec ls -i {} \;| awk '{ print $1 }' | sort | uniq -d | wc -l
- 23 history
- 24 find / -type f -links +1 -exec ls -i {} \; 2>/dev/null | awk '{ print $1 }' | sort | uniq -d | wc -l
- 25 find . -type f -links
- 26 find . -type f -links +1
- 27 find . -type f -links 1
- 28 ./countdown 12
- 29 ./countdown 10
- 30 groupadd support
- 31 useradd -G support linda
- 32 useradd -G support lori
- 33 useradd -G support anna
- 34 id anna
- 35 visudo
- 36 for i in anna lori linda; do echo password | passwd --stdin $i; done
- 37 su - lori
- 38 which login
- 39 ldd $(which login)
- 40 man -k pam
- 41 mandb
- 42 man -k pam
- 43 cd /etc/pam.d/
- 44 ls
- 45 vim passwd
- 46 vim system-auth
- 47 man pam_pwquality
- 48 vim /etc/security/pwquality.conf
- 49 useradd bob
- 50 passwd bob
- 51 cd
- 52 ./countdown 12
- 53 exit
- 54 df -h
- 55 dd if=/dev/zero of=/diskfile bs=1M count=1024
- 56 losetup -fP /diskfile
- 57 losetup -a
- 58 fdisk /dev/loop0
- 59 mount | grep files
- 60 exit
- 61 history
- 62 lsblk
- 63 gdisk /dev/sdb
- 64 mkfs.ext3 /dev/sdb1
- 65 man tune2fs
- 66 man mount
- 67 man -k mount
- 68 tunefs -o journal_data /dev/sdb1
- 69 tune2fs -o journal_data /dev/sdb1
- 70 tune2fs -l /dev/sdb1 | less
- 71 mkdir /files
- 72 blkid
- 73 vim /etc/fstab
- 74 mount -a
- 75 systemctl daemon-reload
- 76 mount -a
- 77 mount
- 78 history
- 79 gdisk /dev/sdb
- 80 pvcreate /dev/sdb2
- 81 vgcreate vgfiles /dev/sdb2
- 82 vgs
- 83 lvcreate -n lvjason -l 100%FREE vgdata
- 84 vts
- 85 vgs
- 86 lvcreate -n lvjason -l 100%FREE vgfiles
- 87 vgs
- 88 mkfs.ext4 /dev/vgdata/lvjason
- 89 mkfs.ext4 /dev/vgfiles/lvjason
- 90 vim /etc/fstab
- 91 mount -a
- 92 mkdir /lvfiles
- 93 mount -a
- 94 mount
- 95 ls -l /dev/vgfiles/lvjason /dev/mapper/vgfiles-lvjason
- 96 reboot
- 97 exit
- 98 cd examlabs/
- 99 ls
- 100 cd fingerd/
- 101 ls
- 102 less README.md
- 103 cat autogen.sh
- 104 ./autogen.sh
- 105 ls
- 106 ./configure
- 107 ls
- 108 make
- 109 ls
- 110 make install
- 111 cd
- 112 history
- 113 exit
- 114 lsblk
- 115 df -h
- 116 vgs
- 117 vgextend vgfiles /dev/sdb3
- 118 vgs
- 119 lvextend --help | less
- 120 lvextend -l +100%FREE -r /dev/vgfiles/lvjason
- 121 df -h
- 122 history
- 123 mkdir -p /data/support
- 124 chgrp support /data/support
- 125 chmod g+w /data/support
- 126 ls -l /data/support/
- 127 ls -ld /data/support/
- 128 chown lori /data/support
- 129 chmod 070 /data/support
- 130 id lori
- 131 su - lori
- 132 chmod 770 /data/support
- 133 chown root /data/support
- 134 ls -ld /data/support
- 135 setfacl -m d:u:lori:wX /data/support
- 136 su - lori
- 137 history
- 138 su - linda
- 139 ls -lrt /tmp
- 140 journactl
- 141 journalctl
- 142 su -
- 143 su - linda
- 144 journalctl -G
- 145 journalctl -F
- 146 journalctl -f
- 147 ls -lrt /tmp
- 148 history
- 149 ssh sander@192.168.52.136
- 150 history
- 151 cat /proc/cmdline
- 152 systemctl list-dependencies
- 153 systemctl cat systemd-remount-fs.service
- 154 systemctl cat ostree-remount.service
- 155 systemctl list-dependencies
- 156 ./countdown 8
- 157 man sshd_config
- 158 vim /etc/ssh/sshd_config
- 159 cat /etc/passwd
- 160 useradd lisa
- 161 passwd lisa
- 162 systemctl restart sshd
- 163 ssh lisa@localhost
- 164 ssh bob@localhost
- 165 ssh linda@localhost
- 166 man sshd_config
- 167 vim /etc/ssh/sshd_config
- 168 systemctl restart sshd
- 169 su - anna
- 170 vim /etc/ssh/sshd_config
- 171 history
- 172 iptables -t nat -A PREROUTING -p tcp --dport 81 -j REDIRECT --to-port 9080
- 173 firewall-cmd --help
- 174 firewall-cmd --help | grep forward
- 175 firewall-cmd --add-forward-port=80:proto=tcp:toport=9080 --permanent
- 176 firewall-cmd --add-forward-port=port=80:proto=tcp:toport=9080 --permanent
- 177 firewall-cmd --add-forward-port=port=80:proto=tcp:toport=9080
- 178 man -k firewalld
- 179 history
- 180 dnf install -y vsftpd
- 181 vim /etc/vsftpd/vsftpd.conf
- 182 dnf install -y lftp
- 183 lftp localhost
- 184 systemctl enable --now vsftpd
- 185 lftp localhost
- 186 getenforce
- 187 setenforce permissive
- 188 lftp localhost
- 189 grep ftp /etc/passwd
- 190 cd /var/ftp
- 191 ls -l
- 192 chmod 777 pub
- 193 lftp localhost
- 194 rm pub/hosts
- 195 setenforce enforcing
- 196 lftp localhost
- 197 journalctl | grep sealert
- 198 sealert -l 757f8114-688f-4b93-ac3d-3e3aa373b064| less
- 199 dnf install -y httpd
- 200 systemctl start httpd
- 201 ps Zaux | grep httpd
- 202 ls -Z /var/www
- 203 ls -Z
- 204 sealert -l 757f8114-688f-4b93-ac3d-3e3aa373b064| less
- 205 # semanage fcontext -a -t public_content_rw_t pub
- 206 # restorecon -R -v pub
- 207 semenage fcontext -a -t public_content_rw_t /var/ftp/pub(/.*)?
- 208 semenage fcontext -a -t public_content_rw_t "/var/ftp/pub(/.*)?"
- 209 semanage fcontext -a -t public_content_rw_t "/var/ftp/pub(/.*)?"
- 210 restorecon -Rv /var/ftp/pub
- 211 getsebool -a | grep ftp
- 212 sealert -l 757f8114-688f-4b93-ac3d-3e3aa373b064| less
- 213 setsebool -P allow_ftpd_anon_write 1
- 214 getsebool -a | grep ftp
- 215 lftp localhost
- 216 getenforce
- 217 history
- 218 vim /etc/vsftpd/vsftpd.conf
- 219 cat /etc/passwd
- 220 man -k ulimit
- 221 ulimit --help
- 222 man bash
- 223 vim /etc/security/limits.conf
- 224 su - lisa
- 225 vim /etc/security/limits.conf
- 226 su - lisa
- 227 systemctl show sshd.service
- 228 systemctl edit sshd.service
- 229 systemctl cat sshd.service
- 230 systemctl restart sshd
- 231 systemctl status sshd
- 232 history
- 233 cd
- 234 git clone https://github.com/sandervanvugt/examlabs
- 235 cd examlabs/
- 236 ls
- 237 cd
- 238 dd if=/dev/zero of=/big.log bs=1M count=10
- 239 df -h
- 240 find / -name "*log" -size +5M
- 241 find / -name "*log" -size +5M -exec rm -f {} \;
- 242 find / -name "*log" -size +5M
- 243 history
- 244 systemctl status tuned
- 245 tuned-adm --help
- 246 tuned-adm recommend
- 247 tuned-adm virtual-guest
- 248 tuned-adm profile virtual-guest
- 249 tuned-adm active
- 250 systemctl cat tuned
- 251 history
- 252 dnf groups install "C Development Tools and Libraries"
- 253 dnf groups list
- 254 dnf groups install "C Development Tools"
- 255 dnf groups install "Development Tools"
- 256 exit
- 257 history
- 258 cd examlabs/
- 259 ls
- 260 cd docker/
- 261 cat Dockerfile
- 262 podman build -t examlab .
- 263 podman images
- 264 setenforce 0
- 265 #podman run -dt --name examlab -v /tmp:/tmp localhost/examlab
- 266 man podman-run
- 267 podman run -m=128M --name examlab -v /tmp:/tmp localhost/examlab
- 268 vim Dockerfile
- 269 podman build -t examlab .
- 270 podman run -m=128M --name examlab -v /tmp:/tmp localhost/examlab
- 271 podman rm examlab
- 272 podman run -m=128M --name examlab -v /tmp:/tmp localhost/examlab
- 273 podman ps
- 274 podman ps -a
- 275 ls -lrt /tmp
- 276 vim Dockerfile
- 277 ls -lrt /tmp
- 278 history
- 279 cd ..
- 280 ls
- 281 history
- 282 ls
- 283 openssl x509 -in tls.crt -noout -subject
- 284 openssl x509 -in tls.crt -noout -text
- 285 cd /etc/pki/tls/certs
- 286 ls
- 287 cd
- 288 history
- 289 cd /usr/lib/systemd/system
- 290 vim sshd.service
- 291 cp sshd.service /etc/systemd/system/sleep.service
- 292 cd /etc/systemd/system/
- 293 vim sleep.service
- 294 systemctl daemon-reload
- 295 systemctl enable --now sleep.service
- 296 ps aux | grep sleep
- 297 systemctl status sleep.service
- 298 kill -9 49463
- 299 systemctl status sleep.service
- 300 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement