[framework-hackers] getting sniffing callbacks working from scruby

Sylvain SARMEJEANNE sylvain.sarmejeanne.ml at gmail.com
Wed Apr 9 15:31:05 CDT 2008


Robin Wood a écrit :
> I'm now trying to get the second example work and I'm stuck with the
> namespace for the callback function. I've tried everything I can, is
> there any example code out there for the HDM Mangled scruby?

This seems to work:

#! /usr/bin/env ruby
require 'scruby'
module Scruby
def callback(pcap, packet)
   puts "yeah!"
end
end
scruby = ScrubyBasic.new
scruby.sniff(:prn=>:callback)


-- 
Sylvain SARMEJEANNE


More information about the Framework-Hackers mailing list