コード例 #1
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)
コード例 #2
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)