本文整理汇总了Python中w3af.core.controllers.plugins.grep_plugin.GrepPlugin类的典型用法代码示例。如果您正苦于以下问题:Python GrepPlugin类的具体用法?Python GrepPlugin怎么用?Python GrepPlugin使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了GrepPlugin类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
def __init__(self):
GrepPlugin.__init__(self)
# Internal variables
self._autocomplete_forms_xpath = etree.XPath(AUTOCOMPLETE_FORMS_XPATH)
self._pwd_input_xpath = etree.XPath(PWD_INPUT_XPATH)
self._text_input_xpath = etree.XPath(TEXT_INPUT_XPATH)
示例2: __init__
def __init__(self):
GrepPlugin.__init__(self)
self._total_count = 0
self._vuln_count = 0
self._vulns = DiskList(table_prefix='click_jacking')
self._ids = DiskList(table_prefix='click_jacking')
示例3: __init__
def __init__(self):
GrepPlugin.__init__(self)
self._already_reported = ScalableBloomFilter()
# regex to split between words
self._split_re = re.compile('[^\w]')
示例4: __init__
def __init__(self):
GrepPlugin.__init__(self)
# Internal variables
self._comments = DiskDict(table_prefix='html_comments')
self._already_reported = ScalableBloomFilter()
self._end_was_called = False
示例5: __init__
def __init__(self):
GrepPlugin.__init__(self)
self._total_count = 0
self._vuln_count = 0
self._vulns = DiskList()
self._ids = DiskList()
示例6: __init__
def __init__(self):
GrepPlugin.__init__(self)
self._properly_configured = None
self._config_check_lock = threading.RLock()
# User configured settings
# Default for ubuntu installation
self._clamd_socket = '/var/run/clamav/clamd.ctl'
示例7: __init__
def __init__(self):
GrepPlugin.__init__(self)
# Internal variables
self._potential_vulns = DiskList(table_prefix='error_pages')
self._already_reported_max_msg_exceeded = []
self._already_reported_versions = []
self._compiled_regex = []
示例8: __init__
def __init__(self):
"""
Class init
"""
GrepPlugin.__init__(self)
self._total_count = 0
self._vulns = DiskList(table_prefix='csp')
self._urls = DiskList(table_prefix='csp')
示例9: __init__
def __init__(self):
"""
Class init
"""
GrepPlugin.__init__(self)
self._total_count = 0
self._vulns = DiskList()
self._urls = DiskList()
示例10: __init__
def __init__(self):
GrepPlugin.__init__(self)
self._feed_types = {'rss': 'RSS', # <rss version="...">
'feed': 'OPML', # <feed version="..."
'opml': 'OPML' # <opml version="...">
}
# Compile the XPATH
self._tag_xpath = etree.XPath('//rss | //feed | //opml')
示例11: __init__
def __init__(self):
GrepPlugin.__init__(self)
# Create the regular expression to search for AJAX
ajax_regex_string = '(XMLHttpRequest|eval\(|ActiveXObject|Msxml2\.XMLHTTP|'
ajax_regex_string += 'ActiveXObject|Microsoft\.XMLHTTP)'
self._ajax_regex_re = re.compile(ajax_regex_string, re.IGNORECASE)
# Compile the XPATH
self._script_xpath = etree.XPath('.//script')
示例12: __init__
def __init__(self):
GrepPlugin.__init__(self)
# Internal variables
self._override = False
self._symfony_detected = False
# Compile only once
self._symfony_re = re.compile('symfony=', re.IGNORECASE)
self._csrf_token_re = re.compile('.*csrf_token', re.IGNORECASE)
示例13: __init__
def __init__(self):
GrepPlugin.__init__(self)
# The following regex matches a valid url as well as the text
# about:internet. Also it validates the number in the parenthesis.
# It should be a 4 digit number and must tell about the length of the
# URL that follows
regex = r"""<!--\s*saved from url=\(([\d]{4})\)(https?://([-\w\.]+)"""
regex += r"""+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?|about:internet)\s{1}\-\->"""
self._motw_re = re.compile(regex)
示例14: __init__
def __init__(self):
GrepPlugin.__init__(self)
# Internal variables
self._already_added = DiskList()
# Compile all regular expressions and store information to avoid
# multiple queries to the same function
self._common_directories = get_common_directories()
self._compiled_regexes = {}
self._compile_regex()
示例15: __init__
def __init__(self):
GrepPlugin.__init__(self)
# Internal variables
self._reported = DiskList(table_prefix='path_disclosure')
# Compile all regular expressions and store information to avoid
# multiple queries to the same function
self._common_directories = get_common_directories()
self._compiled_regexes = {}
self._compile_regex()