diff --git a/lib/rex/proto/smb/client.rb.ut.rb b/lib/rex/proto/smb/client.rb.ut.rb index bfa0f86228..34c7ff4bab 100644 --- a/lib/rex/proto/smb/client.rb.ut.rb +++ b/lib/rex/proto/smb/client.rb.ut.rb @@ -22,8 +22,6 @@ class Rex::Proto::SMB::Client::UnitTest < Test::Unit::TestCase def test_smb_open_share - user = 'SMBTest' - pass = 'SMBTest' share = 'C$' write_data = ('A' * 256) @@ -52,7 +50,7 @@ class Rex::Proto::SMB::Client::UnitTest < Test::Unit::TestCase assert_kind_of(Rex::Struct2::CStruct, ok) # puts "[*] Authenticating with NTLMv2..." - ok = c.session_setup_ntlmv2(user, pass) + ok = c.session_setup_ntlmv2($_REX_TEXT_SMB_USER, $_REX_TEXT_SMB_PASS) assert_kind_of(Rex::Struct2::CStruct, ok) assert_not_equal(c.auth_user_id, 0) @@ -124,7 +122,7 @@ class Rex::Proto::SMB::Client::UnitTest < Test::Unit::TestCase assert_kind_of(Rex::Struct2::CStruct, ok) # puts "[*] Authenticating with NTLMv2..." - ok = c.session_setup_ntlmv2(user, pass) + ok = c.session_setup_ntlmv2($_REX_TEXT_SMB_USER, $_REX_TEXT_SMB_PASS) assert_kind_of(Rex::Struct2::CStruct, ok) assert_not_equal(c.auth_user_id, 0)