Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9030381
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T07:28:35+00:00 2026-06-16T07:28:35+00:00

Is there any good and easy-to-use module built in Python for editing memory? Or

  • 0

Is there any good and easy-to-use module built in Python for editing memory? Or is there any module like this at all?

What I’m looking for is a way to attach to a process and read from/write to it. Much like how Cheat Engine works. Here’s a example of how it works in C++.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T07:28:37+00:00Added an answer on June 16, 2026 at 7:28 am

    Took me a while to find a way of doing this but here’s what I came up with!

    from ctypes import *
    from ctypes.wintypes import *
    
    pid = 0 #the pid of the process, aquired earlier by hand
    
    address = 0x0000 #where to read from while in the memory
    
    OpenProcess = windll.kernel32.OpenProcess
    ReadProcessMemory = windll.kernel32.ReadProcessMemory
    CloseHandle = windll.kernel32.CloseHandle
    
    
    PROCESS_ALL_ACCESS = 0x1F0FFF
    
    datadummy = b'.'*200
    buffer = c_char_p(datadummy)
    bufferSize = len(buffer.value)
    bytesRead = c_ulong(0)
    
    processHandle = OpenProcess(PROCESS_ALL_ACCESS, False, int(PID))
    
    ReadProcessMemory(processHandle, address, buffer, bufferSize, byref(bytesRead))
    
    CloseHandle(processHandle)
    

    And to write to the memory I would just add WriteProcessMemory = windll.kernel32.WriteProcessMemory and then call it

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Are there any good, easy to use storyboarding tools to build rough animations before
Are there any good easy to use softwares to export Access Database files to
Are there any good and easy to use ruby task schedulers? I just need
Is there any good way of truncating text with plain HTML and CSS, so
Is there any good documentation on implementing new refactorings in Eclipse? Specifically, I'd like
Is there any good practice for this? I wish I could solve the problem
Is there any good tutorial or code snippet out there on how to use
Are there any good reasons to use .NET Framework 4 Client Profile instead of
Are there any built in, open source, or tutorials for creating a reusable easy
I want to find a easy-to-use OCR python module in linux, I have found

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.