First version of ruby-memscan (my ruby memory scanning API) completed and pushed to github! Features heap, stack, bss and data dumping into arrays of ulong values and basic (long) search at the moment.
Sample usage is found inside test subdirectory:
make and run
ruby test.rb $(pidof test)
Here follows test.rb:
require 'memscan' require 'pp' m= Memscan.new pid= ARGV.to_i m.attach pid puts m.dump_stack.size puts m.dump_heap.size pp m.search_long 3735928559 pp m.search_long 3405691582
When run against test.c it will print at least two positive matches.