nopasaran.primitives.action_primitives.https_1_request_primitives.HTTPS1RequestPrimitives

class nopasaran.primitives.action_primitives.https_1_request_primitives.HTTPS1RequestPrimitives

Bases: object

Class containing HTTPS/1.1 action primitives for the state machine.

__init__()

Methods

__init__()

make_https_1_sni_request(inputs, outputs, ...)

Make an HTTPS/1.1 request using the request packet and optional SNI.

static make_https_1_sni_request(inputs, outputs, state_machine)

Make an HTTPS/1.1 request using the request packet and optional SNI.

Number of input arguments: 4
  • The request packet

  • The IP address to connect to

  • The port to connect to

  • The SNI (Server Name Indication);

Number of output arguments: 1
  • The HTTPS response

Args:
inputs (List[str]): The list of input variable names. It contains four mandatory input arguments:
  • The name of the variable containing the request packet.

  • The name of the variable containing the IP address or hostname.

  • The name of the variable containing the port number.

  • The name of the variable containing the SNI string.

outputs (List[str]): The list of output variable names. It contains one mandatory output argument,

which is the name of the variable to store the HTTPS response.

state_machine: The state machine object.

Returns:

None