@@ 68-82 (lines=15) @@ | ||
65 | return false; |
|
66 | } |
|
67 | ||
68 | public function attack($url) |
|
69 | { |
|
70 | $this->logger->info('.'); |
|
71 | ||
72 | try { |
|
73 | $body = $this->client->get($url)->getBody()->getContents(); |
|
74 | if ($body && $this->checkSuccess($body) && $this->checkCompare($body)) { |
|
75 | return true; |
|
76 | } |
|
77 | } catch (\Exception $e) { |
|
78 | $this->logger->error('#'); |
|
79 | } |
|
80 | ||
81 | return false; |
|
82 | } |
|
83 | ||
84 | public function checkSuccess($body) |
|
85 | { |
@@ 61-78 (lines=18) @@ | ||
58 | return false; |
|
59 | } |
|
60 | ||
61 | protected function attack($url) |
|
62 | { |
|
63 | $this->logger->info('.'); |
|
64 | ||
65 | try { |
|
66 | $body = $this->client->get($url)->getBody()->getContents(); |
|
67 | ||
68 | if ($body |
|
69 | && $this->checkSuccess($body) |
|
70 | ) { |
|
71 | return $url; |
|
72 | } |
|
73 | } catch (\Exception $e) { |
|
74 | $this->logger->error('#'); |
|
75 | } |
|
76 | ||
77 | return false; |
|
78 | } |
|
79 | ||
80 | protected function checkSuccess($body) |
|
81 | { |