Methods

Class/Module Index [+]

Quicksearch

Rex::Proto::TFTP

Public Class Methods

get_string(data) click to toggle source

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.