command-line-murders/i-031848f3b2ebc9d01
by SadServersMore by SadServers
return super().server_bind() File "/usr/lib/python3.9/http/server.py", line 138, in server_bind socketserver.TCPServer.server_bind(self) File "/usr/lib/python3.9/socketserver.py", line 466, in server_bind self.socket.bind(self.server_address) OSError: [Errno 98] Address already in use admin@i-05c1936b123b31b0a:~$ python3 -m http.server 8086 Serving HTTP on 0.0.0.0 port 8086 (http://0.0.0.0:8086/) ... ^C Keyboard interrupt received, exiting. admin@i-05c1936b123b31b0a:~$ ^C admin@i-05c1936b123b31b0a:~$ python3 -m http.server 8086 & [1] 733 admin@i-05c1936b123b31b0a:~$ Serving HTTP on 0.0.0.0 port 8086 (http://0.0.0.0:8
paris/i-05c1936b123b31b0a 00:59
by SadServersResolving localhost (localhost)... 127.0.0.1 Connecting to localhost (localhost)|127.0.0.1|:5000... connected. HTTP request sent, awaiting response... 200 OK Length: 12 [text/html] Saving to: ‘index.html’ index.html 0%[ index.html 100%[=========================================>] 12 --.-KB/s in 0s 2023-12-11 10:29:33 (119 KB/s) - ‘index.html’ saved [12/12] admin@i-031023b9f4d69a6e7:~$ cat index.html Unauthorizedadmin@i-031023b9f4d69a6e7:~$ ls^C admin@i-031023b9f4d69a6e7:~$ curl -I
paris/i-031023b9f4d69a6e7 03:46
by SadServersif [[ "$actual_checksum" == "$expected_checksum" ]]; then echo -n "OK" else echo -n "NO" fiadmin@i-03f906c9d0e560363:~/agentcat /etc/systemd/system/flaskapp.servicepy [Unit] Description=Flask Application After=network.target [Service] ExecStart=/usr/bin/python3 /home/admin/webserver.py [Install] WantedBy=multi-user.target admin@i-03f906c9d0e560363:~/agent$ journalctl -u f