Sha256: fc850c26f452cbb938c010b366b8a22b491d603b8344b4168b073790cab52a8a
Contents?: true
Size: 465 Bytes
Versions: 43
Compression:
Stored size: 465 Bytes
Contents
#!/usr/bin/env ruby $:.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
43 entries across 43 versions & 1 rubygems