Just another Perl shrine | |
PerlMonks |
Accessing proc/memoryby Anonymous Monk |
on Jul 31, 2006 at 21:45 UTC ( [id://564878]=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question: Hey folks, I want to cheat in Linux, that is changing the memory of programs at runtime. Kcheat doesn't build anymore, and I didn't find anything comparable, so I thought of throwing together my own little tool. I learnt that in order to access /proc/PID/mem, I have to attach first with ptrace. But I'm stumped already at the very beginning. I run the following program under sudo:
This bombs out with "Input/output error at ptrace.pl line 12.". I don't understand why.
Back to
Seekers of Perl Wisdom
|
|