minesweeper-cheat

💣 A game cheat for Microsoft Minesweeper. It will change the window title to "Mlnesweeper" if the current block has a mine.(微软扫雷游戏的作弊工具,如果当前方块有雷,窗口标题会被修改为“Mlnesweeper”。)

https://github.com/zhuagenborn/minesweeper-cheat

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (10.1%) to scientific vocabulary

Keywords

game game-cheating hook minesweeper reverse-engineering
Last synced: 6 months ago · JSON representation ·

Repository

💣 A game cheat for Microsoft Minesweeper. It will change the window title to "Mlnesweeper" if the current block has a mine.(微软扫雷游戏的作弊工具,如果当前方块有雷,窗口标题会被修改为“Mlnesweeper”。)

Basic Info
  • Host: GitHub
  • Owner: Zhuagenborn
  • License: mit
  • Language: Assembly
  • Default Branch: main
  • Homepage:
  • Size: 267 KB
Statistics
  • Stars: 8
  • Watchers: 2
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Topics
game game-cheating hook minesweeper reverse-engineering
Created over 4 years ago · Last pushed over 1 year ago
Metadata Files
Readme License Citation

README.md

Minesweeper Cheat

MASM Windows License

Introduction

Cover

A game cheat for Microsoft Minesweeper. It will change the window title to "Mlnesweeper" if the current block has a mine.

Getting Started

Prerequisites

  • Install MASM32.
  • Set the PATH environment variable.

Building

Run the build.ps1 file directly:

console PS> .\build.ps1

The cheat.dll will be generated in the bin folder.

Usage

The project has been only tested with the provided game version.

The MD5 of Minesweeper.exe is 9C45D38B74634C9DED60BEC640C5C3CA.

The cheat.dll must be injected into the game to activate its function. You can directly use this simple injection tool: Dll-Injector.

console Dll-Injector Minesweeper cheat.dll

The window title will become "Mlnesweeper" if the current block has a mine.

cheat

Reverse Engineering

Graphic

Microsoft Minesweeper uses the BitBlt function to draw its mine area.

loop-bitblt

0x01005334 and 0x01005338 are the addresses of the mine area's width and height. When the game executes at 0x01002700 for the first time, the mine area is empty.

empty-area

The stack is shown as below:

bitblt

According to the declaration of BitBlt, the pixel coordinate of the top-left corner of the mine area is (12, 55). And the side length of a block is 16.

c BOOL BitBlt(HDC hdc, int x, int y, int cx, int cy, HDC hdcSrc, int x1, int y1, DWORD rop);

Mine Data

At 0x01002669, the game reads mine data from 0x01005340.

read-mine-area

For the following mine area:

game-end

The data around 0x01005340 are organized as:

mine-data

It is clear that each 0x8A means a mine and 0xCC is the activated mine.

License

Distributed under the MIT License. See LICENSE for more information.

Owner

  • Name: Zhuagenborn
  • Login: Zhuagenborn
  • Kind: organization
  • Location: Ireland

Software Development | Artificial Intelligence | Reverse Engineering.

Citation (CITATION.cff)

cff-version: 1.2.0
authors:
- family-names: Chen
  given-names: Zhenshuo
  orcid: https://orcid.org/0000-0003-2091-4160
- family-names: Liu
  given-names: Guowen
  orcid: https://orcid.org/0000-0002-8375-5729
title: Minesweeper Cheat
date-released: 2022-01-17
url: https://github.com/Zhuagenborn/Minesweeper-Cheat

GitHub Events

Total
  • Watch event: 1
Last Year
  • Watch event: 1

Issues and Pull Requests

Last synced: 8 months ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels