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

Version Path
dap-1.3.1 lib/dap/filter/smbclient.rb
dap-1.3.0 lib/dap/filter/smbclient.rb
dap-1.2.9 lib/dap/filter/smbclient.rb
dap-1.2.8 lib/dap/filter/smbclient.rb
dap-1.2.7 lib/dap/filter/smbclient.rb
dap-1.2.6 lib/dap/filter/smbclient.rb
dap-1.2.5 lib/dap/filter/smbclient.rb
dap-1.2.4 lib/dap/filter/smbclient.rb
dap-1.2.3 lib/dap/filter/smbclient.rb
dap-1.2.2 lib/dap/filter/smbclient.rb
dap-1.2.1 lib/dap/filter/smbclient.rb
dap-1.2.0 lib/dap/filter/smbclient.rb
dap-1.0.2 lib/dap/filter/smbclient.rb
dap-1.0.1 lib/dap/filter/smbclient.rb
dap-1.0.0 lib/dap/filter/smbclient.rb
dap-0.1.24 lib/dap/filter/smbclient.rb
dap-0.1.23 lib/dap/filter/smbclient.rb
dap-0.1.22 lib/dap/filter/smbclient.rb
dap-0.1.21 lib/dap/filter/smbclient.rb
dap-0.1.20 lib/dap/filter/smbclient.rb