How to write a Perl, Python, or Ruby program to change the memory of another process on Windows?

后端 未结 6 1880
终归单人心
终归单人心 2020-12-30 12:20

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 c

6条回答
  •  借酒劲吻你
    2020-12-30 13:11

    I wrote Proc::Memory and its underlying library libvas for this purpose. It just calls {Read,Write}ProcessMemory under the hood on Windows, but it also supports other platforms. Example:

    my $mem = Proc::Memory->new(pid => $$); 
    $mem->poke(0x12345678, 'L') = 12;
    

提交回复
热议问题