@@ 89-95 (lines=7) @@ | ||
86 | return (bool) preg_match('/'.static::EXPLOIT1REGEX.'|'.static::EXPLOIT2REGEX.'/', $body); |
|
87 | } |
|
88 | ||
89 | public function generateUrls($target) |
|
90 | { |
|
91 | $this->logger->info("\n".$target); |
|
92 | $urls1 = $this->generateUrlsByExploit($target, static::EXPLOIT1); |
|
93 | $urls2 = $this->generateUrlsByExploit($target, static::EXPLOIT2); |
|
94 | return array_merge($urls1, $urls2); |
|
95 | } |
|
96 | ||
97 | public function generateUrlsByExploit($target, $exploit) |
|
98 | { |
@@ 85-93 (lines=9) @@ | ||
82 | return preg_match('/'.static::EXPLOIT1REGEX.'|'.static::EXPLOIT2REGEX.'/', $body); |
|
83 | } |
|
84 | ||
85 | public function generateUrls($target) |
|
86 | { |
|
87 | $this->logger->info('.\n'.$target); |
|
88 | ||
89 | $urls1 = $this->generateUrlsByExploit($target, static::EXPLOIT1); |
|
90 | $urls2 = $this->generateUrlsByExploit($target, static::EXPLOIT2); |
|
91 | ||
92 | return array_merge($urls1, $urls2); |
|
93 | } |
|
94 | ||
95 | protected function generateUrlsByExploit($target, $exploit) |
|
96 | { |