Skip to content

Commit

Permalink
Fixed names that were missed while refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
smcintyre-r7 committed May 16, 2024
1 parent d4778c2 commit 2c561b5
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/msf/core/exploit/remote/ms_lsad.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ module Exploit::Remote::MsLsad

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

class MsLsarpcError < StandardError; end
class MsLsarpcConnectionError < MsLsarpcError; end
class MsLsarpcAuthenticationError < MsLsarpcError; end
class MsLsarpcUnexpectedReplyError < MsLsarpcError; end
class MsLsadError < StandardError; end
class MsLsadConnectionError < MsLsadError; end
class MsLsadAuthenticationError < MsLsadError; end
class MsLsadUnexpectedReplyError < MsLsadError; end

LSA_UUID = '12345778-1234-abcd-ef00-0123456789ab'.freeze
LSA_VERS = '0.0'.freeze
Expand Down Expand Up @@ -87,10 +87,10 @@ def disconnect_lsarpc

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

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

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

Expand Down

0 comments on commit 2c561b5

Please sign in to comment.