Projects STRLCPY autorize Commits c32c18e3
🤬
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■ ■ ■
    authorization/authorization.py
    1 1  #!/usr/bin/env python
    2 2  # -*- coding: utf-8 -*-
    3 3   
     4 +from operator import truediv
    4 5  import sys
    5 6  reload(sys)
    6 7   
    skipped 131 lines
    138 139   regex_string = self.IFList.getModel().getElementAt(i)[37:]
    139 140   if not re.search(regex_string, resStr, re.IGNORECASE) is None:
    140 141   message_passed_filters = False
     142 + 
     143 + if self.IFList.getModel().getElementAt(i).split(":")[0] == "Header contains":
     144 + for header in list(resInfo.getHeaders()):
     145 + if self.IFList.getModel().getElementAt(i)[17:] in header:
     146 + message_passed_filters = False
     147 +
     148 + if self.IFList.getModel().getElementAt(i).split(":")[0] == "Header doesn't contain":
     149 + for header in list(resInfo.getHeaders()):
     150 + if not self.IFList.getModel().getElementAt(i)[17:] in header:
     151 + message_passed_filters = False
    141 152   
    142 153   if self.IFList.getModel().getElementAt(i).split(":")[0] == "Only HTTP methods (newline separated)":
    143 154   filterMethods = self.IFList.getModel().getElementAt(i)[39:].split("\n")
    skipped 207 lines
  • ■ ■ ■ ■ ■ ■
    gui/interception_filters.py
    skipped 40 lines
    41 41   "Response Body contains (regex): ",
    42 42   "Response Body NOT contains (simple string): ",
    43 43   "Response Body Not contains (regex): ",
     44 + "Header contains: ",
     45 + "Header doesn't contain: ",
    44 46   "Only HTTP methods (newline separated): ",
    45 47   "Ignore HTTP methods (newline separated): ",
    46 48   "Ignore spider requests: (Content is not required)",
    skipped 64 lines
Please wait...
Page is in error, reload to recover