command-line-murders/i-0a41c6255b5fa3830
by SadServersMore by SadServers
-rw-r--r-- 1 admin admin 5368709120 Sep 17 17:28 datafile -rwxr-xr-x 1 admin root 2207109 Sep 17 17:28 kihei admin@i-05a00e67658b3d4fa:~$ ll total 5245048 drwxr-xr-x 2 admin root 4096 Sep 17 17:28 agent drwxr-xr-x 2 admin root 4096 Nov 4 20:50 data -rw-r--r-- 1 admin admin 5368709120 Sep 17 17:28 datafile -rwxr-xr-x 1 admin root 2207109 Sep 17 17:28 kihei admin@i-05a00e67658b3d4fa:~$ ./kihei panic: exit status 1 goroutine 1 [running]: main.main() ./main.go:64 +0x47d admin@i-05a00e67658b3d4fa:~$ ll
kihei/i-05a00e67658b3d4fa 11:42
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-0f74c319172ce7b15:~$ strace ./kihei
kihei/i-0f74c319172ce7b15 00:46
by SadServersTasks: 1 (limit: 521) Memory: 21.5M CPU: 394ms CGroup: /system.slice/flaskapp.service └─574 /usr/bin/python3 /home/admin/webserver.py Dec 15 08:20:08 i-003e48bbc8151d53a systemd[1]: Started Flask Application. Dec 15 08:20:09 i-003e48bbc8151d53a python3[574]: * Serving Flask app 'webserveDec 15 08:20:09 i-003e48bbc8151d53a python3[574]: * Debug mode: off Dec 15 08:20:09 i-003e48bbc8151d53a python3[574]: WARNING: This is a developmentDec 15 08:20:09 i-003e48bbc8151d53a python3[574]: * Running on http://127.0.0.1Dec 15 08:20:09 i-003e48bbc8151d53a python3[574]: Press CTRL+C to quit admin@i-003e48bbc8151d53a:~$ vim /etc/systemd/system/flaskapp.service admin@i-003e48bbc8151d53a:~$ vim /home/admin/webserver.py admin@i-003e48bbc8151d53a:~$ system
paris/i-003e48bbc8151d53a 02:52
by SadServersadmin@i-08a1941667a15b5b6:/home$ cd /var/log/ admin@i-08a1941667a15b5b6:/var/log$ ls alternatives.log auth.log.2.gz cloud-init-output.log debug faillog te unattended-upgrades alternatives.log.1 btmp cloud-init.log debug.1 journal user.log apt btmp.1 daemon.log debug.2.gz kern.log g user.log.1 auth.log cast daemon.log.1 dpkg.log kern.log.1g.1 user.log.2.gz auth.log.1 chrony daemon.log.2.gz dpkg.log.1 kern.log.2g.2.gz wtmp admin@i-08a1941667a15b5b6:/var/log$ less messages admin@i-08a1941667a15b5b6:/var/log$ less syslog admin@i-08a1941667a15b5b6:/var/log$ c