Wiimms mkw-ana (tool)

From Custom Mario Kart
Jump to navigation Jump to search

The tools mkw-ana is a new project by Wiimm to analyze the network protocol of Mario Kart Wii.



In Progress
This article is managed by Wiimm will grow slowly. Feel free to edit typos and grammatical or speech issues.


Intention

In November 2012, Wiimm decided to analyze the network protocol of Mario Kart Wii. The main goal was to discover online cheaters. Another goal is to set up his own server if any time Nintendo will shut down its servers.

So the main feature is to dump the packets of a tcpdump (done by tcpdump' or wireshark) in a user-friendly format. But after first experiments, it becomes a live racing statistic tool.

The Tool

???

Download

I plan to create a distribution of my tool. It will be available for Linux and as Cygwin version in some weeks.

Live Statistics

mkw-ana can scan the network traffic in real time and can produce makedoc or php data files. Together with ssh and an cgi script, a live statistic is created. Live means that the tables are updates 2-5 seconds after the race have finished.

How it works

  • In my home I have manageable switches. I have programmed one port, to copy all data traffic from and to my Wii to the my local Linux server. The Wii will not notice this.
  • The Linux server runs the tool tcpdump. The tool is programmed to filter all Wii traffic and to send it tee. tee archives the data into a backup file and sends a copy to my tool. My tool analyze the data stream and create the tables.
  • A background process on my local Linux server waits for new data file. If a new data file is available, it is sent to my web server using ssh.
  • A CGI script running at my web server uses always the most current data file to serve the tables to the visitors.