Skip to content

Commit c221787

Browse files
committed
Merge branch 'master' into bug/module-load-cache-update
2 parents 1a487e4 + e169cca commit c221787

File tree

108 files changed

+194
-6720
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

108 files changed

+194
-6720
lines changed

lib/msf/base/sessions/command_shell.rb.ut.rb

Lines changed: 0 additions & 10 deletions
This file was deleted.

lib/msf/base/simple/auxiliary.rb

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,39 @@ def run_simple(opts = {}, &block)
9292
Msf::Simple::Auxiliary.run_simple(self, opts, &block)
9393
end
9494

95+
#
96+
# Initiates a check, setting up the exploit to be used. The following
97+
# options can be specified:
98+
#
99+
# LocalInput
100+
#
101+
# The local input handle that data can be read in from.
102+
#
103+
# LocalOutput
104+
#
105+
# The local output through which data can be displayed.
106+
#
107+
def self.check_simple(mod, opts)
108+
if opts['LocalInput']
109+
mod.init_ui(opts['LocalInput'], opts['LocalOutput'])
110+
end
111+
112+
# Validate the option container state so that options will
113+
# be normalized
114+
mod.validate
115+
116+
# Run check
117+
mod.check
118+
end
119+
120+
#
121+
# Calls the class method.
122+
#
123+
def check_simple(opts)
124+
Msf::Simple::Auxiliary.check_simple(self, opts)
125+
end
126+
127+
95128
protected
96129

97130
#

lib/msf/core/exceptions.rb.ut.rb

Lines changed: 0 additions & 41 deletions
This file was deleted.

lib/msf/core/exploit.rb

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -415,16 +415,6 @@ def initialize(info = {})
415415
#
416416
##
417417

418-
#
419-
# Checks to see if the target is vulnerable, returning unsupported if it's
420-
# not supported.
421-
#
422-
# This method is designed to be overriden by exploit modules.
423-
#
424-
def check
425-
CheckCode::Unsupported
426-
end
427-
428418
#
429419
# Kicks off the actual exploit. Prior to this call, the framework will
430420
# have validated the data store using the options associated with this

lib/msf/core/exploit.rb.ut.rb

Lines changed: 0 additions & 38 deletions
This file was deleted.

lib/msf/core/exploit/dcerpc.rb.ut.rb

Lines changed: 0 additions & 28 deletions
This file was deleted.

lib/msf/core/exploit/seh.rb.ut.rb

Lines changed: 0 additions & 29 deletions
This file was deleted.

lib/msf/core/exploit/tcp.rb.ut.rb

Lines changed: 0 additions & 26 deletions
This file was deleted.

lib/msf/core/handler/bind_tcp.rb.ut.rb

Lines changed: 0 additions & 53 deletions
This file was deleted.

lib/msf/core/handler/reverse_tcp.rb.ut.rb

Lines changed: 0 additions & 64 deletions
This file was deleted.

0 commit comments

Comments
 (0)