Example #1
0
 public function testListWithSubKeysAndExceptions()
 {
     $exploits = array('test1' => '9<script/src=http://attacker.com>');
     $exploits[] = array('" style="-moz-binding:url(http://h4k.in/mozxss.xml#xss);" a="');
     $exploits[] = array('9<script/src=http/attacker.com>');
     $test = new IDS_Monitor($exploits, $this->init);
     $test->setExceptions('test1');
     $result = $test->run();
     $this->assertEquals(33, $result->getImpact());
 }