command-line-murders/i-09fad11fa11a5b668
by SadServersMore by SadServers
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 0%[ index.html 100%[===================================================================>] 12 --.-KB/s in 0s 2025-02-05 00:23:50 (1.79 MB/s) - ‘index.html’ saved [12/12] admin@i-00106663cc89b7917:~$ ls agent index.html webserver.py admin@i-00106663cc89b7917:~$ cat index.html Unauthorizedadmin@i-00106663cc89b7917:~$ nc localh
paris/i-00106663cc89b7917 00:58
by SadServersadmin@i-02e1f7758a02de499:~$ ^C admin@i-02e1f7758a02de499:~$ ls -la total 44 drwxr-xr-x 6 admin admin 4096 Sep 24 23:20 . drwxr-xr-x 3 root root 4096 Sep 17 16:44 .. drwx------ 3 admin admin 4096 Sep 20 15:52 .ansible -rw------- 1 admin admin 1036 Oct 20 18:12 .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 15:56 .config -rw-r--r-- 1 admin admin 807 Aug 4 2021 .profile drwx------ 2 admin admin 4096 Sep 17 16:44 .ssh drwxr-xr-x 2 admin root 4096 Sep 24 23:20 agent -rwxrwx--- 1 root root 360 Sep 24 23:20 webserver.py admin@i-02e1f7758a02de499:~$ curl -vv "http://localhost:5000"
paris/i-02e1f7758a02de499 06:48
by SadServersadmin@i-072d28a9ffafc9157:~$ systemctl edit flaskapp.service Failed to create directories for "/etc/systemd/system/flaskapp.service.d/overridadmin@i-072d28a9ffafc9157:~$ systemctl cat flaskapp.service # /etc/systemd/system/flaskapp.service [Unit] Description=Flask Application After=network.target [Service] ExecStart=/usr/bin/python3 /home/admin/webserver.py [Install] WantedBy=multi-user.target admin@i-072d28a9ffafc9157:~$ vim /etc/systemd/system/flaskapp.service