command-line-murders/i-083a2337f8599cdb3
by SadServersMore by SadServers
-rwxr-xr-x 1 admin root 2.2M Sep 17 17:28 kihei admin@i-061e6f1896de4e4aa:~$ tar -czvf datafile.tar.gz datafile datafile admin@i-061e6f1896de4e4aa:~$ ls -lh total 5.1G drwxr-xr-x 2 admin root 4.0K Sep 17 17:28 agent drwxr-xr-x 2 admin root 4.0K Dec 12 15:18 data -rw-r--r-- 1 root root 5.0G Sep 17 17:28 datafile -rw-r--r-- 1 admin admin 5.0M Dec 12 15:25 datafile.tar.gz -rwxr-xr-x 1 admin root 2.2M Sep 17 17:28 kihei admin@i-061e6f1896de4e4aa:~$ true > datafile bash: datafile: Permission denied admin@i-061e6f1896de4e4aa:~$ sudo true > datafile bash: datafile: Permission denied admin@i-061e6f1896de4e4aa:~$ chmod 664
kihei/i-061e6f1896de4e4aa 06:20
by SadServersadmin 676 0.0 0.7 5920 3540 pts/0 S<s+ 12:31 0:00 bash -l admin 678 0.1 4.2 98716 19708 pts/0 D<l+ 12:31 0:00 /usr/bin/pythadmin 681 0.1 3.2 24720 15140 pts/0 R<+ 12:31 0:00 /usr/bin/pythadmin 682 0.0 0.1 2480 512 pts/1 S<s 12:31 0:00 sh -c /bin/baadmin 683 0.0 1.0 6952 4800 pts/1 S< 12:31 0:00 /bin/bash admin 818 0.0 0.7 8648 3296 pts/1 R<+ 12:35 0:00 ps aux admin@i-02e61d4353cef23e1:~$ whoami admin admin@i-02e61d4353cef23e1:~$ ./kihei panic: exit status 1 goroutine 1 [running]: main.main() ./main.go:64 +0x47d admin@i-02e61d4353cef23e1:~$ df -h
kihei/i-02e61d4353cef23e1 02:28
by SadServersadmin@i-01938499a23dd6d8b:~$ curl http://localhost:5000 Unauthorizedadmin@i-01938499a23dd6d8b:~$ curl https://localhost:5000 curl: (35) error:1408F10B:SSL routines:ssl3_get_record:wrong version number admin@i-01938499a23dd6d8b:~$ strace -p 573 strace: attach: ptrace(PTRACE_SEIZE, 573): Operation not permitted admin@i-01938499a23dd6d8b:~$ sudo strace -p 573 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-01938499a23dd6d8b 05:03
by SadServersadmin@i-0bb664b967d26d93a:~$ curl 127.0.0.1:80 curl: (7) Failed to connect to 127.0.0.1 port 80: Connection refused admin@i-0bb664b967d26d93a:~$ curl 127.0.0.1:443 curl: (7) Failed to connect to 127.0.0.1 port 443: Connection refused admin@i-0bb664b967d26d93a:~$ curl 127.0.0.1:5000 Unauthorizedadmin@i-0bb664b967d26d93a:~$ admin@i-0bb664b967d26d93a:~$ nc localhost 5000