1
mirror of https://github.com/rapid7/metasploit-payloads synced 2024-11-20 14:39:22 +01:00

Land #483 - Avoid old PHP array indexing syntax

This commit is contained in:
OJ 2021-04-12 09:32:39 +10:00
commit 3cb4f0bb2a
No known key found for this signature in database
GPG Key ID: D5DC61FB93260597

View File

@ -780,7 +780,7 @@ function xor_bytes($key, $data) {
$result = '';
for ($i = 0; $i < strlen($data); ++$i) {
$result .= $data{$i} ^ $key{$i % 4};
$result .= $data[$i] ^ $key[$i % 4];
}
return $result;