Upload files to "/"

This commit is contained in:
2025-12-22 15:13:52 +00:00
parent 6015ca963f
commit 0e53a7b269
264 changed files with 24582 additions and 3 deletions

18
conn.py Normal file
View File

@@ -0,0 +1,18 @@
import socket
from utils.logger import *
from config import *
class Conn:
def __init__(self):
log.info("Attempting to connect...")
self.connect()
def connect(self):
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as self.s:
ip, port = Config.serv_url.split(":")
self.s.connect((ip, int(port)))
self.s.sendall("cont".encode("utf-8"))
data = self.s.recv(1024)
log.warning(data.decode("utf-8"))