in tools/warmcookie/warmcookie_http.py [0:0]
def new_handler_7_parameter(file_content: bytes):
class Handler7(ctypes.Structure):
_pack_ = 1
_fields_ = [
("field_0", ctypes.c_uint32),
("field_4", ctypes.c_uint32),
("field8", ctypes.c_uint32),
("offset", ctypes.c_uint32),
("file_content_size", ctypes.c_uint32),
("file_content", ctypes.c_ubyte * len(file_content)),
]
file_content_array = (ctypes.c_ubyte * len(file_content))(*file_content)
return Handler7(
0xDEADBEEF,
0xDEADBEEF,
0xDEADBEEF,
0x20,
len(file_content),
file_content_array,
)