command-line-murders/i-07c43db6ca913422a
by SadServersMore by SadServers
./main.go:64 +0x47d admin@i-050d914f485befec2:~$ admin@i-050d914f485befec2:~$ admin@i-050d914f485befec2:~$ mv data/datafile ./ admin@i-050d914f485befec2:~$ ls agent data datafile kihei admin@i-050d914f485befec2:~$ admin@i-050d914f485befec2:~$ admin@i-050d914f485befec2:~$ ls -l total 5245048 drwxr-xr-x 2 admin root 4096 Sep 17 17:28 agent drwxr-xr-x 2 admin root 4096 Oct 27 10:34 data -rwxrwxrwx 1 root root 5368709120 Sep 17 17:28 datafile -rwxr-xr-x 1 admin root 2207109 Sep 17 17:28 kihei admin@i-050d914f485befec2:~$ chown -udatafile
kihei/i-050d914f485befec2 03:46
by SadServersadmin@i-001eda64855cc97ed:~$ id -a uid=1000(admin) gid=1000(admin) groups=1000(admin),4(adm),20(dialout),24(cdrom),udio),30(dip),44(video),46(plugdev),109(netdev) admin@i-001eda64855cc97ed:~$ sudo vim 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-001eda64855cc97ed:~$ sudo -l
paris/i-001eda64855cc97ed 03:34
by SadServersopenat(AT_FDCWD, "/home/admin/webserver.py", O_RDONLY|O_CLOEXEC) = -1 EACCES (Pestat("/home/admin/webserver.py", {st_mode=S_IFREG|0770, st_size=360, ...}) = 0 readlink("/home/admin/webserver.py", 0x7ffcd0b15d90, 4096) = -1 EINVAL (Invalid lstat("/home", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 lstat("/home/admin", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 lstat("/home/admin/webserver.py", {st_mode=S_IFREG|0770, st_size=360, ...}) = 0 openat(AT_FDCWD, "/home/admin/webserver.py", O_RDONLY) = -1 EACCES (Permission dwrite(2, "python3: can't open file '/home/"..., 82python3: can't open file '/homrrno 13] Permission denied ) = 82 rt_sigaction(SIGINT, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_r{sa_handler=0x6402c0, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f1915bdf1exit_group(2) = ? +++ exited with 2 +++ admin@i-0c85c5a418bb83a0e:/etc/systemd/system$ strace python3 /home/admin/webser