File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -314,15 +314,15 @@ class MsfVenom
314
314
if payload . nil?
315
315
raise UsageError , "Invalid payload: #{ @opts [ :payload ] } "
316
316
end
317
+ @opts [ :arch ] ||= payload . arch [ 0 ]
318
+ # If it's not stdin, we'll already have a PlatformList
319
+ @opts [ :platform ] ||= payload . platform
320
+ payload . datastore . merge! @datastore
317
321
if @opts [ :list_options ]
318
322
print_status ( "Options for #{ payload . fullname } \n \n " +
319
323
::Msf ::Serializer ::ReadableText . dump_module ( payload , ' ' ) )
320
324
return
321
325
end
322
- @opts [ :arch ] ||= payload . arch [ 0 ]
323
- # If it's not stdin, we'll already have a PlatformList
324
- @opts [ :platform ] ||= payload . platform
325
- payload . datastore . merge! @datastore
326
326
payload_raw = payload . generate_simple (
327
327
'Format' => 'raw' ,
328
328
'Options' => @datastore ,
You can’t perform that action at this time.
0 commit comments