Skip to content

Commit 638ad36

Browse files
smcintyre-r7sjanusz-r7
authored andcommitted
Fixed names that were missed while refactoring
1 parent 34ab7d9 commit 638ad36

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lib/msf/core/exploit/remote/ms_lsad.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ module Exploit::Remote::MsLsad
1010

1111
include Msf::Exploit::Remote::SMB::Client::Ipc
1212

13-
class MsLsarpcError < StandardError; end
14-
class MsLsarpcConnectionError < MsLsarpcError; end
15-
class MsLsarpcAuthenticationError < MsLsarpcError; end
16-
class MsLsarpcUnexpectedReplyError < MsLsarpcError; end
13+
class MsLsadError < StandardError; end
14+
class MsLsadConnectionError < MsLsadError; end
15+
class MsLsadAuthenticationError < MsLsadError; end
16+
class MsLsadUnexpectedReplyError < MsLsadError; end
1717

1818
LSA_UUID = '12345778-1234-abcd-ef00-0123456789ab'.freeze
1919
LSA_VERS = '0.0'.freeze
@@ -87,10 +87,10 @@ def disconnect_lsarpc
8787

8888
def connect_lsarpc(tree)
8989
begin
90-
vprint_status('Connecting to Local Security Authority Remote Protocol')
90+
vprint_status('Connecting to Local Security Authority (LSA) Remote Protocol')
9191
self.lsarpc_pipe = tree.open_file(filename: 'lsarpc', write: true, read: true)
9292

93-
raise MsLsarpcConnectionError.new('Could not open lsarpc pipe on remote SMB server.') unless lsarpc_pipe
93+
raise MsLsadConnectionError.new('Could not open lsarpc pipe on remote SMB server.') unless lsarpc_pipe
9494

9595
vprint_status('Binding to \\lsarpc...')
9696
self.lsarpc_pipe.bind(endpoint: LSARPC_ENDPOINT)
@@ -99,7 +99,7 @@ def connect_lsarpc(tree)
9999
self.lsarpc_pipe
100100
rescue RubySMB::Dcerpc::Error::FaultError => e
101101
elog(e.message, error: e)
102-
raise MsLsarpcUnexpectedReplyError, "Connection failed (DCERPC fault: #{e.status_name})"
102+
raise MsLsadUnexpectedReplyError, "Connection failed (DCERPC fault: #{e.status_name})"
103103
end
104104
end
105105

0 commit comments

Comments
 (0)