Skip to content

Commit 7baf199

Browse files
committed
Add support for loading of encrypted libraries
1 parent d2607c7 commit 7baf199

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/rex/post/meterpreter/client_core.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,8 @@ def load_library(opts)
258258
end
259259

260260
if library_image
261-
request.add_tlv(TLV_TYPE_DATA, library_image, false, client.capabilities[:zlib])
261+
decrypted_library_image = ::MetasploitPayloads.decrypt_payload(payload: library_image)
262+
request.add_tlv(TLV_TYPE_DATA, decrypted_library_image, false, client.capabilities[:zlib])
262263
else
263264
raise RuntimeError, "Failed to serialize library #{library_path}.", caller
264265
end

0 commit comments

Comments
 (0)