fix find condition

bug/bundler_fix
jvazquez-r7 2014-09-12 15:21:50 -05:00
parent 1749fc73c2
commit 5da6a450f1
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ class Metasploit3 < Msf::Post
mem = process.memory.allocate(128)
process.memory.write(mem, data)
if session.sys.process.each_process.find { |i| i["pid"] == pid} ["arch"] == "x86"
if session.sys.process.each_process.find { |i| i["pid"] == pid && i["arch"] == "x86"}
addr = [mem].pack("V")
len = [data.length].pack("V")
ret = rg.crypt32.CryptUnprotectData("#{len}#{addr}", 16, nil, nil, nil, 0, 8)