paris/i-0a6259e5e5d577ae2
by SadServersMore by SadServers
-rw-r--r-- 1 admin admin 807 Aug 4 2021 .profile admin@i-061fdb9cf7dfc377a:~$ cat webserver.py cat: webserver.py: Permission denied admin@i-061fdb9cf7dfc377a:~$ sudo vi 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-061fdb9cf7dfc377a:~$
paris/i-061fdb9cf7dfc377a 03:06
by SadServersadmin@i-0beab9edf67e40416:~$ cd /etc/ap apache2/ apparmor/ apparmor.d/ apt/ admin@i-0beab9edf67e40416:~$ cd /etc/apache2/ admin@i-0beab9edf67e40416:/etc/apache2$ ls -al total 12 drwxr-xr-x 3 root root 4096 Sep 24 23:19 . drwxr-xr-x 75 root root 4096 Dec 28 12:25 .. drwxr-xr-x 2 root root 4096 Sep 24 23:19 conf-available admin@i-0beab9edf67e40416:/etc/apache2$ cd conf-available/ admin@i-0beab9edf67e40416:/etc/apache2/conf-available$ ls -al total 12 drwxr-xr-x 2 root root 4096 Sep 24 23:19 . drwxr-xr-x 3 root root 4096 Sep 24 23:19 .. -rw-r--r-- 1 root root 127 Dec 18 2020 javascript-common.conf admin@i-0beab9edf67e40416:/etc/apache2/conf-available$
paris/i-0beab9edf67e40416 03:18
by SadServersnvme2n1 259:2 0 1G 0 disk admin@i-02780e50ec753e2bd:~$ sudo pvcreate /dev/nvme1n1 /dev/nvme2n1 Physical volume "/dev/nvme1n1" successfully created. Physical volume "/dev/nvme2n1" successfully created. admin@i-02780e50ec753e2bd:~$ sudo vgcreate dd /dev/nvme1n1 /dev/nvme2n1 Volume group "dd" successfully created admin@i-02780e50ec753e2bd:~$ sudo lvcreate -l 100%FREE -n app dd Logical volume "app" created. admin@i-02780e50ec753e2bd:~$ lvs WARNING: Running as a non-root user. Functionality may be unavailable. /run/lock/lvm/P_global:aux: open failed: Permission denied admin@i-02780e50ec753e2bd:~$ sudo lvs LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert app dd -wi-a----- 1.99g admin@i-02780e50ec753e2bd:~$ mksfs
kihei/i-02780e50ec753e2bd 03:46
by SadServersUnauthorizedadmin@i-0b44691fa1530d7a7:/$ curl localhost:5000/index.html <!doctype html> <html lang=en> <title>404 Not Found</title> <h1>Not Found</h1> <p>The requested URL was not found on the server. If you entered the URL manualling and try again.</p> admin@i-0b44691fa1530d7a7:/$ curl localhost:5000/password <!doctype html> <html lang=en> <title>404 Not Found</title> <h1>Not Found</h1> <p>The requested URL was not found on the server. If you entered the URL manualling and try again.</p> admin@i-0b44691fa1530d7a7:/$