[Tutor] Network Sniffing on Windows with Python 3.6

George Fischhof george at fischhof.hu
Fri Apr 7 03:51:11 EDT 2017


2017-04-07 7:07 GMT+02:00 Some Developer <someukdeveloper at gmail.com>:

> 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 :).
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> https://mail.python.org/mailman/listinfo/tutor
>



Hi,

some days ago I started to investigate similar problem (check traffic) and
I found the following libraries (maybe it helps You):

https://pypi.python.org/pypi/pyshark_parser/0.1

https://pypi.python.org/pypi/pyshark/0.3.6.2

https://www.wireshark.org/docs/man-pages/tshark.html

BR,
George


More information about the Tutor mailing list