Python - How to make a packet logger from a server?

0

Python - How to make a packet logger from a server?

Hello, I was wondering how do I create a packet logger in python that would have the following functionality:

  • Receiving information from the game server, Example : I clicked on a button it would have to return the package that the server sent to represent this action

What modules would I have to use so I could do this program?

Obs : If you do not understand what I meant by the post, comment what you did not understand so I could explain it better!

    
asked by anonymous 02.06.2018 / 19:46

1 answer

1

Your question is quite broad, so let's break it down. If you just want a logger, you can run the Python 2.7 / 3.X lib logging to capture these details and place them in a log file.

Are you already able to print and receive these network details? If so, you could only add logging by simple lines of code.

Here's the lib: link

    
02.06.2018 / 19:51