From e6a9f2609fd11bd6ccdc614a4a5e504a2e9d2131 Mon Sep 17 00:00:00 2001 From: Auxilus Date: Thu, 8 Mar 2018 23:01:58 +0530 Subject: [PATCH] include mixin to psexec_ms17_010 --- lib/msf/core/auxiliary/pipe_auditor.rb | 10 +++++----- lib/msf/core/exploit/smb/client/psexec_ms17_010.rb | 1 + 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/msf/core/auxiliary/pipe_auditor.rb b/lib/msf/core/auxiliary/pipe_auditor.rb index 63bb07d08f..82d16d468d 100644 --- a/lib/msf/core/auxiliary/pipe_auditor.rb +++ b/lib/msf/core/auxiliary/pipe_auditor.rb @@ -1,18 +1,18 @@ module Msf -module Auxiliary::PIPEAudit +module Auxiliary::PipeAudit include Msf::Exploit::Remote::SMB::Client include Msf::Exploit::Remote::SMB::Client::Authenticated include Msf::Auxiliary::Scanner def initialize(info = {}) super - register_options([ - OptString.new('RPORT', [true, 'The Target port', 445]) - ], Msf::Auxiliary::PIPEAudit) + #register_options([ + # OptString.new('RPORT', [true, 'The Target port', 445]) + # ], Msf::Auxiliary::PIPEAudit) end - def connect_to_pipe + def connect_to_pipe() accessible_pipes||=[] a_pipe_handles||=[] target_pipes = [ diff --git a/lib/msf/core/exploit/smb/client/psexec_ms17_010.rb b/lib/msf/core/exploit/smb/client/psexec_ms17_010.rb index 99974ffc08..b8a67d7797 100644 --- a/lib/msf/core/exploit/smb/client/psexec_ms17_010.rb +++ b/lib/msf/core/exploit/smb/client/psexec_ms17_010.rb @@ -3,6 +3,7 @@ module Msf module Exploit::Remote::SMB::Client::Psexec_MS17_010 include Msf::Exploit::Remote::SMB::Client::Psexec + include Msf::Auxiliary::PipeAudit include Msf::Exploit::Remote::Tcp def initialize(info = {})