diff --git a/pywhat/Data/regex.json b/pywhat/Data/regex.json index a6d8cfe..c0d75cc 100644 --- a/pywhat/Data/regex.json +++ b/pywhat/Data/regex.json @@ -2367,7 +2367,7 @@ }, { "Name": "JSON Web Token (JWT)", - "Regex": "(?i)^((?=.*[a-z])(?=.*[0-9])(?:[a-z0-9_=]+\\.){2}(?:[a-z0-9_\\-\\+\\/=]*))$", + "Regex": "(?i)^((?=eyJ)(?:[a-z0-9_=\\-]{17,})\\.(?=e)(?:[a-z0-9_=\\-]{2,})\\.(?:[a-z0-9_=\\-]{43,}))$", "plural_name": false, "Description": null, "Rarity": 0.2, @@ -2380,9 +2380,16 @@ ], "Examples": { "Valid": [ - "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c" + "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c", + "eyJhbGciOiJIUzI1NiJ9.e30.4E_Bsx-pJi3kOW9wVXN8CgbATwP09D9V5gxh9-9zSZ0", + "eyJhbGciOiJIUzM4NCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWUsImlhdCI6MTUxNjIzOTAyMn0.PyaQAiuwn6CTGq4ZQCTbXIs4GnRT7bBBFohNBlNdwTJQvGEIxKjecJITFjaPuxEG", + "eyJhbGciOiJSUzI1NiJ9.e30.FjtlcmF6eO07ju98u-Q2ATYiKzeIeY_uqQNOdEcuDH4gnatGms_DzBmrFfnZh0qsS_kPZmmyEfpj3gYPCblwLLNIRjYTWNyWh9IU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