本文整理汇总了Python中w3af.core.controllers.plugins.grep_plugin.GrepPlugin类的典型用法代码示例。如果您正苦于以下问题:Python GrepPlugin类的具体用法?Python GrepPlugin怎么用?Python GrepPlugin使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了GrepPlugin类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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)
开发者ID:sxhao,项目名称:w3af,代码行数:7,代码来源:form_autocomplete.py
示例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')
开发者ID:batmanWjw,项目名称:w3af,代码行数:7,代码来源:click_jacking.py
示例3: __init__
def __init__(self):
GrepPlugin.__init__(self)
self._already_reported = ScalableBloomFilter()
# regex to split between words
self._split_re = re.compile('[^\w]')
开发者ID:0x554simon,项目名称:w3af,代码行数:7,代码来源:hash_analysis.py
示例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
开发者ID:foobarmonk,项目名称:w3af,代码行数:7,代码来源:html_comments.py
示例5: __init__
def __init__(self):
GrepPlugin.__init__(self)
self._total_count = 0
self._vuln_count = 0
self._vulns = DiskList()
self._ids = DiskList()
开发者ID:ElAleyo,项目名称:w3af,代码行数:7,代码来源:cache_control.py
示例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'
开发者ID:3rdDegree,项目名称:w3af,代码行数:9,代码来源:clamav.py
示例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 = []
开发者ID:everping,项目名称:w3af,代码行数:9,代码来源:error_pages.py
示例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')
开发者ID:RON313,项目名称:w3af,代码行数:9,代码来源:csp.py
示例9: __init__
def __init__(self):
"""
Class init
"""
GrepPlugin.__init__(self)
self._total_count = 0
self._vulns = DiskList()
self._urls = DiskList()
开发者ID:3rdDegree,项目名称:w3af,代码行数:9,代码来源:csp.py
示例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')
开发者ID:3rdDegree,项目名称:w3af,代码行数:9,代码来源:feeds.py
示例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')
开发者ID:3rdDegree,项目名称:w3af,代码行数:10,代码来源:ajax.py
示例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)
开发者ID:0x554simon,项目名称:w3af,代码行数:10,代码来源:symfony.py
示例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)
开发者ID:0x554simon,项目名称:w3af,代码行数:10,代码来源:motw.py
示例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()
开发者ID:Adastra-thw,项目名称:Tortazo,代码行数:11,代码来源:path_disclosure.py
示例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()
开发者ID:0x554simon,项目名称:w3af,代码行数:11,代码来源:path_disclosure.py
示例16: __init__
def __init__(self):
GrepPlugin.__init__(self)
# Add the regex to match something like this:
#
# $Id: lzio.c,v 1.24 2003/03/20 16:00:56 roberto Exp $
# $Id: file name, version, timestamp, creator Exp $
#
regex = '\$.{1,12}: .*? .*? \d{4}[-/]\d{1,2}[-/]\d{1,2}'
regex += ' \d{1,2}:\d{1,2}:\d{1,2}.*? (.*?) (Exp )?\$'
self._regex_list = [re.compile(regex), ]
开发者ID:3rdDegree,项目名称:w3af,代码行数:11,代码来源:svn_users.py
示例17: __init__
def __init__(self):
GrepPlugin.__init__(self)
self._need_init = True
self.captured_lang = None
# TODO: develop more plugins, there is a, pure-python metadata reader
# named hachoir-metadata it will be useful for writing A LOT of plugins
# Plugins to run
self._plugins_names_dict = ['html', 'pdf']
self._plugins = []
开发者ID:3rdDegree,项目名称:w3af,代码行数:12,代码来源:password_profiling.py
示例18: __init__
def __init__(self):
GrepPlugin.__init__(self)
vs_regex = (r'<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE"'
r' value=".*?" />')
ev_regex = (r'<input type="hidden" name="__EVENTVALIDATION"'
r' id="__EVENTVALIDATION" value=".*?" />')
encryptedvs_regex = (r'<input type="hidden" name="__VIEWSTATEENCRYPTED"'
r' id="__VIEWSTATEENCRYPTED" value=".*?" />')
self._viewstate = re.compile(vs_regex, re.IGNORECASE)
self._eventvalidation = re.compile(ev_regex, re.IGNORECASE)
self._encryptedVs = re.compile(encryptedvs_regex, re.IGNORECASE)
开发者ID:batmanWjw,项目名称:w3af,代码行数:13,代码来源:dot_net_event_validation.py
示例19: __init__
def __init__(self):
GrepPlugin.__init__(self)
# User configured settings
# Not 100% secure, but can be considered as safe in 99,9% of the cases
# Taken from https://github.com/WPO-Foundation/webpagetest/blob/master/agent/wpthook/cdn.h#L46
self._secure_js_file = os.path.join(ROOT_PATH, 'plugins', 'grep',
'cross_domain_js',
'secure-js-sources.txt')
# Internal variables
self._secure_js_domains = []
self._load_secure_js_file(self._secure_js_file)
开发者ID:batmanWjw,项目名称:w3af,代码行数:13,代码来源:cross_domain_js.py
示例20: __init__
def __init__(self):
GrepPlugin.__init__(self)
# User defined options
self._single_regex = ''
self._regex_file_path = os.path.join(ROOT_PATH, 'plugins', 'grep',
'user_defined_regex', 'empty.txt')
# Internal variables
# Improved performance by compiling all the regular expressions
# before using them (see set_options method)
self._regexlist_compiled = []
self._all_in_one = None
开发者ID:foobarmonk,项目名称:w3af,代码行数:13,代码来源:user_defined_regex.py
注:本文中的w3af.core.controllers.plugins.grep_plugin.GrepPlugin类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论