command-line-murders/i-0a17b2cd534833d28
by SadServersMore by SadServers
newfstatat(AT_FDCWD, "/usr/sbin/fallocate", 0xc000012d38, 0) = -1 ENOENT (No sucnewfstatat(AT_FDCWD, "/usr/bin/fallocate", {st_mode=S_IFREG|0755, st_size=35048,openat(AT_FDCWD, "/dev/null", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/dev/null", O_WRONLY|O_CLOEXEC) = 7 openat(AT_FDCWD, "/dev/null", O_WRONLY|O_CLOEXEC) = 8 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=698, si_uid=1000, si_sme=0} --- unlinkat(AT_FDCWD, "/home/admin/data/newdatafile", 0) = 0 panic: exit status 1 goroutine 1 [running]: main.main() ./main.go:64 +0x47d +++ exited with 2 +++ admin@i-048eed74781c3e02b:~$ strace -e trace=file ./kihei
kihei/i-048eed74781c3e02b 00:23
by SadServersdrwxr-xr-x 3 root root 16384 Jan 1 1970 data -rw-r--r-- 1 root root 5368709120 Sep 17 17:28 datafile -rwxr-xr-x 1 admin root 2207109 Sep 17 17:28 kihei admin@i-0e45767b31594566c:~$ chmod 777 data chmod: changing permissions of 'data': Operation not permitted admin@i-0e45767b31594566c:~$ sudo chmod 777 data admin@i-0e45767b31594566c:~$ ./kihei -v Deleting file /home/admin/data/newdatafile... panic: remove /home/admin/data/newdatafile: permission denied goroutine 1 [running]: main.main() ./main.go:50 +0x48d admin@i-0e45767b31594566c:~$ rm /home/admin/data/newdatafile rm: remove write-protected regular empty file '/home/admin/data/newdatafile'? n
kihei/i-0e45767b31594566c 09:15
by SadServerstmpfs tmpfs 46M 368K 46M 1% /run /dev/nvme0n1p1 ext4 7.7G 6.1G 1.2G 84% / tmpfs tmpfs 228M 12K 228M 1% /dev/shm tmpfs tmpfs 5.0M 0 5.0M 0% /run/lock /dev/nvme0n1p15 vfat 124M 5.9M 118M 5% /boot/efi admin@i-042529935cf6ea978:~$ du -hs 5.1G . admin@i-042529935cf6ea978:~$ ls /tmp/ systemd-private-dbb9b1572734473f80544d033914d54f-chrony.service-MtT1Xi systemd-admin@i-042529935cf6ea978:~$ ls agent data datafile kihei admin@i-042529935cf6ea978:~$ cd agent/ admin@i-042529935cf6ea978:~/agent$ ls check.sh sadagent sadagent.txt admin@i-042529935cf6ea978:~/agent$