command-line-murders/i-0026829048e290c6e
by SadServersMore by SadServers
> User-Agent: curl/7.74.0 > Accept: */* > * Mark bundle as not supporting multiuse < HTTP/1.1 200 OK < Server: Werkzeug/2.3.7 Python/3.9.2 < Date: Sat, 04 Nov 2023 07:51:57 GMT < Content-Type: text/html; charset=utf-8 < Content-Length: 12 < Connection: close < * Closing connection 0 Unauthorizedadmin@i-0370f616b00c1c73f:~$ ls agent webserver.py admin@i-0370f616b00c1c73f:~$ s
paris/i-0370f616b00c1c73f 08:03
by SadServerswrite(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-002e45113dda7d71f:~$ strace ./kihei
kihei/i-002e45113dda7d71f 01:44
by SadServerstmpfs 5.0M 0 5.0M 0% /run/lock /dev/nvme0n1p15 124M 5.9M 118M 5% /boot/efi admin@i-0147dce3f78023c22:~$ ./ .ansible/ .config/ .ssh/ agent/ data/ kihei admin@i-0147dce3f78023c22:~$ ./kihei panic: exit status 1 goroutine 1 [running]: main.main() ./main.go:64 +0x47d admin@i-0147dce3f78023c22:~$ vi kihei admin@i-0147dce3f78023c22:~$ file kihei kihei: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, Gc7e4I/nM83nW4qxDvf9asNaf7E/5u1Qa6jnFvq2KL4kV5G1/6IwNz7tVbey9uC58oKsR, not strippadmin@i-0147dce3f78023c22:~$ kihe
kihei/i-0147dce3f78023c22 01:07
by SadServersUser admin may run the following commands on i-08be8007cddf7ce4c: (ALL : ALL) ALL (ALL) NOPASSWD: /sbin/shutdown admin@i-08be8007cddf7ce4c:~$ sudo nmap -sS 172.31.43.117 -p- 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: