Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4849

Regular expressions

$
0
0

Hi I want to write a regular expression to search SQL Injection.

For example
‘123) ORDER BY 1-- KhUB’)])
‘123) ORDER BY 1435-- SQlQ’)])
‘123) ORDER BY 1-- wIYj’)])
‘123) ORDER BY 3116-- AdZB’)])
‘123)) ORDER BY 1-- NCMu’)])

I did
acl sql_injection path_reg -m reg -i .*ORDER\s+BY\s*(-?\d+)(--|\#)?.*

but it doesn’t work for me, I don’t understand why in regextester I checked everything and it finds everything,
PCRE2 library supports JIT : yes

Do I understand correctly that PCRE2 language is for regulars?
Please help me

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4849

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>