import socket
import os

TARGET = os.getenv("TARGET", "server")
PORT = int(os.getenv("PORT", 8080))


def malform():
    try:
        s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
        s.settimeout(2)
        s.connect((TARGET, PORT))
        s.send(b"G\x00E\x01T / \xff HTTP/1.1\r\nHost: \x00\r\n\r\n")
    except:  # noqa: E722
        pass


if __name__ == "__main__":
    malform()
