Sha256: 8d883c2510ad71e589bd55193721df3895f74de77c81f143beb549651c6d6681
Contents?: true
Size: 667 Bytes
Versions: 2
Compression:
Stored size: 667 Bytes
Contents
#!/usr/bin/env ruby # -*- coding: binary -*- # $Id: image_source.rb 15548 2012-06-29 06:08:20Z rapid7 $ module Rex module ImageSource class ImageSource # # Um, just some abstract class stuff I guess, this is the interface # that any image sources should subscribe to... # def subsource(offset, len) raise "do something" end def size raise "do something" end def file_offset raise "do something" end def close raise "do something" end def read_asciiz(offset) # FIXME, make me better string = '' loop do char = read(offset, 1) break if char == "\x00" offset += 1 string << char end return string end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
librex-0.0.68 | lib/rex/image_source/image_source.rb |
librex-0.0.66 | lib/rex/image_source/image_source.rb |