Sha256: f85afd190d8f959c5ef972ee619aa560c21be46fa41cc34375fddb31f8be3399

Contents?: true

Size: 261 Bytes

Versions: 8

Compression:

Stored size: 261 Bytes

Contents

require "ragweed"
include Ragweed

dbg = Debugger.find_by_regex /notepad/i
raise "notepad not running" if dbg.nil?

dbg.hook('kernel32!CreateFileW', 7) {|e,c,d,a| puts "#{d} CreateFileW for #{dbg.process.read(a[0],512).from_utf16_buffer}"}
dbg.loop
dbg.release

Version data entries

8 entries across 8 versions & 3 rubygems

Version Path
iZsh-ragweed-0.1.8 examples/hook_notepad.rb
tduehr-ragweed-0.1.5 examples/hook_notepad.rb
tduehr-ragweed-0.1.6 examples/hook_notepad.rb
tduehr-ragweed-0.1.7.1 examples/hook_notepad.rb
tduehr-ragweed-0.1.7.2 examples/hook_notepad.rb
tduehr-ragweed-0.1.7 examples/hook_notepad.rb
ragweed-0.1.7.3 examples/hook_notepad.rb
ragweed-0.1.7.2 examples/hook_notepad.rb