Beispiel #1
0
 def test_sqlinject_update(self):
     '''sql注入特征库规则-编辑'''
     name = sqlinject.sqlinject_dict['update_diy_rule']['body']['chsName']
     id = SqlInject_Case.sqlinject_add(name=name)  # 新增-查询
     SqlInject_Case.update_rule(id=id)  # 编辑
     LOG.info('启用验证成功,等待删除。。。')
     SqlInject_Case.sqlinject_del_rule(name=name)
Beispiel #2
0
 def test_sqlinject_sel_stop(self):
     '''sql注入特征库-停用'''
     id = SqlInject_Case.sqlinject_add(
         name=self.name, status=self.param['vpStatus'][2])  # 新增-查询
     LOG.info('开始停用。。。')
     SqlInject_Case.sqlinject_startORstop_rule(operate='stop',
                                               id=id,
                                               param=self.name)  # 停用
     LOG.info('停用结束。。。')
     SqlInject_Case.sqlinject_del_rule(name=self.name)
Beispiel #3
0
 def test_sqlinject_sel_start(self):
     '''sql注入特征库查询-启用'''
     id = SqlInject_Case.sqlinject_add(
         name=self.name, status=self.param['vpStatus'][1])  # 新增-查询
     LOG.info('开始启用。。。')
     SqlInject_Case.sqlinject_startORstop_rule(operate='start',
                                               id=id,
                                               param=self.name)  # 启用
     LOG.info('启用结束。。。')
     SqlInject_Case.sqlinject_del_rule(name=self.name)
Beispiel #4
0
 def test_sqlinject_view(self):
     '''sql注入特征库-查看'''
     id = SqlInject_Case.sqlinject_add(name=self.name)  # 新增-查询
     SqlInject_Case.view_rule(name=self.name, id=id)  # 查看
     SqlInject_Case.sqlinject_del_rule(name=self.name)  # 删除
     LOG.info('sql注入特征库查看规则--成功')
Beispiel #5
0
 def test_sqlinject_add(self):
     '''sql注入特征库新增规则'''
     SqlInject_Case.sqlinject_add(name=self.name)
     LOG.info('sql注入特征库新增---成功')
     SqlInject_Case.sqlinject_del_rule(name=self.name)