Skip to content

Commit

Permalink
Merge pull request #19833 from cdelafuente-r7/fix/mod/petitpotam
Browse files Browse the repository at this point in the history
Fix PetitPotam UUID when using EsfRPC with `lsarpc` named pipe
  • Loading branch information
smcintyre-r7 authored Jan 27, 2025
2 parents 589b906 + b3c2ae4 commit 936e0df
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion modules/auxiliary/scanner/dcerpc/petitpotam.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@
require 'ruby_smb/dcerpc/efsrpc'

class MetasploitModule < Msf::Auxiliary

module EfsrpcOverLsarpc
include RubySMB::Dcerpc::Efsrpc

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

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

0 comments on commit 936e0df

Please sign in to comment.