[Tutor] Network Sniffing on Windows with Python 3.6

Some Developer someukdeveloper at gmail.com
Fri Apr 7 01:07:06 EDT 2017


Hi,

This is more a query about where to look for information rather than 
asking for specific code.

There is a game that passes data over the network and I want to sniff 
the network protocol used by the game to pass data between the client 
and the server (before anyone asks no I am not cheating it is an MMO and 
I want to create a database site that holds information on all the items 
and quests in the game etc).

How would I go about writing a Python 3.6 script for Windows that would 
sniff the network traffic and take the individual packets and then 
reassemble them into something that is useful data? I've never done 
something like this before.

I was thinking of installing Wireshark to have a look at the network 
communications but I wasn't really sure what I would do with the data. 
Are there any library functions in Python 3.6 that would help with this 
task?

Basically I need to lock onto the games process and sniff any incomming 
or outgoing network traffic from that process. Is that possible?

Also does the Python script require admin permissions for this to work 
or can it run as a normal user? It doesn't matter if it does require 
admin permissions but it would be better for my users if it didn't 
require admin permissions.

I'm just looking for some help to push me in the right direction. If 
there are any books on the subject that would be even better as I like 
reading books on programming subjects.

Thanks for any help :).


More information about the Tutor mailing list