Skip to content

About

Basic opcode scanner for win pe's

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

🕵️‍♂️ opcode-scanner

A simple, universal opcode pattern scanner for Windows processes (PEs). Easily search for specific opcode byte patterns in the memory of running processes.


✨ Features

  • 🔍 Scan any running Windows process for custom opcode patterns
  • 🧩 Supports searching by process name or PID
  • 🛡️ Optionally check for a preceding byte pattern
  • 📦 Module-aware: shows module name and offset for each match
  • 🐍 Written in pure Python, leverages ctypes and psutil
  • 🔍 Use in combination with x64dbg, Cheat Engine etc. to reliably find dynamic Offsets

🚀 Getting Started

Prerequisites

  • Windows OS
  • Python 3.7+
  • psutil

Install dependencies:

pip install psutil

Usage

python opcode-scanner.py -n <process_name> -o "<opcode_pattern>"

or

python opcode-scanner.py -p <pid> -o "<opcode_pattern>"

Arguments

  • -n, --name : Target process name (e.g. notepad.exe)
  • -p, --pid : Target process PID
  • -o, --opcode : Opcode pattern to search for (hex, e.g. "F3 0F 11 0C 98")
  • -b, --before : (Optional) Preceding pattern to check (hex, e.g. "F3 0F 58 C8")

Example

python opcode-scanner.py -n notepad.exe -o "F3 0F 11 0C 98"

📋 Output

  • Lists all found addresses with module name and offset
  • Marks matches with preceding pattern

⚠️ Disclaimer

  • Requires appropriate permissions to read process memory.

💡 Inspiration

Created for quick and easy opcode pattern scanning on Windows.


Enjoy scanning! 🚦

About

Basic opcode scanner for win pe's

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages