-
Notifications
You must be signed in to change notification settings - Fork 111
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
Suggestion (Comparison Operators) #97
Comments
Hi When you tried using RegEx did you try this kind of option, to look for mysearchstring appearing 3 or more times? if {latest.response} matches "(.mysearchstring.){3,}" then Would this help in your scenario? |
Yeah! I have tried exactly that, and didn't work. Even if the response had 6 exactly matches My RegEx was:
But it didn't work |
I've just been having a check back through this and I think we have a very slight difference in our RegEx. In your BCheck, can you give this a try? |
Hey Michelle Well... I've tried this, and still not working, let me send you the full bcheck, see if heps:
|
Hi Sorry, the formatting on my previous comment didn't come out quite right. Where you have Can you change it to and let me know how you get on? |
Yeah it matches, it's the one that I'm currently using until I don't find a solution. But I would like to match just if there are 6 exactly results. We already tried these below, do you have some more tips/idea?
|
Sorry, I thought you were looking for x or more occurrences rather than a specific number of occurrences. Leave it with us, and we'll take another look. |
Perfect! Thanks alot for your help! :) If I see some workaround, I'll let you know too |
I don't yet have a RegEx which is finding a specific number of occurrences of a set string. When you've been testing this yourself, have you just been testing the RegEx within the BCheck? Have you tested them successfully outside of the BCheck, maybe using an online checker? |
I have tried some cases outside Burp, but didn't work too. Also using Burp Search. That's why I came here to suggest an possible feature of comparison. For example this snippet in Python: ...
text = "This is a sample text with sample string occurrences. Another sample string."
string_to_match = "sample"
matches = re.findall(string_to_match, text)
if len(matches) == 6:
... P.S.: That doesn't stop Bcheck from already being awesome! hehehe |
Can you help us gather more details about your use case, to make sure I capture everything?
|
Hey Michelle, sorry for the latency to response. I will send you guys an e-mail with more details. Thanks alot! |
No worries :) |
Hello there guys!
I was creating some Bchecks yesterday and I missed some comparison operators.
I noticed this case while creating GraphQL Alias/Array-based Queries Bchecks where I tried to report an issue just if the result contained more than X occurences of a string.
Tried using RegEx but not working properly.
Am I missing something? If not, it would be a very nice feature :)
Thought about something like:
The text was updated successfully, but these errors were encountered: