Reverse engineering of client and server

By analyzing the packet caught in Wireshark, reverse engineer for
client. Server is extra credit.