admin@i-04a84196af5c95871:~$ ls agent index.html mysolution webserver.py admin@i-04a84196af5c95871:~$ python3 webserver.py python3: can't open file '/home/admin/webserver.py': [Errno 13] Permission denied admin@i-04a84196af5c95871:~$ python3 webserver.py ^C admin@i-04a84196af5c95871:~$ ./we bash: ./we: No such file or directory admin@i-04a84196af5c95871:~$ ./web^C admin@i-04a84196af5c95871:~$ sudo python3 webserver.py 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-04a84196af5c95871:~$ ^C admin@i-04a84196af5c95871:~$ ^C admin@i-04a84196af5c95871:~$ ^C admin@i-04a84196af5c95871:~$ ^C admin@i-04a84196af5c95871:~$ Unauthorized^C admin@i-04a84196af5c95871:~$ sudo python3 webserver.py 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: Sorry, try again. [sudo] password for admin: sudo: 1 incorrect password attempt admin@i-04a84196af5c95871:~$ ^C admin@i-04a84196af5c95871:~$ ^C admin@i-04a84196af5c95871:~$ ls agent index.html mysolution webserver.py admin@i-04a84196af5c95871:~$ su root Password: su: Authentication failure admin@i-04a84196af5c95871:~$ su root Password: su: Authentication failure admin@i-04a84196af5c95871:~$ ls agent index.html mysolution webserver.py admin@i-04a84196af5c95871:~$ cat /var/ww
paris/i-04a84196af5c95871
by SadServersMore by SadServers
chmod: changing permissions of './webserver.py': Operation not permitted admin@i-0fe5db61e982e9777:~$ chmod -R 755 . chmod: changing permissions of './webserver.py': Operation not permitted admin@i-0fe5db61e982e9777:~$ grep -ri 'password' | /etc/apache2/* bash: /etc/apache2/conf-available: Is a directory grep: agent/sadagent: binary file matches grep: webserver.py: Permission denied admin@i-0fe5db61e982e9777:~$ grep -ri 'password' | /etc/apache2/conf-available bash: /etc/apache2/conf-available: Is a directory grep: agent/sadagent: binary file matches grep: webserver.py: Permission denied grep: write error: Broken pipe admin@i-0fe5db61e982e9777:~$ admin@i-0fe5db61e982e9777:~$ grep -ri 'password' /etc/apache2/conf-available admin@i-0fe5db61e982e9777:~$
paris/i-0fe5db61e982e9777 04:33
by SadServersioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0 ioctl(1, TIOCGWINSZ, {ws_row=74, ws_col=126, ws_xpixel=0, ws_ypixel=0}) = 0 openat(AT_FDCWD, ".", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 fstat(3, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 getdents64(3, 0x56467d9f3f60 /* 14 entries */, 32768) = 416 getdents64(3, 0x56467d9f3f60 /* 0 entries */, 32768) = 0 close(3) = 0 fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(0x88, 0x1), ...}) = 0 write(1, "agent data datafile kihei ne"..., 41agent data datafile kihei ) = 41 close(1) = 0 close(2) = 0 exit_group(0) = ? +++ exited with 0 +++ admin@i-013bda2fac98d365e:~$