The invention provides a method for automatically testing the valid value of user privilege allocation configuration item in Windows system, belonging to the technical field of computer security. In view of the inefficiency of the existing technology in obtaining user privilege allocation configuration items manually, the technical schemes are as follows: determining the target configuration item; determining the candidate value set, in which the candidate value set is the legitimate SID in the system user SID set; configuring the valid value of the target configuration item from the candidate value set. Determining the set of candidate values includes determining whether any SID in the SID set is a legitimate candidate value, adding the SID to the set of candidate values if it is, and determining whether all SIDs in the SID set have been tested, and if not, continuing to determine whether the remaining SID is a legitimate candidate value. The invention can carry out an automatic test of one or more configuration items'effective value, improve the efficiency, avoid low manual operation efficiency and high low-level error rate. The invention also provides a device which has the same advantages as above.
【技术实现步骤摘要】
一种自动测试Windows系统用户权限分配型配置项有效值的方法
本专利技术涉及计算机安全
,具体地说是一种自动测试Windows系统用户权限分配型配置项有效值的方法。
技术介绍
在Windows系统中,用户权限分配型配置项是一类相对特殊的配置项。对于系统中的每一条用户权限分配型配置项,它可以被设置的值都是不同的,且该值的可设定范围缺乏可供查找的资料。因此,为了在安全配置类程序中为用户提供合适的候选项,有必要通过某些手段获取这些配置项可以配置的值的列表。在过去,这一列表的获取往往是通过人工操作完成的。这种人工操作不可避免地存在效率低下、低级错误发生率高的特点。因此,本专利技术的提出一种自动测试Windows系统用户权限分配型配置项有效值的方法,以提高配置项可选值列表获取的效率。
技术实现思路
本专利技术的技术任务是解决现有技术的不足,提供一种自动测试Windows系统用户权限分配型配置项有效值的方法。本专利技术的技术方案是按以下方式实现的:一种自动测试Windows系统用户权限分配型配置项有效值的方法,包括:确定目标配置项;确定候选值集合,其中,候选值集合为系统用户SID集合中的合法SID;从候选值集合中,配置所述目标配置项的有效值。所涉及确定候选值集合的具体内容包括:判断SID集合中的任一SID是否为合法候选值,如果是,则将该SID加入候选值集合中。所涉及确定候选值集合的具体内容还包括:判断是否测试了SID集合中的所有SID,如果否,则继续判断剩余SID是否为合法候选值。具体的,通过调用windows系统API、调用系统命令、查询注册表任一种操作判断SI ...
【技术保护点】
1.一种自动测试Windows系统用户权限分配型配置项有效值的方法,其特征在于,包括:确定目标配置项;确定候选值集合,其中,所述候选值集合为系统用户SID集合中的合法SID;从候选值集合中,配置所述目标配置项的有效值。
【技术特征摘要】
1.一种自动测试Windows系统用户权限分配型配置项有效值的方法,其特征在于,包括:确定目标配置项;确定候选值集合,其中,所述候选值集合为系统用户SID集合中的合法SID;从候选值集合中,配置所述目标配置项的有效值。2.根据权利要求1所述的一种自动测试Windows系统用户权限分配型配置项有效值的方法,其特征在于,所述确定候选值集合包括:判断所述SID集合中的任一SID是否为合法候选值,如果是,则将该SID加入候选值集合中。3.根据权利要求2所述的一种自动测试Windows系统用户权限分配型配置项有效值的方法,其特征在于,所述确定候选值集合还包括:判断是否测试了所述SID集合中的所有SID,如果否,则继续判断剩余SID是否为合法候选值。4.根据权利要求2所述的一种自动测试Windows系统用户权限分配型配置项有效值的方法,其特征在于,通过调用windows系统API、调用系统命令、查询注册表任一种操作判断所述SID集合中的任一SID是否为合法候选值。5.根据权利要求1所述的一种自动测试Windows系统用户权限分配型配置项有效值的方法,其特征在于,所述确定目标配置项,包括:确定一条用户权限分配型配置项的索引标识。6.根据权利要求5所述的一种自动测试Windows系统用...
【专利技术属性】
技术研发人员:王唯融,
申请(专利权)人:郑州云海信息技术有限公司,
类型:发明
国别省市:河南,41
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。