security scanner

Fix for Security scanner simpletest integration

  1. <?php
  2.     function assert(&$expectation, $compare, $message = '%s') {
  3.         if ($expectation->test($compare)) {
  4.             return $this->pass(sprintf(
  5.                     $message,

Security scanner simpletest integration

  1. <?php
  2. // $Id: security_scanner.module,v 1.16 2008/07/26 09:42:29 ingo86 Exp $
  3.  
  4. // Including DrupalWebTestCase() class dependencies

Fix for Crawler

  1.  function crawler_framework($selection_query, $initial_status, $function_callback) {
  2.     // Initialize the crawler
  3.     db_query("INSERT INTO {crawler} VALUES (default)");

Fix for Crawler

  1. <?php
  2.   /**
  3.    *  Implementation of the crawler function.
  4.    *  Flow:
  5.    *  1- set crawler_id but leave status = 0
  6.    *  2- make status = 1
  7.    *  3- make status = 2
  8.    */

Fix for Crawler

  1. <?php
  2.   /**
  3.    *  Implementation of the crawler function.
  4.    *  Flow:
  5.    *  1- set crawler_id but leave status = 0
  6.    *  2- make status = 1
  7.    *  3- make status = 2
  8.    */

Crawler

  1.  /**
  2.    *  Implementation of the crawler function.
  3.    *  Flow:
  4.    *  1- set crawler_id but leave status = 0
  5.    *  2- make status = 1
  6.    *  3- make status = 2            
  7.    */    

Fix for Crawler

  1. /**
  2.    *  Implementation of the crawler function
  3.    */    
  4.   function security_scanner_crawler($path) {
  5.     // Create a new object and parse the page

Crawler

  1. /**
  2.    *  Implementation of the crawler function
  3.    */    
  4.   function security_scanner_crawler($path) {
  5.     // Create a new object and parse the page

Fix for Xss injector

  1. function page_xss_injector() {
  2.     for($i=0;$i<2;$i++) {
  3.       // Extract the forms url and id

Fix for Xss injector

  1. function page_xss_injector() {
  2.     for($i=0;$i<2;$i++) {
  3.       // Extract the forms url and id
Syndicate content