Avoid internal constants for bypassuac file path generation
parent
6ce7352c45
commit
3c57ff5c59
|
@ -121,7 +121,7 @@ class MetasploitModule < Msf::Exploit::Local
|
|||
# path to the bypassuac binary
|
||||
path = ::File.join(Msf::Config.data_directory, 'post')
|
||||
|
||||
bpexe = ::File.join(path, "bypassuac-#{sysinfo['Architecture']}.exe")
|
||||
bpexe = ::File.join(path, "bypassuac-#{sysinfo['Architecture'] == ARCH_X86 ? 'x86' : 'x64'}.exe")
|
||||
|
||||
print_status('Uploading the bypass UAC executable to the filesystem...')
|
||||
|
||||
|
|
Loading…
Reference in New Issue