For testing the error and timeout handling of a custom SIP stack, it is sometimes useful to send UDP packets from multiple source addresses (even ones that are assigned to other hosts) to the host running the SIP stack.
Nmap has the ability to spoof it's source address (
-S) and port (
-g), I now need to specify what data should be sent to the specified address and port as a UDP packet.
It seems possible to do using the Nmap Scripting Engine, but I haven't found out how to use it.
Is there a straight-forward way to do this using Nmap or another tool readily available on UNIX platforms?