paris/i-022b1a3cef76b510f
by SadServersMore by SadServers
agent webserver.py admin@i-07ce4a8d4e2cfe93b:~$ cat webserver.py cat: webserver.py: Permission denied admin@i-07ce4a8d4e2cfe93b:~$ usod cat webserver.py bash: usod: command not found admin@i-07ce4a8d4e2cfe93b:~$ sudo cat 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:
paris/i-07ce4a8d4e2cfe93b 02:12
by SadServerswrite(2, "(", 1() = 1 write(2, ")\n", 2) ) = 2 write(2, "\t", 1 ) = 1 write(2, "./main.go", 9./main.go) = 9 write(2, ":", 1:) = 1 write(2, "64", 264) = 2 write(2, " +", 2 +) = 2 write(2, "0x47d", 50x47d) = 5 write(2, "\n", 1 ) = 1 exit_group(2) = ? +++ exited with 2 +++ admin@i-0ba0e9134ae67be7e:~$ ls data admin@i-0ba0e9134ae67be7e:~$
kihei/i-0ba0e9134ae67be7e 03:41
by SadServersdrwx------ 4 root root 4096 Nov 5 20:22 root drwxr-xr-x 23 root root 680 Nov 5 20:22 run lrwxrwxrwx 1 root root 8 Sep 28 2021 sbin -> usr/sbin drwxr-xr-x 2 root root 4096 Sep 28 2021 srv dr-xr-xr-x 13 root root 0 Nov 5 20:21 sys drwxrwxrwt 9 root root 4096 Nov 5 20:22 tmp drwxr-xr-x 14 root root 4096 Sep 28 2021 usr drwxr-xr-x 11 root root 4096 Sep 28 2021 var root@i-00052c2fc51abf45d:/# cd /media/ root@i-00052c2fc51abf45d:/media# ls -la total 8 drwxr-xr-x 2 root root 4096 Sep 28 2021 . drwxr-xr-x 18 root root 4096 Nov 5 20:22 .. root@i-00052c2fc51abf45d:/media# cd .. root@i-00052c2fc51abf45d:/# du -h
kihei/i-00052c2fc51abf45d 00:50
by SadServerswrite(2, "0x47d", 50x47d) = 5 write(2, "\n", 1 ) = 1 exit_group(2) = ? +++ exited with 2 +++ admin@i-05088a4f1fc43f619:~$ strace ./kihei 2>&1 | grep datafile newfstatat(AT_FDCWD, "/home/admin/data/newdatafile", 0xc00008e9f8, 0) = -1 ENOENunlinkat(AT_FDCWD, "/home/admin/data/newdatafile", 0) = 0 admin@i-05088a4f1fc43f619:~$ cd data admin@i-05088a4f1fc43f619:~/data$ ls -al total 8 drwxr-xr-x 2 admin root 4096 Dec 5 09:17 . drwxr-xr-x 7 admin admin 4096 Dec 5 09:12 .. admin@i-05088a4f1fc43f619:~/data$ touch newdatafile admin@i-05088a4f1fc43f619:~/data$ strace .../kihei 2>&1 | grep datafile