Sha256: f32ffc2a93389c2bf55a9dc9bf9821b83f4a54b8e0114acf9dd956cc8478d5c3

Contents?: true

Size: 263 Bytes

Versions: 22

Compression:

Stored size: 263 Bytes

Contents

require "ragweed"
include Ragweed

dbg = Debugger32.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

22 entries across 22 versions & 1 rubygems

Version Path
ragweed-0.2.9 examples/hook_notepad.rb
ragweed-0.2.8 examples/hook_notepad.rb
ragweed-0.2.7 examples/hook_notepad.rb
ragweed-0.2.6-java examples/hook_notepad.rb
ragweed-0.2.6 examples/hook_notepad.rb
ragweed-0.2.5-java examples/hook_notepad.rb
ragweed-0.2.5 examples/hook_notepad.rb
ragweed-0.2.4-java examples/hook_notepad.rb
ragweed-0.2.4 examples/hook_notepad.rb
ragweed-0.2.3-java examples/hook_notepad.rb
ragweed-0.2.3 examples/hook_notepad.rb
ragweed-0.2.2 examples/hook_notepad.rb
ragweed-0.2.1-java examples/hook_notepad.rb
ragweed-0.2.1 examples/hook_notepad.rb
ragweed-0.2.0-java examples/hook_notepad.rb
ragweed-0.2.0 examples/hook_notepad.rb
ragweed-0.2.0.pre3-java examples/hook_notepad.rb
ragweed-0.2.0.pre3 examples/hook_notepad.rb
ragweed-0.2.0.pre2-java examples/hook_notepad.rb
ragweed-0.2.0.pre2 examples/hook_notepad.rb