Fix id and description for twitter tokens (#905)

Co-authored-by: Craig Smith <5344211-craigmsmith@users.noreply.gitlab.com>
This commit is contained in:
Craig SmithandCraig Smith authored and GitHub committed 2022-06-28 06:09:04 -05:00
1 parent efdc7749df
commit d44cb91306
1 file changed
+10 -10
+10 -10
View File
@@ -1038,8 +1038,8 @@ keywords = [
]
[[rules]]
description = "twitter-api-key"
id = "Twitter API Key"
description = "Twitter API Key"
id = "twitter-api-key"
regex = '''(?i)(?:twitter)(?:[0-9a-z\-_\t .]{0,20})(?:[\s|']|[\s|"]){0,3}(?:=|>|:=|\|\|:|<=|=>|:)(?:'|\"|\s|=|\x60){0,5}([a-z0-9]{25})(?:['|\"|\n|\r|\s|\x60]|$)'''
secretGroup = 1
keywords = [
@@ -1047,8 +1047,8 @@ keywords = [
]
[[rules]]
description = "twitter-api-secret"
id = "Twitter API Secret"
description = "Twitter API Secret"
id = "twitter-api-secret"
regex = '''(?i)(?:twitter)(?:[0-9a-z\-_\t .]{0,20})(?:[\s|']|[\s|"]){0,3}(?:=|>|:=|\|\|:|<=|=>|:)(?:'|\"|\s|=|\x60){0,5}([a-z0-9]{50})(?:['|\"|\n|\r|\s|\x60]|$)'''
secretGroup = 1
keywords = [
@@ -1056,8 +1056,8 @@ keywords = [
]
[[rules]]
description = "twitter-access-token"
id = "Twitter access token"
description = "Twitter access token"
id = "twitter-access-token"
regex = '''(?i)(?:twitter)(?:[0-9a-z\-_\t .]{0,20})(?:[\s|']|[\s|"]){0,3}(?:=|>|:=|\|\|:|<=|=>|:)(?:'|\"|\s|=|\x60){0,5}([0-9]{15,25}-[a-zA-Z0-9]{20,40})(?:['|\"|\n|\r|\s|\x60]|$)'''
secretGroup = 1
keywords = [
@@ -1065,8 +1065,8 @@ keywords = [
]
[[rules]]
description = "twitter-access-secret"
id = "Twitter access secret"
description = "Twitter access secret"
id = "twitter-access-secret"
regex = '''(?i)(?:twitter)(?:[0-9a-z\-_\t .]{0,20})(?:[\s|']|[\s|"]){0,3}(?:=|>|:=|\|\|:|<=|=>|:)(?:'|\"|\s|=|\x60){0,5}([a-z0-9]{45})(?:['|\"|\n|\r|\s|\x60]|$)'''
secretGroup = 1
keywords = [
@@ -1074,8 +1074,8 @@ keywords = [
]
[[rules]]
description = "twitter-bearer-token"
id = "Twitter Bearer Token"
description = "Twitter Bearer Token"
id = "twitter-bearer-token"
regex = '''(?i)(?:twitter)(?:[0-9a-z\-_\t .]{0,20})(?:[\s|']|[\s|"]){0,3}(?:=|>|:=|\|\|:|<=|=>|:)(?:'|\"|\s|=|\x60){0,5}(A{22}[a-zA-Z0-9%]{80,100})(?:['|\"|\n|\r|\s|\x60]|$)'''
secretGroup = 1
keywords = [