Skip to content

Commit

Permalink
Move EfsrpcOverLsarpc module under the MetasploitModule class
Browse files Browse the repository at this point in the history
  • Loading branch information
cdelafuente-r7 committed Jan 27, 2025
1 parent 45e6dae commit b3c2ae4
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions modules/auxiliary/scanner/dcerpc/petitpotam.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@
require 'ruby_smb/dcerpc/lsarpc'
require 'ruby_smb/dcerpc/efsrpc'

module RubySMB::Dcerpc::EfsrpcOverLsarpc
include RubySMB::Dcerpc::Efsrpc
class MetasploitModule < Msf::Auxiliary

UUID = RubySMB::Dcerpc::Efsrpc::LSARPC_UUID
end
module EfsrpcOverLsarpc
include RubySMB::Dcerpc::Efsrpc

UUID = RubySMB::Dcerpc::Efsrpc::LSARPC_UUID
end

class MetasploitModule < Msf::Auxiliary
include Msf::Exploit::Remote::DCERPC
include Msf::Exploit::Remote::SMB::Client::Authenticated
include Msf::Auxiliary::Scanner
Expand All @@ -26,7 +27,7 @@ class MetasploitModule < Msf::Auxiliary
# Efsrpc and it's normal UUID
PIPE_HANDLES = {
lsarpc: {
endpoint: RubySMB::Dcerpc::EfsrpcOverLsarpc,
endpoint: EfsrpcOverLsarpc,
filename: 'lsarpc'.freeze
},
efsrpc: {
Expand Down

0 comments on commit b3c2ae4

Please sign in to comment.