mirror of
https://github.com/rapid7/metasploit-payloads
synced 2024-11-26 17:41:08 +01:00
Let PHP Meterpreter renegotiate CryptTLV
This commit is contained in:
parent
551eb74599
commit
390c52f755
@ -485,6 +485,7 @@ function core_negotiate_tlv_encryption($req, &$pkt) {
|
||||
if (supports_aes()) {
|
||||
my_print("AES functionality is supported");
|
||||
packet_add_tlv($pkt, create_tlv(TLV_TYPE_SYM_KEY_TYPE, ENC_AES256));
|
||||
$GLOBALS['AES_ENABLED'] = false;
|
||||
$GLOBALS['AES_KEY'] = rand_bytes(32);
|
||||
if (function_exists('openssl_pkey_get_public') && function_exists('openssl_public_encrypt')) {
|
||||
my_print("Encryption via public key is supported");
|
||||
|
Loading…
Reference in New Issue
Block a user