Skip to content

Commit b3c2ae4

Browse files
Move EfsrpcOverLsarpc module under the MetasploitModule class
1 parent 45e6dae commit b3c2ae4

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

modules/auxiliary/scanner/dcerpc/petitpotam.rb

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

12-
module RubySMB::Dcerpc::EfsrpcOverLsarpc
13-
include RubySMB::Dcerpc::Efsrpc
12+
class MetasploitModule < Msf::Auxiliary
1413

15-
UUID = RubySMB::Dcerpc::Efsrpc::LSARPC_UUID
16-
end
14+
module EfsrpcOverLsarpc
15+
include RubySMB::Dcerpc::Efsrpc
16+
17+
UUID = RubySMB::Dcerpc::Efsrpc::LSARPC_UUID
18+
end
1719

18-
class MetasploitModule < Msf::Auxiliary
1920
include Msf::Exploit::Remote::DCERPC
2021
include Msf::Exploit::Remote::SMB::Client::Authenticated
2122
include Msf::Auxiliary::Scanner
@@ -26,7 +27,7 @@ class MetasploitModule < Msf::Auxiliary
2627
# Efsrpc and it's normal UUID
2728
PIPE_HANDLES = {
2829
lsarpc: {
29-
endpoint: RubySMB::Dcerpc::EfsrpcOverLsarpc,
30+
endpoint: EfsrpcOverLsarpc,
3031
filename: 'lsarpc'.freeze
3132
},
3233
efsrpc: {

0 commit comments

Comments
 (0)