Little util function
# File lib/rex/proto/tftp/server.rb, line 12 def self.get_string(data) idx = data.index("\x00") return nil if not idx ret = data.slice!(0, idx) # Slice off the nul byte. data.slice!(0,1) ret end
[Validate]
Generated with the Darkfish Rdoc Generator 2.