command-line-murders/i-0b38cc81ad5880059
by SadServersMore by SadServers
Unknown command verb run. admin@i-08bac8ee245e1ff86:~$ cd /home/admin/kihei bash: cd: /home/admin/kihei: Not a directory admin@i-08bac8ee245e1ff86:~$ cd /home/admin/ admin@i-08bac8ee245e1ff86:~$ ls agent data datafile kihei admin@i-08bac8ee245e1ff86:~$ sudo chmod +x kihei admin@i-08bac8ee245e1ff86:~$ sudo kihei sudo: kihei: command not found admin@i-08bac8ee245e1ff86:~$ sudo ./kihei Error: This program cannot be run as the 'root' superuser. admin@i-08bac8ee245e1ff86:~$ sudo chmod 755 kihei admin@i-08bac8ee245e1ff86:~$ sudo ./kihei Error: This program cannot be run as the 'root' superuser. admin@i-08bac8ee245e1ff86:~$ sudo chmod 755 ./kihei
kihei/i-08bac8ee245e1ff86 05:07
by SadServersSorry, try again. [sudo] password for admin: sudo: 1 incorrect password attempt admin@i-03e132f618d80584c:~$ sudo curl localhost:5000 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-03e132f618d80584c:~$ ls
paris/i-03e132f618d80584c 01:36
by SadServers# kihei runs succesfully res=$(/home/admin/kihei) res=$(echo $res|tr -d '\r') if [[ "$res" = "Done." ]] then echo -n "OK" else echo -n "NO" fi admin@i-0afe27aa1ce9cfeda:~/agent$ ls -l /home/admin/datafile |cut -d' ' -f 5 5368709120 admin@i-0afe27aa1ce9cfeda:~/agent$ ls -l /home/admin/datafile -rw-r--r-- 1 root root 5368709120 Sep 17 2023 /home/admin/datafile admin@i-0afe27aa1ce9cfeda:~/agent$