command-line-murders/i-00e5882501666dffe
by SadServersMore by SadServers
bash: /home/admin/datafile: Permission denied admin@i-00ca6dd8e9e53cf6e:~$ sudo echo "" > /home/admin/datafile bash: /home/admin/datafile: Permission denied admin@i-00ca6dd8e9e53cf6e:~$ sudo su root@i-00ca6dd8e9e53cf6e:/home/admin# root@i-00ca6dd8e9e53cf6e:/home/admin# root@i-00ca6dd8e9e53cf6e:/home/admin# echo "" > /home/admin/datafile root@i-00ca6dd8e9e53cf6e:/home/admin# root@i-00ca6dd8e9e53cf6e:/home/admin# root@i-00ca6dd8e9e53cf6e:/home/admin# exit exit admin@i-00ca6dd8e9e53cf6e:~$ cd /home/admin/ admin@i-00ca6dd8e9e53cf6e:~$ ls agent data datafile kihei admin@i-00ca6dd8e9e53cf6e:~$ ./
kihei/i-00ca6dd8e9e53cf6e 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 SadServersif [[ "$actual_checksum" == "$expected_checksum" ]]; then echo -n "OK" else echo -n "NO" fiadmin@i-03f906c9d0e560363:~/agentcat /etc/systemd/system/flaskapp.servicepy [Unit] Description=Flask Application After=network.target [Service] ExecStart=/usr/bin/python3 /home/admin/webserver.py [Install] WantedBy=multi-user.target admin@i-03f906c9d0e560363:~/agent$ journalctl -u f