Skip to content

Commit

Permalink
Fix net_clr version check
Browse files Browse the repository at this point in the history
  • Loading branch information
RageLtMan committed Aug 19, 2012
1 parent 4b2a6df commit 214677c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/msf/core/post/windows/powershell/dot_net.rb
Expand Up @@ -109,7 +109,7 @@ def dot_net_compiler(opts = {})
# PS uses .NET 2.0 by default which doesnt work @ present (20120814, RLTM)
# x86 targets also need to be compiled in x86 powershell instance
run_32 = compiler_opts =~ /platform:x86/i ? true : false
if opts[:net_clr] > 2 # PS before 3.0 natively uses NET 2
if opts[:net_clr] and opts[:net_clr] > 2 # PS before 3.0 natively uses NET 2
return elevate_net_clr(compiler, run_32, opts[:net_clr])
else
return compiler
Expand Down

0 comments on commit 214677c

Please sign in to comment.