sockstress is a collection of TCP socket stress methods that attempt to deplete limited kernel resources. After installation, the source code is placed in /usr/src/sockstress-0.0.1 You can modify payloads there.