Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve generic Regex #31

Open
raro42 opened this issue Jan 26, 2022 · 0 comments
Open

Improve generic Regex #31

raro42 opened this issue Jan 26, 2022 · 0 comments

Comments

@raro42
Copy link

raro42 commented Jan 26, 2022

Hi,

I have this secret token in my Repo in the archive foo.json:
{
"client_id" : "0afae57f3ccfd9d7f5767067bc48b30f719e271ba470488056e37ab35d4b6506",
"client_secret" : "6da89121079f8xxxxb6acccf8219ea982c3d79bccc3e9c6a85856480661f8fde",
"response_type" : "id_token"
}

It is not found default regex ... so would like to contribute the following:

"Generic Secret": "[sS][eE][cC][rR][eE][tT].*['|\"][0-9a-zA-Z]{32,45}['|\"]",

better:

(?i)sEcRet.*['|\"]([0-9a-zA-Z]+)['|\"]

What would be the best to contribute this?

Ralf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant