mirror of
https://github.com/rapid7/metasploit-payloads
synced 2024-12-15 02:35:54 +01:00
Land #96, syntax errors in PHP versions < 5.4
This commit is contained in:
commit
328bd0a93d
@ -1263,7 +1263,8 @@ while (false !== ($cnt = select($r, $w, $e, $t))) {
|
||||
}
|
||||
$xor = strrev(substr($header, 0, 4));
|
||||
$request = substr($header, 4);
|
||||
$len = unpack("Nlen", xor_bytes($xor, substr($request, 0, 4)))['len'];
|
||||
$len_array = unpack("Nlen", xor_bytes($xor, substr($request, 0, 4)));
|
||||
$len = $len_array['len'];
|
||||
# length of the whole packet, including header
|
||||
# packet type should always be 0, i.e. PACKET_TYPE_REQUEST
|
||||
while (strlen($request) < $len) {
|
||||
|
Loading…
Reference in New Issue
Block a user