Are there any software libraries and/or wireless drivers that make it possible to turn a sequence of binary data into a wireless packet in the air? For example, if someone used Airpcap/Wireshark to capture a series of interesting packets, is there some library that can be fed that binary data in order to turn it back into wireless packets for testing purposes? If so, can we then also make minor alterations to the values of the packet in order to generate a wide variety of testing scenarios? Is anyone aware of tools/libraries that enable or assist this scenario?
NOTE: Cross-posting this to StackOverflow and IT-Security, as I am honestly not sure which of these it belongs in.