command-line-murders/i-06d9a3b708cd2b206
by SadServersMore by SadServers
cat: /etc/sudoers: Permission denied admin@i-092d4cf55fa0651c2:~$ sudo python3 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-092d4cf55fa0651c2:~$ ls agent webserver.py admin@i-092d4cf55fa0651c2:~$ ps aux |grep webserver
paris/i-092d4cf55fa0651c2 04:06
by SadServers└─574 /usr/bin/python3 /home/admin/webserver.py Dec 15 04:32:33 i-0d59b5144c518c525 systemd[1]: Started Flask Application. Dec 15 04:32:33 i-0d59b5144c518c525 python3[574]: * Serving Flask app 'webserveDec 15 04:32:33 i-0d59b5144c518c525 python3[574]: * Debug mode: off Dec 15 04:32:33 i-0d59b5144c518c525 python3[574]: WARNING: This is a developmentn a production deployment. Use a production WSGI server instead. Dec 15 04:32:33 i-0d59b5144c518c525 python3[574]: * Running on http://127.0.0.1Dec 15 04:32:33 i-0d59b5144c518c525 python3[574]: Press CTRL+C to quit Dec 15 04:34:44 i-0d59b5144c518c525 python3[574]: 127.0.0.1 - - [15/Dec/2023 04:200 - admin@i-0d59b5144c518c525:~$ systemctl restart flaskapp Failed to restart flaskapp.service: Access denied See system logs and 'systemctl status flaskapp.service' for details. admin@i-0d59b5144c518c525:~$
paris/i-0d59b5144c518c525 03:24
by SadServerslsof 905 admin mem REG 259,1 16612-linux-gnu/libselinux.so.1 lsof 905 admin mem REG 259,1 17792-linux-gnu/ld-2.31.so lsof 905 admin 4r FIFO 0,11 0tlsof 905 admin 7w FIFO 0,11 0tadmin@i-0032345432e40698b:~$ curl 172.31.44.67:5000 curl: (7) Failed to connect to 172.31.44.67 port 5000: Connection refused admin@i-0032345432e40698b:~$ curl localhost:5000 Unauthorizedadmin@i-0032345432e40698b:~$ md5sum Unauthorize md5sum: Unauthorize: No such file or directory admin@i-0032345432e40698b:~$ echo Unauthorize > ~/mysolution admin@i-0032345432e40698b:~$ md5sum ~/mysolution 0292f6b5fcbc291aa125a82d9ff97dc2 /home/admin/mysolution admin@i-0032345432e40698b:~$