close(7) = 0 close(8) = 0 waitid(P_PID, 780, {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=780, si_uid=1000, si_status=1, si_utime=0, si_stime=0}, WEXITED|WNOWAIT, NULL) = 0 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=780, si_uid=1000, si_status=1, si_utime=0, si_stime=0} --- rt_sigreturn({mask=[]}) = 0 wait4(780, [{WIFEXITED(s) && WEXITSTATUS(s) == 1}], 0, {ru_utime={tv_sec=0, tv_usec=0}, ru_stime={tv_sec=0, tv_usec=2699}, ...}) = 780 unlinkat(AT_FDCWD, "/home/admin/data/newdatafile", 0) = 0 nanosleep({tv_sec=0, tv_nsec=1000000}, NULL) = 0 nanosleep({tv_sec=0, tv_nsec=1000000}, NULL) = 0 write(2, "panic: ", 7panic: ) = 7 write(2, "exit status 1", 13exit status 1) = 13 write(2, "\n", 1 ) = 1 write(2, "\n", 1 ) = 1 write(2, "goroutine ", 10goroutine ) = 10 write(2, "1", 11) = 1 write(2, " [", 2 [) = 2 write(2, "running", 7running) = 7 write(2, "]:\n", 3]: ) = 3 write(2, "main.main", 9main.main) = 9 write(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-0a15686ccdc37dbde:~$ strace ./kihei | grep /home/admin
kihei/i-0a15686ccdc37dbde
by SadServersMore by SadServers
drwx------ 3 admin admin 4.0K Sep 20 2023 .ansible -rw------- 1 admin admin 471 Apr 5 14:55 .bash_history -rw-r--r-- 1 admin admin 220 Aug 4 2021 .bash_logout -rw-r--r-- 1 admin admin 3.5K Aug 4 2021 .bashrc drwxr-xr-x 3 admin admin 4.0K Sep 20 2023 .config -rw-r--r-- 1 admin admin 807 Aug 4 2021 .profile drwx------ 2 admin admin 4.0K Sep 17 2023 .ssh drwxr-xr-x 2 admin root 4.0K Sep 24 2023 agent -rwxrwx--- 1 root root 360 Sep 24 2023 webserver.py admin@i-000557d38915e9a6c:~$ chown chown: missing operand Try 'chown --help' for more information. admin@i-000557d38915e9a6c:~$ chown admin:admin webserver.py chown: changing ownership of 'webserver.py': Operation not permitted admin@i-000557d38915e9a6c:~$ curl localhost:5000
paris/i-000557d38915e9a6c 02:48
by SadServerstmpfs 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 tmpfs tmpfs 46M 0 46M 0% /run/user/0 root@i-0ced6b4cc0425e4f5:/home/admin# /home/admin/kihei Error: This program cannot be run as the 'root' superuser. root@i-0ced6b4cc0425e4f5:/home/admin# LL bash: LL: command not found root@i-0ced6b4cc0425e4f5:/home/admin# ls -lrt total 5245048 -rw-r--r-- 1 root root 5368709120 Sep 17 17:28 datafile drwxr-xr-x 2 admin root 4096 Sep 17 17:28 data -rwxr-xr-x 1 admin root 2207109 Sep 17 17:28 kihei drwxr-xr-x 2 admin root 4096 Sep 17 17:28 agent root@i-0ced6b4cc0425e4f5:/home/admin# ps i
kihei/i-0ced6b4cc0425e4f5 01:58
by SadServersortname=mixed,utf8,errors=remount-ro) admin@i-0c2273d796d05920a:~$ mount / mount: /: must be superuser to use mount. admin@i-0c2273d796d05920a:~$ tune2fs --help tune2fs 1.46.2 (28-Feb-2021) tune2fs: invalid option -- '-' Usage: tune2fs [-c max_mounts_count] [-e errors_behavior] [-f] [-g group] [-i interval[d|m|w]] [-j] [-J journal_options] [-l] [-m reserved_blocks_percent] [-o [^]mount_options[,...]] [-r reserved_blocks_count] [-u user] [-C mount_count] [-L volume_label] [-M last_mounted_dir] [-O [^]feature[,...]] [-Q quota_options] [-E extended-option[,...]] [-T last_check_time] [-U UUID] [-I new_inode_size] [-z undo_file] device admin@i-0c2273d796d05920a:~$ tune2fs /