manage_dorks.py 文件源码

python
阅读 19 收藏 0 点赞 0 评论 0

项目:dorky 作者: recordedfuture 项目源码 文件源码
def __init__(self):
        template_path = os.path.join(os.path.dirname(__file__), 'mgmt_ui', 'templates')
        self.jinja_env = Environment(loader=FileSystemLoader(template_path),
                                     autoescape=True)

        get_hostname = lambda url: urlparse.urlparse(url).netloc
        self.jinja_env.filters['hostname'] = get_hostname

        self.url_map = Map([
            Rule('/', endpoint='main'),
            Rule('/disable', endpoint='disable'),
            Rule('/get', endpoint='get'),
            Rule('/update', endpoint='update'),
            Rule('/delete', endpoint='delete'),
            Rule('/edit_blacklist', endpoint='edit_blacklist')
        ])
        cfg = ConfigParser.ConfigParser()
        cfg.read('dorking.cfg')

        self.storage = DorkDB(cfg)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号