Skip to content

Commit 886f031

Browse files
committed
Set @StaGeD for adapted payloads when necessary
1 parent 2d0cdc3 commit 886f031

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/msf/core/payload.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ def initialize(info = {})
5959
#
6060
self.module_info['Dependencies'] = self.module_info['Dependencies'] || []
6161

62-
# If this is a staged payload but there is no stage information,
62+
# If this is an adapted or staged payload but there is no stage information,
6363
# then this is actually a stager + single combination. Set up the
6464
# information hash accordingly.
65-
if self.class.include?(Msf::Payload::Single) and
65+
if (self.class.include?(Msf::Payload::Adapter) || self.class.include?(Msf::Payload::Single)) and
6666
self.class.include?(Msf::Payload::Stager)
6767
self.module_info['Stage'] = {}
6868

0 commit comments

Comments
 (0)