replace client.sys.config.getenv with get_env
parent
bba261a1cf
commit
bb4f5da6d9
|
@ -149,7 +149,7 @@ class Metasploit3 < Msf::Exploit::Local
|
|||
if datastore['WritableDir'] and not datastore['WritableDir'].empty?
|
||||
temp_dir = datastore['WritableDir']
|
||||
else
|
||||
temp_dir = client.sys.config.getenv('TEMP')
|
||||
temp_dir = get_env('TEMP')
|
||||
end
|
||||
|
||||
print_status("Using #{temp_dir} to drop malicious exe")
|
||||
|
|
Loading…
Reference in New Issue