Burp Suite User Forum

Create new post

How do I check the string length using BCheck?

Vitor | Last updated: Apr 08, 2024 06:47PM UTC

I have the followign code: ``` given insertion point then if {insertion_point_base_value} in {base.response} then ... end if ``` However, I'd like to check if `insertion_point_base_value` length exceeds three characters. How can I do it?

Michelle, PortSwigger Agent | Last updated: Apr 09, 2024 02:52PM UTC

Hi One option could be to use a match regex as an extra condition in your BCheck, for example: if {insertion_point_base_value} matches ".{3,}" then ... I hope this helps. Please let me know if you have any questions.

Vitor | Last updated: Apr 12, 2024 11:25AM UTC

Thanks for the help! I am also wondering if I can take the parameter name. Maybe something like insertion_point_base_key?

Michelle, PortSwigger Agent | Last updated: Apr 12, 2024 12:47PM UTC

Hi Currently, I'm afraid, BChecks can't read the insertion point names. We are monitoring interest in this though, so it may be something that we add in the future. I'll add your vote to the feature request. Please let us know if you require any further assistance.

You must be an existing, logged-in customer to reply to a thread. Please email us for additional support.