Sha256: c5bfbefe9bf43742374781b8bdc49cc3c0c7919b35589b020333fa9b53b1e9aa
Contents?: true
Size: 411 Bytes
Versions: 56
Compression:
Stored size: 411 Bytes
Contents
module Dap module Filter require 'digest/md5' class FilterDecodeSMBClient include BaseDecoder def decode(data) save = {} data.split(/\n/).each do |line| case line.strip when /^Domain=\[([^\]]+)\] OS=\[([^\]]+)\] Server=\[([^\]]+)\]/ save['smb_domain'] = $1 save['smb_native_os'] = $2 save['smb_native_lm'] = $3 end end save end end end end
Version data entries
56 entries across 56 versions & 1 rubygems