/** * @param Vulnerability|SQL $vuln * @return bool */ public function equalsTo($vuln) { if (!parent::equalsTo($vuln)) { return false; } return $this->isBlind() === $vuln->isBlind(); }
/** * @param Vulnerability|PHPSessionIdOverflow $vuln * @return bool */ public function equalsTo($vuln) { if (!parent::equalsTo($vuln)) { return false; } return $this->getActionOnCorruptedId() === $vuln->getActionOnCorruptedId(); }
/** * @param Vulnerability|boolean $vulnerability * @param null $name */ public function set($vulnerability, $name = null) { $this->vulnerabilities[$name ?: $vulnerability->getName()] = $vulnerability; }
/** * @param Vulnerability $vuln * @return bool */ public function equalsTo($vuln) { if ($this === $vuln) { return true; } if (!$vuln instanceof Vulnerability) { return false; } return $this->getName() == $vuln->getName() && $this->isEnabled() == $vuln->isEnabled(); }
/** * @param Vulnerability|IntegerOverflow $vuln * @return bool */ public function equalsTo($vuln) { if (!parent::equalsTo($vuln)) { return false; } return $this->getReturnTransform() === $vuln->getReturnTransform() && ($this->getReturnTransform() !== self::RETURN_CUSTOM || $this->getCustomValue() === $vuln->getCustomValue()); }