Giter Site home page Giter Site logo

windowsmemoryscanner's Introduction

WindowsMemoryScanner

Basic python library for scanning and reading process memory in Windows.

Usage

from WindowsMemoryScanner import Process

# Open a process by name
process = Process.from_name("notepad.exe")

# Open a process by PID
process = Process.from_pid(1234)

# Find a pattern in the process memory
process.detect_memory_regions() # First, we need to detect the memory regions in the process

pattern = b"\x68\x65\x00\x00\x6f" # Byte pattern to search for
mask    = b"\xFF\xFF\x00\x00\xFF" # Optional mask for the pattern: 0x00 = ignore byte, other = match byte
offset  = 8 # Optional offset to add to the address
address = process.find_pattern(pattern, mask, offset)

# Find pattern is designed to be called multiple times, reading the memory only once. To force a re-read, clear the cache:
process.clear_cache()

# Read n bytes at the address
data = process.read_bytes(address, 8)

# Read primitive values at the address, refer to the struct module for format characters
a, b = process.read_values(address, 'ld')

windowsmemoryscanner's People

Contributors

just806me avatar

Stargazers

agtian avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.