PATH="$HOME/.local/bin:$PATH" fi admin@i-02771b3f9cef454ca:~$ cat agent/ check.sh sadagent sadagent.txt admin@i-02771b3f9cef454ca:~$ cat agent/ check.sh sadagent sadagent.txt admin@i-02771b3f9cef454ca:~$ cat agent/check.sh #!/bin/bash expected_checksum="d8bee9d7f830d5fb59b89e1e120cce8e" actual_checksum=$(md5sum /home/admin/mysolution | awk '{print $1}') if [[ "$actual_checksum" == "$expected_checksum" ]]; then echo -n "OK" else echo -n "NO" fiadmin@i-02771b3f9cef454ca:~$ ls agent webserver.py admin@i-02771b3f9cef454ca:~$ curl localhost:5000 Unauthorizedadmin@i-02771b3f9cef454ca:~$ ls agent webserver.py admin@i-02771b3f9cef454ca:~$ ls -lah total 52K drwxr-xr-x 7 admin admin 4.0K Jan 1 17:19 . drwxr-xr-x 3 root root 4.0K Sep 17 16:44 .. drwx------ 3 admin admin 4.0K Sep 20 15:52 .ansible -rw------- 1 admin admin 517 Jan 1 17:22 .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 15:56 .config drwxr-xr-x 3 admin admin 4.0K Jan 1 17:19 .local -rw-r--r-- 1 admin admin 807 Aug 4 2021 .profile drwx------ 2 admin admin 4.0K Sep 17 16:44 .ssh -rw-r--r-- 1 admin admin 1.0K Jan 1 17:19 .webserver.py.swp drwxr-xr-x 2 admin root 4.0K Sep 24 23:20 agent -rwxrwx--- 1 root root 360 Sep 24 23:20 webserver.py admin@i-02771b3f9cef454ca:~$ curl localhost:5000/
paris/i-02771b3f9cef454ca
by SadServersMore by SadServers
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-0cda1507b0f7c9669:~$ ls agent data datafile kihei admin@i-0cda1507b0f7c9669:~$
kihei/i-0cda1507b0f7c9669 01:34
by SadServers/asn1.oidEncoder,encoding/asn1.encodergo.itab.encoding/asn1.stringEncoder,encodiitab.encoding/asn1.int64Encoder,encoding/asn1.encodergo.itab.encoding/asn1.setEnencodergo.itab.golang.org/x/text/internal/language.sortVariants,sort.Interfacego/text/internal/language.variantsSort,sort.Interfacego.itab.golang.org/x/text/intuage.Tag,golang.org/x/text/internal/language/compact.fullTaggo.itab.*encoding/gogobTypego.itab.*encoding/gob.arrayType,encoding/gob.gobTypego.itab.*encoding/gob.gobTypego.itab.*encoding/gob.CommonType,encoding/gob.gobType__errno_locationgaihabortpthread_cond_broadcastsigactionsetenvpthread_cond_waitmmapnanosleepfputcpttex_unlockmallocmunmapvfprintfunsetenvpthread_attr_destroysigismemberfwritestrerime.buildVersion.strruntime.modinfo.strtype.*runtime.textsectionmap^C admin@i-059172a6cbeaf621a:~/agent$ tail -300f sadagent.txt ^C admin@i-059172a6cbeaf621a:~/agent$ ls check.sh sadagent sadagent.txt admin@i-059172a6cbeaf621a:~/agent$