We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efb015f commit f95136cCopy full SHA for f95136c
lib/msf/core/exploit.rb
@@ -699,8 +699,8 @@ def target_arch
699
end
700
701
def normalize_platform_arch
702
- c_platform = (target and target.platform) ? target.platform : platform
703
- c_arch = (target and target.arch) ? target.arch : (arch == []) ? nil : arch
+ c_platform = (target && target.platform) ? target.platform : platform
+ c_arch = (target && target.arch) ? target.arch : (arch == []) ? nil : arch
704
c_arch ||= [ ARCH_X86 ]
705
return c_platform, c_arch
706
0 commit comments