command-line-murders/i-0cc3a825aa7b73727
by SadServersMore by SadServers
Memory: 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 SadServers#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-027eaff16231aee6e:~$ lsof /home/admin/webserver.py admin@i-027eaff16231aee6e:~$ mpstat 1 bash: mpstat: command not found admin@i-027eaff16231aee6e:~$ vmstat 1 1 procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu----- r b swpd free buff cache si so bi bo in cs us sy id wa st 0 0 0 188548 16960 163212 0 0 276 51 81 123 1 1 97 0 0admin@i-027eaff16231aee6e:~$
paris/i-027eaff16231aee6e 02:02
by SadServersdrwxr-xr-x 2 admin root 4096 Sep 17 17:28 data -rw-r--r-- 1 root root 5368709120 Sep 17 17:28 datafile -rwxr-xr-x 1 admin root 2207109 Sep 17 17:28 kihei admin@i-0847c56ed353b4fb9:~$ sudo -l Matching Defaults entries for admin on i-0847c56ed353b4fb9: env_reset, mail_badpass, secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sn User admin may run the following commands on i-0847c56ed353b4fb9: (ALL : ALL) ALL (ALL) NOPASSWD: ALL (ALL) NOPASSWD: ALL (ALL) NOPASSWD: ALL (ALL) NOPASSWD: /sbin/shutdown admin@i-0847c56ed353b4fb9:~$ rm .bash