Skip to content

Commit 833b2a6

Browse files
committed
Fix the architecture check for only x64
1 parent 5470670 commit 833b2a6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

modules/exploits/windows/local/razer_zwopenprocess.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,8 @@ def exploit
9292

9393
if sysinfo['Architecture'] =~ /wow64/i
9494
fail_with(Failure::NoTarget, 'Running against WOW64 is not supported')
95-
elsif sysinfo['Architecture'] == ARCH_X64 && target.arch.first == ARCH_X86
96-
fail_with(Failure::NoTarget, 'Session host is x64, but the target is specified as x86')
97-
elsif sysinfo['Architecture'] == ARCH_X86 && target.arch.first == ARCH_X64
98-
fail_with(Failure::NoTarget, 'Session host is x86, but the target is specified as x64')
95+
elsif sysinfo['Architecture'] == ARCH_X86
96+
fail_with(Failure::NoTarget, 'Session host is x86, but only x64 targets are supported')
9997
end
10098

10199
pid = session.sys.process['RazerIngameEngine.exe']

0 commit comments

Comments
 (0)