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:
commit
3cb4f0bb2a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user