AuthMatrix.py 文件源码

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

项目:AuthMatrix 作者: SecurityInnovation 项目源码 文件源码
def customReplace(toArray):
        ret = ArrayList()
        customPrefix = "#{AUTHMATRIX:"
        for to in toArray:
            toNew = to
            if customPrefix in to:
                if customPrefix+"RANDOM}" in to:
                    # This will produce a random 4 char numeric string
                    # Most common use case is for APIs that reject requests that are identical to a previous request
                    randomString = ''.join(random.choice(string.digits) for _ in range(4))
                    toNew = to.replace(customPrefix+"RANDOM}",randomString)
            ret.add(toNew)

        return ret




##
## DB Class that holds all configuration data
##
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号