command-line-murders/i-055d0d0ee66a53de7
by SadServersMore by SadServers
admin@i-000c40fb3f665fed1:/etc/apache2/conf-available$ ls javascript-common.conf admin@i-000c40fb3f665fed1:/etc/apache2/conf-available$ cd admin@i-000c40fb3f665fed1:~$ curl -IL localhost:5000 HTTP/1.1 200 OK Server: Werkzeug/2.3.7 Python/3.9.2 Date: Mon, 09 Oct 2023 12:33:30 GMT Content-Type: text/html; charset=utf-8 Content-Length: 12 Connection: close admin@i-000c40fb3f665fed1:~$ ls agent webserver.py admin@i-000c40fb3f665fed1:~$ vi webserver.py admin@i-000c40fb3f665fed1:~$ ls
paris/i-000c40fb3f665fed1 03:47
by SadServersadmin@i-05a8a4c9958482074:~$ sudo vgs VG #PV #LV #SN Attr VSize VFree vg0 2 0 0 wz--n- 1.99g 1.99g admin@i-05a8a4c9958482074:~$ lvcreate -n pisse -L100%VG vg0 WARNING: Running as a non-root user. Functionality may be unavailable. Can't parse size argument. Invalid argument for --size: 100%VG Error during parsing of command line. admin@i-05a8a4c9958482074:~$ sudo lvcreate -n pisse -L100%VG vg0 Can't parse size argument. Invalid argument for --size: 100%VG Error during parsing of command line. admin@i-05a8a4c9958482074:~$ sudo lvcreate -n pisse -l100%VG vg0 Logical volume "pisse" created. admin@i-05a8a4c9958482074:~$ mkfs
kihei/i-05a8a4c9958482074 02:44
by SadServers[sudo] password for admin: Sorry, try again. [sudo] password for admin: sudo: 1 incorrect password attempt admin@i-0b5ae01707d129981:~$ ^Cdo cat webserver.py admin@i-0b5ae01707d129981:~$ ^C admin@i-0b5ae01707d129981:~$ ls -la webserver.py -rwxrwx--- 1 root root 360 Sep 24 23:20 webserver.py admin@i-0b5ae01707d129981:~$ ps aux | webserver bash: webserver: command not found admin@i-0b5ae01707d129981:~$ ps aux |grep webserver root 574 0.1 6.0 107132 28344 ? Ss 18:05 0:00 /usr/bin/pyth.py admin 804 0.0 0.1 5264 704 pts/1 S<+ 18:08 0:00 grep webserveadmin@i-0b5ae01707d129981:~$ systemctl st
paris/i-0b5ae01707d129981 03:24
by SadServersexample: 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