User Tools

Site Tools


Mario Kart Disassembly

In this lab you learn how code and data are represented in memory and how to make low-level changes to a program in an assembly language. You will create modifications (mods) to a game.

Mount your home directory

Use the following commands to connect to your remote home directory:

  • mkdir tardis-home/
  • sshfs <yournethzlogin> tardis-home/

Store all your files during this lab in a folder below tardis-home, so it is stored remotely in case your machine crashes.


  • 1) Execute the program bomb. It tells your to find a correct input to defuse its 'bomb'. Find the correct input by disassembling the program or looking at the HEX-representation.
  • 2) When you run this program (TuxRaR), a pop-up will appear that asks you to pay for a license. Disable this pop-up (or postpone it for a long time).
  • 3) Now, you are ready to hack into SuperTuxKart! The game is installed on your machines. Show us your abilities by modifying the game in cool ways. For instance, make your kart faster, get better items, etc. Before you start modifying the binary, we recommend you to save a backup copy of it so when you break the game, you always have a clean copy. If you prefer, you can also modify a different game.
    Hint: Have a look at the --demangle option of objdump.
  • Text editor: Geany
  • Hex editors: wxHexEditor, ghex
  • Disassembler: objdump
  • Web assembler/disassembler: (Attention: Uses Intel syntax, which has arguments in different order than objdump.)

Hints for SuperTuxKart Modding

  • Some items and events slow karts down, that is, their maximum speed is reduced. Disable the function which sets this slowdown.
  • Karts' maximum speed can be increased by some events. Prevent the maximum speed from being reset to its original value.
  • Karts are slowed down when being off the track.
  • Infinite nitro: When nitro is burned, the nitro reservers shrink…
labs/disassembly.txt · Last modified: 2020/08/31 21:03 (external edit)