Randomize the session id and sequence number when sending SYN, not after, and fix a bug where unrecognized commandline options would cause a segfault
Started adding commandline options to dnscat_server.rb
Fix a bug where packets longer than the maximum allowed length for the protocol tried to send due to the new 'packet_id' field; the maximum length is now calculated dynamically so that can't happen again.
Data in the pipeline after STDIN is closed is now sent to the server properly before the process ends
The exit routine is now far more consistent. As a bonus, fixed a bunch of memory leaks
Should now catch ctrl-c cleanly on Linux (unable to test on Windows, so I made a TODO note to test it)
Automatically generate random transaction ids
Clean up a bit of the exit-handling code
Started adding the ability to send data more quickly, but realized I need to do some work on the 'driver' code first