JaimePolop / RExpository

MIT License
71 stars 8 forks source link

php regex question #4

Closed Langlais115 closed 1 year ago

Langlais115 commented 1 year ago

What do you intend to match with this part of the PHP Passwords regex? define ?('(?:\wpass|\wpwd|\wuser|\wdatab)

Can you give some examples? as to be honest, I don't really see what do you try to match.

https://github.com/JaimePolop/RExpository/blob/74ca4898399fb9d39091d3319a73ffe78917a786/regex.yaml#L1173

carlospolop commented 1 year ago

The goal of that part of the regex is to detect when in PHP variables that contains any of the strings "pass" or "pwd" or "user" or "datab".

An example would be: define('password','randompassword');

I think that answers your question, but feel free to reopen the issue if you have more suggestions