kihei/i-09dd7a16c1516f9c8
by SadServersMore by SadServers
openat(AT_FDCWD, "/home/admin/webserver.py", O_RDONLY|O_CLOEXEC) = -1 EACCES (Pestat("/home/admin/webserver.py", {st_mode=S_IFREG|0770, st_size=360, ...}) = 0 readlink("/home/admin/webserver.py", 0x7ffcd0b15d90, 4096) = -1 EINVAL (Invalid lstat("/home", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 lstat("/home/admin", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 lstat("/home/admin/webserver.py", {st_mode=S_IFREG|0770, st_size=360, ...}) = 0 openat(AT_FDCWD, "/home/admin/webserver.py", O_RDONLY) = -1 EACCES (Permission dwrite(2, "python3: can't open file '/home/"..., 82python3: can't open file '/homrrno 13] Permission denied ) = 82 rt_sigaction(SIGINT, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_r{sa_handler=0x6402c0, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f1915bdf1exit_group(2) = ? +++ exited with 2 +++ admin@i-0c85c5a418bb83a0e:/etc/systemd/system$ strace python3 /home/admin/webser
paris/i-0c85c5a418bb83a0e 02:08
by SadServers/i-0868231192de13005 -q -i 2 /var/log/cast/i-0868231192de13005 709 pts/0 S<+ 0:00 \_ /usr/bin/python3 /usr/bin/asciinema recihei/i-0868231192de13005 -q -i 2 /var/log/cast/i-0868231192de13005 717 pts/1 S<+ 0:00 \_ grep kihei admin@i-0868231192de13005:~$ ps aux | grep kihei admin 706 0.4 4.1 98188 19224 pts/0 S<l+ 18:05 0:00 /usr/bin/pythusr/bin/asciinema rec -t kihei/i-0868231192de13005 -q -i 2 /var/log/cast/i-08682de13005 admin 709 0.0 3.0 24456 14440 pts/0 S<+ 18:05 0:00 /usr/bin/pythusr/bin/asciinema rec -t kihei/i-0868231192de13005 -q -i 2 /var/log/cast/i-08682de13005 admin 719 0.0 0.1 5264 636 pts/1 S<+ 18:05 0:00 grep kihei admin@i-0868231192de13005:~$ ls agent data datafile kihei admin@i-0868231192de13005:~$ df -
kihei/i-0868231192de13005 00:56
by SadServerstotal 52 drwxr-xr-x 6 admin admin 4096 Jan 29 01:18 . drwxr-xr-x 3 root root 4096 Sep 17 2023 .. drwx------ 3 admin admin 4096 Sep 20 2023 .ansible -rw------- 1 admin admin 655 Jan 29 01:20 .bash_history -rw-r--r-- 1 admin admin 220 Aug 4 2021 .bash_logout -rw-r--r-- 1 admin admin 3526 Aug 4 2021 .bashrc drwxr-xr-x 3 admin admin 4096 Sep 20 2023 .config -rw------- 1 admin admin 35 Jan 29 01:18 .lesshst -rw-r--r-- 1 admin admin 807 Aug 4 2021 .profile -rw------- 1 admin admin 12 Jan 29 01:17 .python_history drwx------ 2 admin admin 4096 Sep 17 2023 .ssh drwxr-xr-x 2 admin root 4096 Sep 24 2023 agent -rwxrwx--- 1 root root 360 Sep 24 2023 webserver.py admin@i-08df73095031700ec:/proc/579$ ls -la ~/
paris/i-08df73095031700ec 05:25
by SadServersadmin@i-090340fbfd6fc2419:~$ ls agent webserver.py admin@i-090340fbfd6fc2419:~$ admin@i-090340fbfd6fc2419:~$ curl localhost:5000 Unauthorizedadmin@i-090340fbfd6fc2419:~$ admin@i-090340fbfd6fc2419:~$ curl http://localhost:5000 Unauthorizedadmin@i-090340fbfd6fc2419:~$ curl https://localhost:5000 curl: (35) error:1408F10B:SSL routines:ssl3_get_record:wrong version number admin@i-090340fbfd6fc2419:~$ admin@i-090340fbfd6fc2419:~$ curl localhost:5000/?auth=true Unauthorizedadmin@i-090340fbfd6fc2419:~$ admin@i-090340fbfd6fc2419:~$