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

  • Home
  • SEARCH
  • 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 241685
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T20:46:27+00:00 2026-05-11T20:46:27+00:00

I wonder if Perl, Python, or Ruby can be used to write a program

  • 0

I wonder if Perl, Python, or Ruby can be used to write a program so that it will look for 0x12345678 in the memory of another process (probably the heap, for both data and code data) and then if it is found, change it to 0x00000000? It is something similar to Cheat Engine, which can do something like that on Windows.

  • 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-05-11T20:46:27+00:00Added an answer on May 11, 2026 at 8:46 pm

    I initially thought this was not possible but after seeing Brian’s comment, I searched CPAN and lo and behold, there is Win32::Process::Memory:

    C:\> ppm install Win32::Process::Info
    C:\> ppm install Win32::Process::Memory
    

    The module apparently uses the ReadProcessMemory function: Here is one of my attempts:

    #!/usr/bin/perl
    use strict; use warnings;
    
    use Win32;
    use Win32::Process;
    use Win32::Process::Memory;
    
    my $process;
    
    Win32::Process::Create(
        $process,
        'C:/opt/vim/vim72/gvim.exe',
        q{},
        0,
        NORMAL_PRIORITY_CLASS,
        q{.}
    ) or die ErrorReport();
    
    my $mem = Win32::Process::Memory->new({
        pid => $process->GetProcessID(),
        access => 'read/query',
    });
    
    $mem->search_sub( 'VIM', sub {
        print $mem->hexdump($_[0], 0x20), "\n";
    });
    
    sub ErrorReport{
        Win32::FormatMessage( Win32::GetLastError() );
    }
    
    END { $process->Kill(0) if $process }
    

    Output:

    C:\Temp> proc
    0052A580 : 56 49 4D 20 2D 20 56 69 20 49 4D 70 72 6F 76 65 : VIM - Vi IMprove
    0052A590 : 64 20 37 2E 32 20 28 32 30 30 38 20 41 75 67 20 : d 7.2 (2008 Aug
    
    0052A5F0 :       56 49 4D 52 55 4E 54 49 4D 45 3A 20 22 00 :   VIMRUNTIME: ".
    0052A600 : 20 20 66 61 6C 6C 2D 62 61 63 6B 20 66 6F 72 20 :   fall-back for
    0052A610 : 24 56                                           : $V
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 119k
  • Answers 119k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You don't need to use SQL. Just call Drupal's file_create_path('myfile.pdf')… May 11, 2026 at 11:45 pm
  • Editorial Team
    Editorial Team added an answer you can use the Response.StatusCode property to return a 404:… May 11, 2026 at 11:45 pm
  • Editorial Team
    Editorial Team added an answer This will copy "the first .rar" file found" (randomly selected,… May 11, 2026 at 11:45 pm

Related Questions

I use to use IDL and MatLab in college and now that I have
I'm familiar with the algorithm for reading a single random line from a file
I hope this question is not considered too basic for this forum, but we'll
wonder if you could help me out with some Javascript. I have a string

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.