Skip to content

Commit e9f4900

Browse files
committed
Merge branch 'fixgenericcustom' of github.com:rsmudge/metasploit-framework into rsmudge-fixgenericcustom
2 parents 81f0f12 + 06ba2ef commit e9f4900

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

modules/payloads/singles/generic/custom.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ def initialize(info = {})
3838
# Construct the payload
3939
#
4040
def generate
41+
if datastore['ARCH']
42+
self.arch = actual_arch
43+
end
44+
4145
if datastore['PAYLOADFILE']
4246
IO.read(datastore['PAYLOADFILE'])
4347
elsif datastore['PAYLOADSTR']

0 commit comments

Comments
 (0)