command-line-murders/i-0de62a07cf62de4b3
by SadServersMore by SadServers
CGroup: /system.slice/flaskapp.service └─574 /usr/bin/python3 /home/admin/webserver.py Nov 22 20:13:43 i-0cda4f62b9b5220f9 systemd[1]: Started Flask Application. Nov 22 20:13:44 i-0cda4f62b9b5220f9 python3[574]: * Serving Flask app 'webserveNov 22 20:13:44 i-0cda4f62b9b5220f9 python3[574]: * Debug mode: off Nov 22 20:13:44 i-0cda4f62b9b5220f9 python3[574]: WARNING: This is a development a production deployment. Use a production WSGI server instead. Nov 22 20:13:44 i-0cda4f62b9b5220f9 python3[574]: * Running on http://127.0.0.1Nov 22 20:13:44 i-0cda4f62b9b5220f9 python3[574]: Press CTRL+C to quit Nov 22 20:15:37 i-0cda4f62b9b5220f9 python3[574]: 127.0.0.1 - - [22/Nov/2024 20:00 - admin@i-0cda4f62b9b5220f9:~$ ps -aux | grep flask admin 959 0.0 0.1 5264 640 pts/1 S<+ 20:20 0:00 grep flask admin@i-0cda4f62b9b5220f9:~$ ps -aux | grep flask
paris/i-0cda4f62b9b5220f9 04:19
by SadServersUnauthorizedadmin@i-01f465ecb0e6b6e62:~$ curl localhost:5000 Unauthorizedadmin@i-01f465ecb0e6b6e62:~$ ls agent webserver.py admin@i-01f465ecb0e6b6e62:~$ nano webserver.py admin@i-01f465ecb0e6b6e62:~$ sudo nano 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:
paris/i-01f465ecb0e6b6e62 00:44
by SadServersed find: ‘./var/log/private’: Permission denied find: ‘./var/log/chrony’: Permission denied find: ‘./var/lib/private’: Permission denied find: ‘./var/lib/apt/lists/partial’: Permission denied find: ‘./var/lib/chrony’: Permission denied admin@i-0454b5c96348909f7:/$ ^C admin@i-0454b5c96348909f7:/$ ^C admin@i-0454b5c96348909f7:/$ find . -type f -iname "webserver.py" 2>/dev/null ./home/admin/webserver.py admin@i-0454b5c96348909f7:/$ pwd / admin@i-0454b5c96348909f7:/$ less a9da3e83a611 a9da3e83a611: No such file or directory admin@i-0454b5c96348909f7:/$ less /h