mirror of
https://github.com/rapid7/metasploit-payloads
synced 2025-03-24 18:16:24 +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 = '';
|
$result = '';
|
||||||
|
|
||||||
for ($i = 0; $i < strlen($data); ++$i) {
|
for ($i = 0; $i < strlen($data); ++$i) {
|
||||||
$result .= $data{$i} ^ $key{$i % 4};
|
$result .= $data[$i] ^ $key[$i % 4];
|
||||||
}
|
}
|
||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user