y1 linux root 593 0.0 0.4 4396 2168 ttyS0 Ss+ 14:23 0:00 /sbin/agetty -o -p -- \u --keep-baud 115200,57600,38400,9600 ttyS0 vt220 _chrony 595 0.0 0.7 10852 3592 ? S 14:23 0:00 /usr/sbin/chronyd -F 1 _chrony 596 0.0 0.1 10724 548 ? S 14:23 0:00 /usr/sbin/chronyd -F 1 root 602 0.0 3.7 26612 17436 ? Ss 14:23 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal root 679 0.0 0.0 0 0 ? I 14:23 0:00 [kworker/1:4-events] admin 682 0.0 0.9 6740 4496 pts/0 S<s+ 14:23 0:00 bash -l admin 686 0.1 4.1 98188 19240 pts/0 D<l+ 14:23 0:00 /usr/bin/python3 /usr/bin/asciinema rec -t paris/i-06c820ab5c704e842 -q -i 2 /var/log/cast/i-06c820ab5c704e842 admin 689 0.0 3.1 24456 14520 pts/0 S<+ 14:23 0:00 /usr/bin/python3 /usr/bin/asciinema rec -t paris/i-06c820ab5c704e842 -q -i 2 /var/log/cast/i-06c820ab5c704e842 admin 690 0.0 0.1 2480 576 pts/1 S<s 14:23 0:00 sh -c /bin/bash admin 691 0.0 1.0 6952 4804 pts/1 S< 14:23 0:00 /bin/bash admin 774 0.0 0.6 8648 3216 pts/1 R<+ 14:25 0:00 ps aux admin@i-06c820ab5c704e842:~$ ls -la total 44 drwxr-xr-x 6 admin admin 4096 Sep 24 2023 . drwxr-xr-x 3 root root 4096 Sep 17 2023 .. drwx------ 3 admin admin 4096 Sep 20 2023 .ansible -rw------- 1 admin admin 207 Nov 4 14:25 .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-r--r-- 1 admin admin 807 Aug 4 2021 .profile 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-06c820ab5c704e842:~$ less webserver.py webserver.py: Permission denied admin@i-06c820ab5c704e842:~$ cat webserver.py cat: webserver.py: Permission denied admin@i-06c820ab5c704e842:~$ strace /home/admin/webserver.py execve("/home/admin/webserver.py", ["/home/admin/webserver.py"], 0x7ffd151c1ec0 /* 16 vars */) = -1 EACCES (Permission denied) strace: exec: Permission denied +++ exited with 1 +++ admin@i-06c820ab5c704e842:~$ ctrace /home/admin/webserver.py bash: ctrace: command not found admin@i-06c820ab5c704e842:~$
paris/i-06c820ab5c704e842
by SadServersMore by SadServers
988 pts/1 R<+ 0:00 ps ax admin@i-0748faed17a21b9f5:~/agent$ ls check.sh sadagent sadagent.txt admin@i-0748faed17a21b9f5:~/agent$ cd .. admin@i-0748faed17a21b9f5:~$ ls agent webserver.py admin@i-0748faed17a21b9f5:~$ ls -l total 8 drwxr-xr-x 2 admin root 4096 Sep 24 2023 agent -rwxrwx--- 1 root root 360 Sep 24 2023 webserver.py admin@i-0748faed17a21b9f5:~$ cd /var/lib/ admin@i-0748faed17a21b9f5:/var/lib$ ls apt cloud dhcp grub man-db pam private sgml-base systemd uchrony dbus dpkg logrotate misc polkit-1 python sudo ucf vadmin@i-0748faed17a21b9f5:/var/lib$ cd
paris/i-0748faed17a21b9f5 04:08
by SadServersusage: sudo [-AbEHknPS] [-r role] [-t type] [-C num] [-D directory] [-g group] [ [<command>] usage: sudo -e [-AknS] [-r role] [-t type] [-C num] [-D directory] [-g group] [-admin@i-02474f300d2196640:~$ sudo su - 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: sudo: a password is required admin@i-02474f300d2196640:~$ curl localh