command-line-murders/i-038602785d3f41a4a
by SadServersMore by SadServers
admin@i-08c43809f7342e8fa:~$ cat ~/mysolution Unauthorized admin@i-08c43809f7342e8fa:~$ md5sum ~/mysolution be3c5cdccf225ae191b14b7dcef21246 /home/admin/mysolution admin@i-08c43809f7342e8fa:~$ echo "Unauthorized" > ~/mysolution ^C admin@i-08c43809f7342e8fa:~$ curl --user admin -D- http://localhost:5000/ Enter host password for user 'admin': HTTP/1.1 200 OK Server: Werkzeug/2.3.7 Python/3.9.2 Date: Wed, 27 Dec 2023 18:56:03 GMT Content-Type: text/html; charset=utf-8 Content-Length: 12 Connection: close Unauthorizedadmin@i-08c43809f7342e8fa:~$
paris/i-08c43809f7342e8fa 03:11
by SadServersadmin@i-0ff8052777bfebd18:~$ du -sh /home/admin/* 11M /home/admin/agent 4.0K /home/admin/data 5.1G /home/admin/datafile 2.2M /home/admin/kihei admin@i-0ff8052777bfebd18:~$ cd /home/admin/ admin@i-0ff8052777bfebd18:~$ ls -ll total 5245048 drwxr-xr-x 2 admin root 4096 Sep 17 2023 agent drwxr-xr-x 2 admin root 4096 Feb 13 13:20 data -rw-r--r-- 1 root root 5368709120 Sep 17 2023 datafile -rwxr-xr-x 1 admin root 2207109 Sep 17 2023 kihei admin@i-0ff8052777bfebd18:~$ mv /home/admin/datafile /opt/ mv: cannot move '/home/admin/datafile' to '/opt/datafile': Permission denied admin@i-0ff8052777bfebd18:~$ mv /home/admin
kihei/i-0ff8052777bfebd18 03:35
by SadServersgoroutine 1 [running]: main.main() ./main.go:62 +0x465 admin@i-06bda4a9f0a6d2dd2:~$ vim trace-new.txt admin@i-06bda4a9f0a6d2dd2:~$ ls agent data datafile kihei kihei.bkp trace-new.txt trace.txt admin@i-06bda4a9f0a6d2dd2:~$ cp kihei.bkp kihei admin@i-06bda4a9f0a6d2dd2:~$ ls agent data datafile kihei kihei.bkp trace-new.txt trace.txt admin@i-06bda4a9f0a6d2dd2:~$ cd data/ admin@i-06bda4a9f0a6d2dd2:~/data$ ls admin@i-06bda4a9f0a6d2dd2:~/data$ touch /home/admin/data/newdatafile admin@i-06bda4a9f0a6d2dd2:~/data$ ls newdatafile admin@i-06bda4a9f0a6d2dd2:~/data$