Skip to content

Commit 45e6dae

Browse files
Use the correct UUID when using EsfRPC with lsarpc namedpipe
1 parent d8e9093 commit 45e6dae

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

modules/auxiliary/scanner/dcerpc/petitpotam.rb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@
99
require 'ruby_smb/dcerpc/lsarpc'
1010
require 'ruby_smb/dcerpc/efsrpc'
1111

12+
module RubySMB::Dcerpc::EfsrpcOverLsarpc
13+
include RubySMB::Dcerpc::Efsrpc
14+
15+
UUID = RubySMB::Dcerpc::Efsrpc::LSARPC_UUID
16+
end
17+
1218
class MetasploitModule < Msf::Auxiliary
1319
include Msf::Exploit::Remote::DCERPC
1420
include Msf::Exploit::Remote::SMB::Client::Authenticated
@@ -20,7 +26,7 @@ class MetasploitModule < Msf::Auxiliary
2026
# Efsrpc and it's normal UUID
2127
PIPE_HANDLES = {
2228
lsarpc: {
23-
endpoint: RubySMB::Dcerpc::Lsarpc,
29+
endpoint: RubySMB::Dcerpc::EfsrpcOverLsarpc,
2430
filename: 'lsarpc'.freeze
2531
},
2632
efsrpc: {

0 commit comments

Comments
 (0)