hunk.code_window:     for vector in WAF_ATTACK_VECTORS:
           page, headers, code = get_page(get=vector)
           retval = code == 501 and re.search(r"Reference #[0-9A-Fa-f.]+", page or "", re.I) is None
           retval |= re.search(r"Mod_Security|NOYB", headers.get(HTTP_HEADER.SERVER, ""), re.I) is not None
           retval |= "This error was generated by Mod_Security" in (page or "")
           if retval:
               break
       return retval
hunk.labels: keep keep keep replace replace keep keep keep keep keep
hunk.after_edit:         retval = re.search(r"Mod_Security|NOYB", headers.get(HTTP_HEADER.SERVER, ""), re.I) is not None
  
hunk.file_path: waf/modsecurity.py
hunk.type: replace
file: #!/bin/bash
  
  # Copyright (c) 2006-2013 sqlmap developers (http://sqlmap.org/)
  # See the file 'doc/COPYING' for copying permission
  
  # Removes trailing spaces from blank lines inside project files
  find . -type f -iname '*.py' -exec sed -i 's/^[ \t]*$//' {} \;
  