1
mirror of https://github.com/rapid7/metasploit-payloads synced 2025-03-12 12:14:29 +01:00

Land #429 - Fix Older PHP error with rvalue indexing

Fixes #428
This commit is contained in:
OJ 2020-08-17 17:24:02 +10:00
commit b6ce0dff18
No known key found for this signature in database
GPG Key ID: D5DC61FB93260597

View File

@ -512,8 +512,10 @@ if (!function_exists('core_enumextcmd')) {
global $id2f;
$id_start = packet_get_tlv($req, TLV_TYPE_UINT)['value'];
$id_end = packet_get_tlv($req, TLV_TYPE_LENGTH)['value'] + id_start;
$id_start_array = packet_get_tlv($req, TLV_TYPE_UINT);
$id_start = $id_start_array['value'];
$id_end_array = packet_get_tlv($req, TLV_TYPE_LENGTH);
$id_end = $id_end_array['value'] + $id_start;
foreach ($id2f as $id => $ext_cmd) {
my_print("core_enumextcmd - checking " . $ext_cmd . " as " . $id);