nopasaran.utils.send_https_sni_request¶
- nopasaran.utils.send_https_sni_request(ip, port, request_packet, sni=None)¶
Send an HTTPS request with optional SNI and return the full response.
- Args:
ip (str): The IP address to connect to. port (int): The port (usually 443). request_packet (bytes): The raw HTTP/1.1 request packet. sni (str): The server name to use in SNI. Defaults to ip if not provided.
- Returns:
bytes or None: The raw HTTP response, or None if an error occurs.