command-line-murders/i-051bc54d50ccea613
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 SadServersdrwxr-xr-x 6 admin admin 4096 Feb 14 01:24 .. -rwxr-xr-x 1 admin admin 230 Sep 24 23:20 check.sh -rwxr-xr-x 1 admin root 11397096 Sep 20 15:53 sadagent -rw-r--r-- 1 admin admin 0 Sep 20 15:53 sadagent.txt admin@i-0613915f249b84d87:~/agent$ cat check.sh #!/bin/bash expected_checksum="d8bee9d7f830d5fb59b89e1e120cce8e" actual_checksum=$(md5sum /home/admin/mysolution | awk '{print $1}') if [[ "$actual_checksum" == "$expected_checksum" ]]; then echo -n "OK" else echo -n "NO" fiadmin@i-0613915f249b84d87:~/agent$ ./
paris/i-0613915f249b84d87 02:18
by SadServersadmin@i-04f9b68ba2ba71eb9:~$ pwd /home/admin admin@i-04f9b68ba2ba71eb9:~$ admin@i-04f9b68ba2ba71eb9:~$ ls agent data datafile kihei admin@i-04f9b68ba2ba71eb9:~$ cd agent/ admin@i-04f9b68ba2ba71eb9:~/agent$ ls check.sh sadagent sadagent.txt admin@i-04f9b68ba2ba71eb9:~/agent$ cat c
kihei/i-04f9b68ba2ba71eb9 00:18
by SadServerssudo: 3 incorrect password attempts admin@i-0ade0a697ccc4e8f9:/$ cd /usr/ bin/ include/ lib32/ libexec/ local/ share/ games/ lib/ lib64/ libx32/ sbin/ src/ admin@i-0ade0a697ccc4e8f9:/$ cd /home/admin/ admin@i-0ade0a697ccc4e8f9:~$ ls agent webserver.py admin@i-0ade0a697ccc4e8f9:~$ ls agent/ check.sh sadagent sadagent.txt admin@i-0ade0a697ccc4e8f9:~$ ls agent/sadagent agent/sadagent admin@i-0ade0a697ccc4e8f9:~$ less agent/sadagent sadagent sadagent.txt admin@i-0ade0a697ccc4e8f9:~$ less agent/sadagent.txt admin@i-0ade0a697ccc4e8f9:~$ less agent/sadagent.txt