command-line-murders/i-0fb9eb68a56435ce9
by SadServersMore by SadServers
Length: 12 [text/html] Saving to: ‘index.html’ index.html 0%[ ] index.html 100%[===============================================================================================>] 2023-10-29 23:40:27 (1.46 MB/s) - ‘index.html’ saved [12/12] admin@i-0ba76e991ff07bc23:~$ ls agent index.html webserver.py admin@i-0ba76e991ff07bc23:~$ cat index.html Unauthorizedadmin@i-0ba76e991ff07bc23:~$ sudo wget
paris/i-0ba76e991ff07bc23 01:15
by SadServers-rwxrwx--- 1 root root 360 Sep 24 23:20 webserver.py admin@i-056d7eb6f3afcb862:~$ sudo cat webserver.py We trust you have received the usual lecture from the local System Administrator. It usually boils down to these three things: #1) Respect the privacy of others. #2) Think before you type. #3) With great power comes great responsibility. [sudo] password for admin: sudo: a password is required admin@i-056d7eb6f3afcb862:~$ locate webserver.py bash: locate: command not found admin@i-056d7eb6f3afcb862:~$ find / -nwebserver.py
paris/i-056d7eb6f3afcb862 03:33
by SadServerstotal 44 drwxr-xr-x 6 admin admin 4096 Sep 24 2023 . drwxr-xr-x 3 root root 4096 Sep 17 2023 .. drwx------ 3 admin admin 4096 Sep 20 2023 .ansible -rw------- 1 admin admin 441 Jan 19 09:55 .bash_history -rw-r--r-- 1 admin admin 220 Aug 4 2021 .bash_logout -rw-r--r-- 1 admin admin 3526 Aug 4 2021 .bashrc drwxr-xr-x 3 admin admin 4096 Sep 20 2023 .config -rw-r--r-- 1 admin admin 807 Aug 4 2021 .profile drwx------ 2 admin admin 4096 Sep 17 2023 .ssh drwxr-xr-x 2 admin root 4096 Sep 24 2023 agent -rwxrwx--- 1 root root 360 Sep 24 2023 webserver.py admin@i-03340b7ac9cef3b13:~$ groups admin admin : admin adm dialout cdrom floppy sudo audio dip video plugdev netdev admin@i-03340b7ac9cef3b13:~$ ls
paris/i-03340b7ac9cef3b13 03:24
by SadServersVolume group "mon_vg" successfully created admin@i-01f9eac839ff463e1:~$ lvcreate -l 100%FREE -n mon_lv mon_ng WARNING: Running as a non-root user. Functionality may be unavailable. /dev/mapper/control: open failed: Permission denied Failure to communicate with kernel device-mapper driver. Incompatible libdevmapper 1.02.175 (2021-01-08) and kernel driver (unknown ver striped: Required device-mapper target(s) not detected in your kernel. Run `lvcreate --help' for more information. admin@i-01f9eac839ff463e1:~$ sudo lvcreate -l 100%FREE -n mon_lv mon_vg Logical volume "mon_lv" created. admin@i-01f9eac839ff463e1:~$ mount /home/admin/data data/ datafile admin@i-01f9eac839ff463e1:~$ mount /home/admin/data data/ datafile admin@i-01f9eac839ff463e1:~$ mount /home/admin/data