@@ -209,7 +209,7 @@ discard block |
||
| 209 | 209 | { |
| 210 | 210 | $this->_privateKey = $privateKey; |
| 211 | 211 | $this->_domainName = $domainName; |
| 212 | - $this->_signerIdentity = '@' . $domainName; |
|
| 212 | + $this->_signerIdentity = '@'.$domainName; |
|
| 213 | 213 | $this->_selector = $selector; |
| 214 | 214 | $this->_passphrase = $passphrase; |
| 215 | 215 | |
@@ -580,7 +580,7 @@ discard block |
||
| 580 | 580 | ); |
| 581 | 581 | |
| 582 | 582 | if ($this->_bodyCanon != 'simple') { |
| 583 | - $params['c'] = $this->_headerCanon . '/' . $this->_bodyCanon; |
|
| 583 | + $params['c'] = $this->_headerCanon.'/'.$this->_bodyCanon; |
|
| 584 | 584 | } elseif ($this->_headerCanon != 'simple') { |
| 585 | 585 | $params['c'] = $this->_headerCanon; |
| 586 | 586 | } |
@@ -614,7 +614,7 @@ discard block |
||
| 614 | 614 | |
| 615 | 615 | $string = ''; |
| 616 | 616 | foreach ($params as $k => $v) { |
| 617 | - $string .= $k . '=' . $v . '; '; |
|
| 617 | + $string .= $k.'='.$v.'; '; |
|
| 618 | 618 | } |
| 619 | 619 | |
| 620 | 620 | $string = trim($string); |
@@ -623,14 +623,14 @@ discard block |
||
| 623 | 623 | // Add the last DKIM-Signature |
| 624 | 624 | $tmp = $headers->getAll('DKIM-Signature'); |
| 625 | 625 | $this->_dkimHeader = end($tmp); |
| 626 | - $this->_addHeader(trim($this->_dkimHeader->toString()) . "\r\n b=", true); |
|
| 626 | + $this->_addHeader(trim($this->_dkimHeader->toString())."\r\n b=", true); |
|
| 627 | 627 | $this->_endOfHeaders(); |
| 628 | 628 | |
| 629 | 629 | if ($this->_debugHeaders) { |
| 630 | 630 | $headers->addTextHeader('X-DebugHash', base64_encode($this->_headerHash)); |
| 631 | 631 | } |
| 632 | 632 | |
| 633 | - $this->_dkimHeader->setValue($string . ' b=' . trim(chunk_split(base64_encode($this->_getEncryptedHash()), 73, ' '))); |
|
| 633 | + $this->_dkimHeader->setValue($string.' b='.trim(chunk_split(base64_encode($this->_getEncryptedHash()), 73, ' '))); |
|
| 634 | 634 | |
| 635 | 635 | return $this; |
| 636 | 636 | } |
@@ -648,7 +648,7 @@ discard block |
||
| 648 | 648 | $name = Swift::strtolowerWithStaticCache(trim($exploded[0])); |
| 649 | 649 | $value = \str_replace("\r\n", '', $exploded[1]); |
| 650 | 650 | $value = \preg_replace("/[ \t][ \t]+/", ' ', $value); |
| 651 | - $header = $name . ':' . trim($value) . ($is_sig ? '' : "\r\n"); |
|
| 651 | + $header = $name.':'.trim($value).($is_sig ? '' : "\r\n"); |
|
| 652 | 652 | case 'simple': |
| 653 | 653 | // Nothing to do |
| 654 | 654 | } |
@@ -784,13 +784,13 @@ discard block |
||
| 784 | 784 | $pkeyId = openssl_get_privatekey($this->_privateKey); |
| 785 | 785 | } |
| 786 | 786 | if (!$pkeyId) { |
| 787 | - throw new Swift_SwiftException('Unable to load DKIM Private Key [' . openssl_error_string() . ']'); |
|
| 787 | + throw new Swift_SwiftException('Unable to load DKIM Private Key ['.openssl_error_string().']'); |
|
| 788 | 788 | } |
| 789 | 789 | |
| 790 | 790 | if (openssl_sign($this->_headerCanonData, $signature, $pkeyId, $algorithm)) { |
| 791 | 791 | return $signature; |
| 792 | 792 | } |
| 793 | 793 | |
| 794 | - throw new Swift_SwiftException('Unable to sign DKIM Hash [' . openssl_error_string() . ']'); |
|
| 794 | + throw new Swift_SwiftException('Unable to sign DKIM Hash ['.openssl_error_string().']'); |
|
| 795 | 795 | } |
| 796 | 796 | } |
@@ -145,7 +145,7 @@ discard block |
||
| 145 | 145 | { |
| 146 | 146 | $this->_privateKey = $privateKey; |
| 147 | 147 | $this->_domainName = $domainName; |
| 148 | - $this->_signerIdentity = '@' . $domainName; |
|
| 148 | + $this->_signerIdentity = '@'.$domainName; |
|
| 149 | 149 | $this->_selector = $selector; |
| 150 | 150 | } |
| 151 | 151 | |
@@ -424,7 +424,7 @@ discard block |
||
| 424 | 424 | $params = array('a' => $this->_hashAlgorithm, 'b' => chunk_split(base64_encode($this->_getEncryptedHash()), 73, ' '), 'c' => $this->_canon, 'd' => $this->_domainName, 'h' => implode(': ', $this->_signedHeaders), 'q' => 'dns', 's' => $this->_selector); |
| 425 | 425 | $string = ''; |
| 426 | 426 | foreach ($params as $k => $v) { |
| 427 | - $string .= $k . '=' . $v . '; '; |
|
| 427 | + $string .= $k.'='.$v.'; '; |
|
| 428 | 428 | } |
| 429 | 429 | $string = trim($string); |
| 430 | 430 | $headers->addTextHeader('DomainKey-Signature', $string); |
@@ -446,7 +446,7 @@ discard block |
||
| 446 | 446 | $name = Swift::strtolowerWithStaticCache(trim($exploded[0])); |
| 447 | 447 | $value = \str_replace("\r\n", '', $exploded[1]); |
| 448 | 448 | $value = \preg_replace("/[ \t][ \t]+/", ' ', $value); |
| 449 | - $header = $name . ':' . trim($value) . "\r\n"; |
|
| 449 | + $header = $name.':'.trim($value)."\r\n"; |
|
| 450 | 450 | case 'simple': |
| 451 | 451 | // Nothing to do |
| 452 | 452 | } |
@@ -546,11 +546,11 @@ discard block |
||
| 546 | 546 | $signature = ''; |
| 547 | 547 | $pkeyId = openssl_get_privatekey($this->_privateKey); |
| 548 | 548 | if (!$pkeyId) { |
| 549 | - throw new Swift_SwiftException('Unable to load DomainKey Private Key [' . openssl_error_string() . ']'); |
|
| 549 | + throw new Swift_SwiftException('Unable to load DomainKey Private Key ['.openssl_error_string().']'); |
|
| 550 | 550 | } |
| 551 | 551 | if (openssl_sign($this->_canonData, $signature, $pkeyId, OPENSSL_ALGO_SHA1)) { |
| 552 | 552 | return $signature; |
| 553 | 553 | } |
| 554 | - throw new Swift_SwiftException('Unable to sign DomainKey Hash [' . openssl_error_string() . ']'); |
|
| 554 | + throw new Swift_SwiftException('Unable to sign DomainKey Hash ['.openssl_error_string().']'); |
|
| 555 | 555 | } |
| 556 | 556 | } |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | if (strpos($path, '?') !== false) { |
| 82 | 82 | $parameter = parse_url($path, PHP_URL_QUERY); |
| 83 | 83 | |
| 84 | - $this->_path = \str_replace('?' . $parameter, '', $path); |
|
| 84 | + $this->_path = \str_replace('?'.$parameter, '', $path); |
|
| 85 | 85 | } else { |
| 86 | 86 | $this->_path = $path; |
| 87 | 87 | } |
@@ -210,7 +210,7 @@ discard block |
||
| 210 | 210 | $pointer = @fopen($this->_path, 'rb', false, stream_context_create($opts)); |
| 211 | 211 | |
| 212 | 212 | if (!$pointer) { |
| 213 | - throw new Swift_IoException('Unable to open file for reading [' . $this->_path . ']'); |
|
| 213 | + throw new Swift_IoException('Unable to open file for reading ['.$this->_path.']'); |
|
| 214 | 214 | } |
| 215 | 215 | |
| 216 | 216 | $this->_reader = $pointer; |
@@ -232,7 +232,7 @@ discard block |
||
| 232 | 232 | $pointer = @fopen($this->_path, $this->_mode); |
| 233 | 233 | |
| 234 | 234 | if (!$pointer) { |
| 235 | - throw new Swift_IoException('Unable to open file for writing [' . $this->_path . ']'); |
|
| 235 | + throw new Swift_IoException('Unable to open file for writing ['.$this->_path.']'); |
|
| 236 | 236 | } |
| 237 | 237 | |
| 238 | 238 | $this->_writer = $pointer; |
@@ -303,7 +303,7 @@ discard block |
||
| 303 | 303 | $source = @fopen($this->_path, 'rb'); |
| 304 | 304 | |
| 305 | 305 | if (!$source) { |
| 306 | - throw new Swift_IoException('Unable to open file for copying [' . $this->_path . ']'); |
|
| 306 | + throw new Swift_IoException('Unable to open file for copying ['.$this->_path.']'); |
|
| 307 | 307 | } |
| 308 | 308 | |
| 309 | 309 | fseek($tmpFile, 0, SEEK_SET); |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | if ( |
| 64 | 64 | $currentLine !== '' |
| 65 | 65 | && |
| 66 | - \strlen($currentLine . $encodedChar) > $thisLineLength |
|
| 66 | + \strlen($currentLine.$encodedChar) > $thisLineLength |
|
| 67 | 67 | ) { |
| 68 | 68 | $lines[] = ''; |
| 69 | 69 | $currentLine = &$lines[$lineCount++]; |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | */ |
| 113 | 113 | public function send(Swift_Mime_Message $message, &$failedRecipients = null) |
| 114 | 114 | { |
| 115 | - $failedRecipients = (array)$failedRecipients; |
|
| 115 | + $failedRecipients = (array) $failedRecipients; |
|
| 116 | 116 | |
| 117 | 117 | $evt = $this->_eventDispatcher->createSendEvent($this, $message); |
| 118 | 118 | if ($evt) { |
@@ -124,9 +124,9 @@ discard block |
||
| 124 | 124 | } |
| 125 | 125 | |
| 126 | 126 | $count = ( |
| 127 | - \count((array)$message->getTo()) |
|
| 128 | - + \count((array)$message->getCc()) |
|
| 129 | - + \count((array)$message->getBcc()) |
|
| 127 | + \count((array) $message->getTo()) |
|
| 128 | + + \count((array) $message->getCc()) |
|
| 129 | + + \count((array) $message->getBcc()) |
|
| 130 | 130 | ); |
| 131 | 131 | |
| 132 | 132 | /* |
@@ -161,10 +161,10 @@ discard block |
||
| 161 | 161 | |
| 162 | 162 | // Separate headers from body |
| 163 | 163 | if (false !== $endHeaders = \strpos($messageStr, "\r\n\r\n")) { |
| 164 | - $headers = \substr($messageStr, 0, $endHeaders) . "\r\n"; // Keep last EOL |
|
| 164 | + $headers = \substr($messageStr, 0, $endHeaders)."\r\n"; // Keep last EOL |
|
| 165 | 165 | $body = \substr($messageStr, $endHeaders + 4); |
| 166 | 166 | } else { |
| 167 | - $headers = $messageStr . "\r\n"; |
|
| 167 | + $headers = $messageStr."\r\n"; |
|
| 168 | 168 | $body = ''; |
| 169 | 169 | } |
| 170 | 170 | |
@@ -193,9 +193,9 @@ discard block |
||
| 193 | 193 | } else { |
| 194 | 194 | $failedRecipients = \array_merge( |
| 195 | 195 | $failedRecipients, |
| 196 | - \array_keys((array)$message->getTo()), |
|
| 197 | - \array_keys((array)$message->getCc()), |
|
| 198 | - \array_keys((array)$message->getBcc()) |
|
| 196 | + \array_keys((array) $message->getTo()), |
|
| 197 | + \array_keys((array) $message->getCc()), |
|
| 198 | + \array_keys((array) $message->getBcc()) |
|
| 199 | 199 | ); |
| 200 | 200 | |
| 201 | 201 | if ($evt) { |
@@ -207,7 +207,7 @@ discard block |
||
| 207 | 207 | $count = 0; |
| 208 | 208 | } |
| 209 | 209 | |
| 210 | - $message->generateId(); // Make sure a new Message ID is used |
|
| 210 | + $message->generateId(); // Make sure a new Message ID is used |
|
| 211 | 211 | |
| 212 | 212 | return $count; |
| 213 | 213 | } |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | */ |
| 112 | 112 | public function send(Swift_Mime_Message $message, &$failedRecipients = null) |
| 113 | 113 | { |
| 114 | - $failedRecipients = (array)$failedRecipients; |
|
| 114 | + $failedRecipients = (array) $failedRecipients; |
|
| 115 | 115 | $command = $this->getCommand(); |
| 116 | 116 | $buffer = $this->getBuffer(); |
| 117 | 117 | $count = 0; |
@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | } |
| 129 | 129 | |
| 130 | 130 | if (false === strpos($command, ' -f')) { |
| 131 | - $command .= ' -f' . escapeshellarg($this->_getReversePath($message)); |
|
| 131 | + $command .= ' -f'.escapeshellarg($this->_getReversePath($message)); |
|
| 132 | 132 | } |
| 133 | 133 | |
| 134 | 134 | $buffer->initialize(array_merge($this->_params, array('command' => $command))); |
@@ -139,9 +139,9 @@ discard block |
||
| 139 | 139 | $buffer->setWriteTranslations(array("\r\n" => "\n")); |
| 140 | 140 | } |
| 141 | 141 | |
| 142 | - $count = \count((array)$message->getTo()) |
|
| 143 | - + count((array)$message->getCc()) |
|
| 144 | - + count((array)$message->getBcc()); |
|
| 142 | + $count = \count((array) $message->getTo()) |
|
| 143 | + + count((array) $message->getCc()) |
|
| 144 | + + count((array) $message->getBcc()); |
|
| 145 | 145 | |
| 146 | 146 | $message->toByteStream($buffer); |
| 147 | 147 | $buffer->flushBuffers(); |
@@ -159,7 +159,7 @@ discard block |
||
| 159 | 159 | } else { |
| 160 | 160 | $this->_throwException( |
| 161 | 161 | new Swift_TransportException( |
| 162 | - 'Unsupported sendmail command flags [' . $command . ']. ' . |
|
| 162 | + 'Unsupported sendmail command flags ['.$command.']. '. |
|
| 163 | 163 | 'Must be one of "-bs" or "-t" but can include additional flags.' |
| 164 | 164 | ) |
| 165 | 165 | ); |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | $challenge = $agent->executeCommand("AUTH CRAM-MD5\r\n", array(334)); |
| 41 | 41 | $challenge = base64_decode(substr($challenge, 4)); |
| 42 | 42 | $message = base64_encode( |
| 43 | - $username . ' ' . $this->_getResponse($password, $challenge) |
|
| 43 | + $username.' '.$this->_getResponse($password, $challenge) |
|
| 44 | 44 | ); |
| 45 | 45 | $agent->executeCommand(sprintf("%s\r\n", $message), array(235)); |
| 46 | 46 | |
@@ -73,8 +73,8 @@ discard block |
||
| 73 | 73 | $k_ipad = \substr($secret, 0, 64) ^ str_repeat(chr(0x36), 64); |
| 74 | 74 | $k_opad = \substr($secret, 0, 64) ^ str_repeat(chr(0x5C), 64); |
| 75 | 75 | |
| 76 | - $inner = pack('H32', md5($k_ipad . $challenge)); |
|
| 77 | - $digest = md5($k_opad . $inner); |
|
| 76 | + $inner = pack('H32', md5($k_ipad.$challenge)); |
|
| 77 | + $digest = md5($k_opad.$inner); |
|
| 78 | 78 | |
| 79 | 79 | return $digest; |
| 80 | 80 | } |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | // pad to $bits bit |
| 86 | 86 | $bin_length = \strlen($bin); |
| 87 | 87 | if ($bin_length < $bits) { |
| 88 | - $bin = str_repeat('0', $bits - $bin_length) . $bin; |
|
| 88 | + $bin = str_repeat('0', $bits - $bin_length).$bin; |
|
| 89 | 89 | } |
| 90 | 90 | } else { |
| 91 | 91 | // negative |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | $bin = base_convert($si, 10, 2); |
| 94 | 94 | $bin_length = \strlen($bin); |
| 95 | 95 | if ($bin_length > $bits) { |
| 96 | - $bin = str_repeat('1', $bits - $bin_length) . $bin; |
|
| 96 | + $bin = str_repeat('1', $bits - $bin_length).$bin; |
|
| 97 | 97 | } |
| 98 | 98 | } |
| 99 | 99 | } |
@@ -198,7 +198,7 @@ discard block |
||
| 198 | 198 | { |
| 199 | 199 | list($domain, $username) = $this->getDomainAndUsername($username); |
| 200 | 200 | //$challenge, $context, $targetInfoH, $targetName, $domainName, $workstation, $DNSDomainName, $DNSServerName, $blob, $ter |
| 201 | - list($challenge, , , , , $workstation, , , $blob) = $this->parseMessage2($response); |
|
| 201 | + list($challenge,,,,, $workstation,,, $blob) = $this->parseMessage2($response); |
|
| 202 | 202 | |
| 203 | 203 | if (!$v2) { |
| 204 | 204 | // LMv1 |
@@ -329,7 +329,7 @@ discard block |
||
| 329 | 329 | $desKey1 = $this->createDesKey($key1); |
| 330 | 330 | $desKey2 = $this->createDesKey($key2); |
| 331 | 331 | |
| 332 | - $constantDecrypt = $this->createByte($this->desEncrypt(self::DESCONST, $desKey1) . $this->desEncrypt(self::DESCONST, $desKey2), 21, false); |
|
| 332 | + $constantDecrypt = $this->createByte($this->desEncrypt(self::DESCONST, $desKey1).$this->desEncrypt(self::DESCONST, $desKey2), 21, false); |
|
| 333 | 333 | |
| 334 | 334 | // SECOND PART |
| 335 | 335 | list($key1, $key2, $key3) = \str_split($constantDecrypt, 7); |
@@ -338,7 +338,7 @@ discard block |
||
| 338 | 338 | $desKey2 = $this->createDesKey($key2); |
| 339 | 339 | $desKey3 = $this->createDesKey($key3); |
| 340 | 340 | |
| 341 | - return $this->desEncrypt($challenge, $desKey1) . $this->desEncrypt($challenge, $desKey2) . $this->desEncrypt($challenge, $desKey3); |
|
| 341 | + return $this->desEncrypt($challenge, $desKey1).$this->desEncrypt($challenge, $desKey2).$this->desEncrypt($challenge, $desKey3); |
|
| 342 | 342 | } |
| 343 | 343 | |
| 344 | 344 | /** |
@@ -359,7 +359,7 @@ discard block |
||
| 359 | 359 | $desKey2 = $this->createDesKey($key2); |
| 360 | 360 | $desKey3 = $this->createDesKey($key3); |
| 361 | 361 | |
| 362 | - return $this->desEncrypt($challenge, $desKey1) . $this->desEncrypt($challenge, $desKey2) . $this->desEncrypt($challenge, $desKey3); |
|
| 362 | + return $this->desEncrypt($challenge, $desKey1).$this->desEncrypt($challenge, $desKey2).$this->desEncrypt($challenge, $desKey3); |
|
| 363 | 363 | } |
| 364 | 364 | |
| 365 | 365 | /** |
@@ -402,9 +402,9 @@ discard block |
||
| 402 | 402 | // if $password > 15 than we can't use this method |
| 403 | 403 | if (strlen($password) <= 15) { |
| 404 | 404 | $ntlmHash = $this->md4Encrypt($password); |
| 405 | - $ntml2Hash = $this->md5Encrypt($ntlmHash, $this->convertTo16bit(strtoupper($username) . $domain)); |
|
| 405 | + $ntml2Hash = $this->md5Encrypt($ntlmHash, $this->convertTo16bit(strtoupper($username).$domain)); |
|
| 406 | 406 | |
| 407 | - $lmPass = bin2hex($this->md5Encrypt($ntml2Hash, $challenge . $client) . $client); |
|
| 407 | + $lmPass = bin2hex($this->md5Encrypt($ntml2Hash, $challenge.$client).$client); |
|
| 408 | 408 | } |
| 409 | 409 | |
| 410 | 410 | return $this->createByte($lmPass, 24); |
@@ -428,14 +428,14 @@ discard block |
||
| 428 | 428 | protected function createNTLMv2Hash($password, $username, $domain, $challenge, $targetInfo, $timestamp, $client) |
| 429 | 429 | { |
| 430 | 430 | $ntlmHash = $this->md4Encrypt($password); |
| 431 | - $ntml2Hash = $this->md5Encrypt($ntlmHash, $this->convertTo16bit(strtoupper($username) . $domain)); |
|
| 431 | + $ntml2Hash = $this->md5Encrypt($ntlmHash, $this->convertTo16bit(strtoupper($username).$domain)); |
|
| 432 | 432 | |
| 433 | 433 | // create blob |
| 434 | 434 | $blob = $this->createBlob($timestamp, $client, $targetInfo); |
| 435 | 435 | |
| 436 | - $ntlmv2Response = $this->md5Encrypt($ntml2Hash, $challenge . $blob); |
|
| 436 | + $ntlmv2Response = $this->md5Encrypt($ntml2Hash, $challenge.$blob); |
|
| 437 | 437 | |
| 438 | - return $ntlmv2Response . $blob; |
|
| 438 | + return $ntlmv2Response.$blob; |
|
| 439 | 439 | } |
| 440 | 440 | |
| 441 | 441 | protected function createDesKey($key) |
@@ -444,7 +444,7 @@ discard block |
||
| 444 | 444 | $len = \strlen($key); |
| 445 | 445 | for ($i = 1; $i < $len; ++$i) { |
| 446 | 446 | list($high, $low) = \str_split(bin2hex($key[$i])); |
| 447 | - $v = $this->castToByte(ord($key[$i - 1]) << (7 + 1 - $i) | $this->uRShift(hexdec(dechex(hexdec($high) & 0xf) . dechex(hexdec($low) & 0xf)), $i)); |
|
| 447 | + $v = $this->castToByte(ord($key[$i - 1]) << (7 + 1 - $i) | $this->uRShift(hexdec(dechex(hexdec($high) & 0xf).dechex(hexdec($low) & 0xf)), $i)); |
|
| 448 | 448 | $material[] = str_pad(substr(dechex($v), -2), 2, '0', STR_PAD_LEFT); // cast to byte |
| 449 | 449 | } |
| 450 | 450 | $material[] = str_pad(substr(dechex($this->castToByte(ord($key[6]) << 1)), -2), 2, '0'); |
@@ -467,9 +467,9 @@ discard block |
||
| 467 | 467 | list($high, $low) = \str_split($v); |
| 468 | 468 | |
| 469 | 469 | if ($needsParity) { |
| 470 | - $material[$k] = dechex(hexdec($high) | 0x0) . dechex(hexdec($low) | 0x1); |
|
| 470 | + $material[$k] = dechex(hexdec($high) | 0x0).dechex(hexdec($low) | 0x1); |
|
| 471 | 471 | } else { |
| 472 | - $material[$k] = dechex(hexdec($high) & 0xf) . dechex(hexdec($low) & 0xe); |
|
| 472 | + $material[$k] = dechex(hexdec($high) & 0xf).dechex(hexdec($low) & 0xe); |
|
| 473 | 473 | } |
| 474 | 474 | } |
| 475 | 475 | |
@@ -493,7 +493,7 @@ discard block |
||
| 493 | 493 | $length = $is16 ? $length / 2 : $length; |
| 494 | 494 | $length = $this->createByte(str_pad(dechex($length), 2, '0', STR_PAD_LEFT), 2); |
| 495 | 495 | |
| 496 | - return $length . $length . $this->createByte(dechex($offset), 4); |
|
| 496 | + return $length.$length.$this->createByte(dechex($offset), 4); |
|
| 497 | 497 | } |
| 498 | 498 | |
| 499 | 499 | /** |
@@ -596,7 +596,7 @@ discard block |
||
| 596 | 596 | $ipadk = $key ^ str_repeat("\x36", $blocksize); |
| 597 | 597 | $opadk = $key ^ str_repeat("\x5c", $blocksize); |
| 598 | 598 | |
| 599 | - return pack('H*', md5($opadk . pack('H*', md5($ipadk . $msg)))); |
|
| 599 | + return pack('H*', md5($opadk.pack('H*', md5($ipadk.$msg)))); |
|
| 600 | 600 | } |
| 601 | 601 | |
| 602 | 602 | /** |
@@ -634,8 +634,8 @@ discard block |
||
| 634 | 634 | { |
| 635 | 635 | $message = bin2hex($message); |
| 636 | 636 | $messageId = \substr($message, 16, 8); |
| 637 | - echo substr($message, 0, 16) . " NTLMSSP Signature<br />\n"; |
|
| 638 | - echo $messageId . " Type Indicator<br />\n"; |
|
| 637 | + echo substr($message, 0, 16)." NTLMSSP Signature<br />\n"; |
|
| 638 | + echo $messageId." Type Indicator<br />\n"; |
|
| 639 | 639 | |
| 640 | 640 | if ($messageId === '02000000') { |
| 641 | 641 | $map = array( |
@@ -654,7 +654,7 @@ discard block |
||
| 654 | 654 | $data = $this->parseMessage2(\hex2bin($message)); |
| 655 | 655 | |
| 656 | 656 | foreach ($map as $key => $value) { |
| 657 | - echo bin2hex($data[$key]) . ' - ' . $data[$key] . ' ||| ' . $value . "<br />\n"; |
|
| 657 | + echo bin2hex($data[$key]).' - '.$data[$key].' ||| '.$value."<br />\n"; |
|
| 658 | 658 | } |
| 659 | 659 | } elseif ($messageId === '03000000') { |
| 660 | 660 | $i = 0; |
@@ -697,7 +697,7 @@ discard block |
||
| 697 | 697 | ); |
| 698 | 698 | |
| 699 | 699 | foreach ($map as $key => $value) { |
| 700 | - echo $data[$key] . ' - ' . \hex2bin($data[$key]) . ' ||| ' . $value . "<br />\n"; |
|
| 700 | + echo $data[$key].' - '.\hex2bin($data[$key]).' ||| '.$value."<br />\n"; |
|
| 701 | 701 | } |
| 702 | 702 | } |
| 703 | 703 | |