command-line-murders/i-0bc9862c11a180cee
by SadServersMore by SadServers
example: knock myserver.example.com 123:tcp 456:udp 789:tcp admin@i-080ac908debd2d3d7:~$ knock -v 127.0.0.1 80:tcp 1 hitting tcp 127.0.0.1:80 hitting tcp 127.0.0.1:1 admin@i-080ac908debd2d3d7:~$ knock -v 127.0.0.1 80:tcp hitting tcp 127.0.0.1:80 admin@i-080ac908debd2d3d7:~$ curl -D - -v localhost * Trying 127.0.0.1:80... * connect to 127.0.0.1 port 80 failed: Connection refused * Failed to connect to localhost port 80: Connection refused * Closing connection 0 curl: (7) Failed to connect to localhost port 80: Connection refused admin@i-080ac908debd2d3d7:~$ nc -vv 12
taipei/i-080ac908debd2d3d7 08:29
by SadServersadmin adm dialout cdrom floppy sudo audio dip video plugdev netdev admin@i-0ac9ef3cd50b10b68:~$ cat webserver.py cat: webserver.py: Permission denied admin@i-0ac9ef3cd50b10b68:~$ < webserver > archivo bash: webserver: No such file or directory admin@i-0ac9ef3cd50b10b68:~$ echo < webserver > archivo bash: webserver: No such file or directory admin@i-0ac9ef3cd50b10b68:~$ echo < webserver.py > archivo bash: webserver.py: Permission denied admin@i-0ac9ef3cd50b10b68:~$ passwd Changing password for admin. Current password: asd
paris/i-0ac9ef3cd50b10b68 04:15
by SadServersdrwxr-xr-x 6 admin admin 4096 Sep 24 23:20 . drwxr-xr-x 3 root root 4096 Sep 17 16:44 .. drwx------ 3 admin admin 4096 Sep 20 15:52 .ansible -rw------- 1 admin admin 485 Dec 29 21:06 .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 15:56 .config -rw-r--r-- 1 admin admin 807 Aug 4 2021 .profile drwx------ 2 admin admin 4096 Sep 17 16:44 .ssh drwxr-xr-x 2 admin root 4096 Sep 24 23:20 agent -rwxrwx--- 1 root root 360 Sep 24 23:20 webserver.py admin@i-06d586ef8810553b9:~$ cat webserver.py cat: webserver.py: Permission denied (failed reverse-i-search)`curl': ^Ct webserver.py admin@i-06d586ef8810553b9:~$ curl localhost:
paris/i-06d586ef8810553b9 02:52
by SadServersadmin@i-06e417f4b5d603c82:~$ ls -l total 8 drwxr-xr-x 2 admin root 4096 Sep 24 23:20 agent -rwxrwx--- 1 root root 360 Sep 24 23:20 webserver.py admin@i-06e417f4b5d603c82:~$ chown admin webserver.py chown: changing ownership of 'webserver.py': Operation not permitted admin@i-06e417f4b5d603c82:~$ chmod 777 webserver.py chmod: changing permissions of 'webserver.py': Operation not permitted admin@i-06e417f4b5d603c82:~$ nc localhost 5000 GET / Welcome! Password is FDZPmh5AX3oiJt admin@i-06e417f4b5d603c82:~$ admin@i-06e417f4b5d603c82:~$ admin@i-06e417f4b5d603c82:~$ curl