Example #1
0
 /**
  * @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();
 }
Example #3
0
 /**
  * @param Vulnerability|boolean $vulnerability
  * @param null $name
  */
 public function set($vulnerability, $name = null)
 {
     $this->vulnerabilities[$name ?: $vulnerability->getName()] = $vulnerability;
 }
Example #4
0
 /**
  * @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();
 }
Example #5
0
 /**
  * @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());
 }