Professional Documents
Culture Documents
Purpose
Installing Python
Getting Ollydbg
Getting Minesweeper
14. Select Window, Dump. Notice that the memory near line 01005340 now
contains data.
15. Click a cell in Minesweeper. Look at the Dump again. There should be
changes in comparison to the one from before.
16. If we can read the RAM, we can cheat the game.
Getting Procdump
24. If you do not have HxD already installed, go to link to download and install
it.
25. Open HxD. Select File, Open. Navigate to the location you saved the dump
from step 23. Open mine.dmp.
26. In HxD, select Search, Find. Switch to the Hex-values tab. Search for the
following hex values:
0a 00 00 00 09 00 00 00 09 00 00 00 00 00 00 00 10 10 10 10
27. After this sequence, we can find the gameboard data.
Creating a Python script for Beginner level
import os
# Dump memory
cmd = "del mine.dmp"
os.system(cmd)
cmd = "procdump -ma minesam.exe mine"
os.system(cmd)
# Find gameboard
mark ='\x0A\x00\x00\x00\x09\x00\x00\x00\x09\x00\x00\x00\x00\x00\x00\
x00\x10\x10\x10\x10'
nread = 20
boardfound = 0
gameboard = []
# Print Gameboard
l = len(gameboard)
m = 32 # items per line
Bonus:
43. Submit the images you save in the steps Saving a Screen Image
to: cms with a subject line of Lab-Proj10-YOURNAME, replacing
YOURNAME with your real name.