Sha256: 1f64307fc18cb5ae6f0ee278368e47636603e288ecd863eb5730fc408cdd093c
Contents?: true
Size: 491 Bytes
Versions: 2
Compression:
Stored size: 491 Bytes
Contents
#!/usr/bin/env ruby # -*- coding: binary -*- $:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..')) require 'rex/test' require 'rex/proto/smb/utils' class Rex::Proto::SMB::Utils::UnitTest < Test::Unit::TestCase Klass = Rex::Proto::SMB::Utils def test_nbname nbdecoded = 'METASPLOITROCKS!' nbencoded = 'ENEFFEEBFDFAEMEPEJFEFCEPEDELFDCB' assert_equal(Klass.nbname_encode(nbdecoded), nbencoded ) assert_equal(Klass.nbname_decode(nbencoded), nbdecoded ) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
librex-0.0.68 | lib/rex/proto/smb/utils.rb.ut.rb |
librex-0.0.66 | lib/rex/proto/smb/utils.rb.ut.rb |