Skip to content

Commit bf2fb70

Browse files
committed
Fix session compatibility check for post modules
1 parent f556a5f commit bf2fb70

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/msf/core/post.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,13 @@ class Failed < RuntimeError
2929

3030
def setup
3131
m = replicant
32+
3233
if m.actions.length > 0 && !m.action
3334
raise Msf::MissingActionError, "Please use: #{m.actions.collect {|e| e.name} * ", "}"
3435
end
36+
37+
# PostMixin
38+
super
3539
end
3640

3741
def type

lib/msf/core/post_mixin.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ def setup
3939
print_warning('SESSION may not be compatible with this module.')
4040
end
4141

42-
super
43-
4442
check_for_session_readiness() if session.type == "meterpreter"
4543

4644
@session.init_ui(self.user_input, self.user_output)

0 commit comments

Comments
 (0)