@@ -226,8 +226,8 @@ discard block |
||
| 226 | 226 | protected function createMessage1() |
| 227 | 227 | { |
| 228 | 228 | return self::NTLMSIG |
| 229 | - . $this->createByte('01') // Message 1 |
|
| 230 | - . $this->createByte('0702'); // Flags |
|
| 229 | + . $this->createByte('01') // Message 1 |
|
| 230 | + . $this->createByte('0702'); // Flags |
|
| 231 | 231 | } |
| 232 | 232 | |
| 233 | 233 | /** |
@@ -255,19 +255,19 @@ discard block |
||
| 255 | 255 | $ntlmSec = $this->createSecurityBuffer($ntlmResponse, ($lmInfo[0] + $lmInfo[1]) / 2, true); |
| 256 | 256 | |
| 257 | 257 | return self::NTLMSIG |
| 258 | - . $this->createByte('03') // TYPE 3 message |
|
| 259 | - . $lmSec // LM response header |
|
| 260 | - . $ntlmSec // NTLM response header |
|
| 261 | - . $domainSec // Domain header |
|
| 262 | - . $userSec // User header |
|
| 263 | - . $workSec // Workstation header |
|
| 264 | - . $this->createByte('000000009a', 8) // session key header (empty) |
|
| 265 | - . $this->createByte('01020000') // FLAGS |
|
| 266 | - . $this->convertTo16bit($domain) // domain name |
|
| 267 | - . $this->convertTo16bit($username) // username |
|
| 268 | - . $this->convertTo16bit($workstation) // workstation |
|
| 269 | - . $lmResponse |
|
| 270 | - . $ntlmResponse; |
|
| 258 | + . $this->createByte('03') // TYPE 3 message |
|
| 259 | + . $lmSec // LM response header |
|
| 260 | + . $ntlmSec // NTLM response header |
|
| 261 | + . $domainSec // Domain header |
|
| 262 | + . $userSec // User header |
|
| 263 | + . $workSec // Workstation header |
|
| 264 | + . $this->createByte('000000009a', 8) // session key header (empty) |
|
| 265 | + . $this->createByte('01020000') // FLAGS |
|
| 266 | + . $this->convertTo16bit($domain) // domain name |
|
| 267 | + . $this->convertTo16bit($username) // username |
|
| 268 | + . $this->convertTo16bit($workstation) // workstation |
|
| 269 | + . $lmResponse |
|
| 270 | + . $ntlmResponse; |
|
| 271 | 271 | } |
| 272 | 272 | |
| 273 | 273 | /** |
@@ -280,12 +280,12 @@ discard block |
||
| 280 | 280 | protected function createBlob($timestamp, $client, $targetInfo) |
| 281 | 281 | { |
| 282 | 282 | return $this->createByte('0101') |
| 283 | - . $this->createByte('00') |
|
| 284 | - . $timestamp |
|
| 285 | - . $client |
|
| 286 | - . $this->createByte('00') |
|
| 287 | - . $targetInfo |
|
| 288 | - . $this->createByte('00'); |
|
| 283 | + . $this->createByte('00') |
|
| 284 | + . $timestamp |
|
| 285 | + . $client |
|
| 286 | + . $this->createByte('00') |
|
| 287 | + . $targetInfo |
|
| 288 | + . $this->createByte('00'); |
|
| 289 | 289 | } |
| 290 | 290 | |
| 291 | 291 | /** |
@@ -451,16 +451,16 @@ discard block |
||
| 451 | 451 | foreach ($material as $k => $v) { |
| 452 | 452 | $b = $this->castToByte(hexdec($v)); |
| 453 | 453 | $needsParity = ( |
| 454 | - ( |
|
| 455 | - $this->uRShift($b, 7) |
|
| 456 | - ^ $this->uRShift($b, 6) |
|
| 457 | - ^ $this->uRShift($b, 5) |
|
| 458 | - ^ $this->uRShift($b, 4) |
|
| 459 | - ^ $this->uRShift($b, 3) |
|
| 460 | - ^ $this->uRShift($b, 2) |
|
| 461 | - ^ $this->uRShift($b, 1) |
|
| 462 | - ) & 0x01 |
|
| 463 | - ) == 0; |
|
| 454 | + ( |
|
| 455 | + $this->uRShift($b, 7) |
|
| 456 | + ^ $this->uRShift($b, 6) |
|
| 457 | + ^ $this->uRShift($b, 5) |
|
| 458 | + ^ $this->uRShift($b, 4) |
|
| 459 | + ^ $this->uRShift($b, 3) |
|
| 460 | + ^ $this->uRShift($b, 2) |
|
| 461 | + ^ $this->uRShift($b, 1) |
|
| 462 | + ) & 0x01 |
|
| 463 | + ) == 0; |
|
| 464 | 464 | |
| 465 | 465 | list($high, $low) = str_split($v); |
| 466 | 466 | |