Skip to content

Commit 0d19b5d

Browse files
committed
Fix require order issue.
1 parent e56590e commit 0d19b5d

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

lib/msf/core/payload/bsd.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# -*- coding: binary -*-
22
require 'msf/core'
3+
require 'msf/core/payload/bsd/x86'
34

45
###
56
#

lib/msf/core/payload/bsd/x86.rb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44
###
55
# Contains common x86 BSD code
66
###
7-
module Msf::Payload::Bsd::X86
7+
module Msf::Payload::Bsd
8+
module X86
89

9-
def exec_payload
10+
def bsd_x86_exec_payload
1011
cmd_str = datastore['CMD'] || ''
1112
# Split the cmd string into arg chunks
1213
cmd_parts = Shellwords.shellsplit(cmd_str)
@@ -125,4 +126,5 @@ def handle_x86_bsd_opts(pre, app)
125126
end
126127
end
127128

128-
end
129+
end
130+
end

modules/payloads/singles/bsd/x86/exec.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66

77
require 'msf/core'
8-
require 'msf/core/payload/bsd/x86'
98

109

1110
###
@@ -21,7 +20,7 @@ module Metasploit3
2120
CachedSize = 16
2221

2322
include Msf::Payload::Single
24-
include Msf::Payload::Bsd::X86
23+
include Msf::Payload::Bsd
2524

2625
def initialize(info = {})
2726
super(merge_info(info,

modules/payloads/singles/osx/x86/exec.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66

77
require 'msf/core'
8-
require 'msf/core/payload/bsd/x86'
98

109
###
1110
#

0 commit comments

Comments
 (0)