Link: https://github.com/cyberinferno/PacketDumper
For those who do not want to compile, binary can be downloaded from https://github.com/cyberinferno/PacketDumper/releases
Link: https://github.com/cyberinferno/PacketDumper
For those who do not want to compile, binary can be downloaded from https://github.com/cyberinferno/PacketDumper/releases
Looks simple and doing the job!
Small suggestion, you might want to use a stringstream there rather than your string and all the appends, then flush it before opening the file. Running much more efficient on performance there on the long run. Next level efficiency would be a buffer as you have a fixed size of MAX_PATH on the filename, but prolly overkill for this scenario.
Simple and clean. The way it should be, thanks and well done!