Avoid internal constants for bypassuac file path generation

bug/bundler_fix
OJ 2016-11-01 01:32:24 +10:00
parent 6ce7352c45
commit 3c57ff5c59
No known key found for this signature in database
GPG Key ID: D5DC61FB93260597
1 changed files with 1 additions and 1 deletions

View File

@ -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...')