command-line-murders/i-0e27df5a39c2f8552
by SadServersMore by SadServers
Disk identifier: 0xb43838c3 Device Boot Start End Sectors Size Id Type /dev/nvme2n1p1 2048 2097151 2095104 1023M 8e Linux LVM admin@i-0e9eb0be2a0842a52:~$ pvcreate /dev/nvme1n1p1 WARNING: Running as a non-root user. Functionality may be unavailable. /run/lock/lvm/P_global:aux: open failed: Permission denied admin@i-0e9eb0be2a0842a52:~$ sudo pvcreate /dev/nvme1n1p1 /dev/nvme2n1p1 Physical volume "/dev/nvme1n1p1" successfully created. Physical volume "/dev/nvme2n1p1" successfully created. admin@i-0e9eb0be2a0842a52:~$ sudo pvs PV VG Fmt Attr PSize PFree /dev/sdb1 lvm2 --- 1023.00m 1023.00m /dev/sdc1 lvm2 --- 1023.00m 1023.00m admin@i-0e9eb0be2a0842a52:~$ vgcreate
kihei/i-0e9eb0be2a0842a52 03:39
by SadServersMemory: 21.9M CPU: 361ms CGroup: /system.slice/flaskapp.service └─574 /usr/bin/python3 /home/admin/webserver.py Nov 04 08:00:38 i-0ff13c81e3a7b9d0a systemd[1]: Started Flask Application. Nov 04 08:00:39 i-0ff13c81e3a7b9d0a python3[574]: * Serving Flask app 'webserveNov 04 08:00:39 i-0ff13c81e3a7b9d0a python3[574]: * Debug mode: off Nov 04 08:00:39 i-0ff13c81e3a7b9d0a python3[574]: WARNING: This is a developmentNov 04 08:00:39 i-0ff13c81e3a7b9d0a python3[574]: * Running on http://127.0.0.1Nov 04 08:00:39 i-0ff13c81e3a7b9d0a python3[574]: Press CTRL+C to quit Nov 04 08:02:22 i-0ff13c81e3a7b9d0a python3[574]: 127.0.0.1 - - [04/Nov/2023 08:admin@i-0ff13c81e3a7b9d0a:~$ ls agent webserver.py (reverse-i-search)`les': less /etc/systemd/system/flaskapp.service
paris/i-0ff13c81e3a7b9d0a 01:59
by SadServersadmin@i-0c17fc97359aff9e0:~$ curl localhost:5000 Unauthorizedadmin@i-0c17fc97359aff9e0:~$ wget localhost:5000 --2024-02-14 03:27:44-- http://localhost:5000/ Resolving localhost (localhost)... 127.0.0.1 Connecting to localhost (localhost)|127.0.0.1|:5000... connected. HTTP request sent, awaiting response... 200 OK Length: 12 [text/html] Saving to: ‘index.html’ index.html 100%[=====================================>] 12 2024-02-14 03:27:44 (210 KB/s) - ‘index.html’ saved [12/12] admin@i-0c17fc97359aff9e0:~$ curl --user-agent "
paris/i-0c17fc97359aff9e0 01:00
by SadServersadmin@i-005816389398da366:~$ md5sum ~/mysolution md5sum: /home/admin/mysolution: No such file or directory admin@i-005816389398da366:~$ sudo cat /etc/passwd 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: