kihei/i-06073fc493f2f2874
by SadServersMore by SadServers
< Server: Werkzeug/2.3.7 Python/3.9.2 < Date: Wed, 28 Feb 2024 20:58:43 GMT < Content-Type: text/html; charset=utf-8 < Content-Length: 207 < Connection: close < <!doctype html> <html lang=en> <title>404 Not Found</title> <h1>Not Found</h1> <p>The requested URL was not found on the server. If you entered the URL manualllling and try again.</p> * Closing connection 0 admin@i-045e1170ba04ed4e1:~$ vi mysolution admin@i-045e1170ba04ed4e1:~$ curl localhost:5000/index. -v
paris/i-045e1170ba04ed4e1 05:40
by SadServersadmin 695 0.1 3.0 24456 14368 pts/0 R<+ 20:14 0:00 /usr/bin/pythadmin 696 0.0 0.1 2480 508 pts/1 S<s 20:14 0:00 sh -c /bin/baadmin 697 0.1 0.9 6820 4564 pts/1 S< 20:14 0:00 /bin/bash admin 705 0.0 0.6 8648 3220 pts/1 R<+ 20:14 0:00 ps aux admin@i-06d8a1ea39f24c764:~$ netstat -nltp (Not all processes could be identified, non-owned process info will not be shown, you would have to be root to see it all.) Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN tcp 0 0 127.0.0.1:5000 0.0.0.0:* LISTEN tcp6 0 0 :::6767 :::* LISTEN tcp6 0 0 :::8080 :::* LISTEN tcp6 0 0 :::22 :::* LISTEN admin@i-06d8a1ea39f24c764:~$
paris/i-06d8a1ea39f24c764 00:37
by SadServers-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-049d7de41c1f65c5b:~$ python webserver.py bash: python: command not found admin@i-049d7de41c1f65c5b:~$ python3 webserver.py python3: can't open file '/home/admin/webserver.py': [Errno 13] Permission denieadmin@i-049d7de41c1f65c5b:~$ systemctl status | grep nginx └─838 grep nginx admin@i-049d7de41c1f65c5b:~$ ls agent webserver.py admin@i-049d7de41c1f65c5b:~$ ls agent check.sh sadagent sadagent.txt admin@i-049d7de41c1f65c5b:~$ curl localhost:50000