Computer Hacking Forensic Investigator (CHFI v10) — Question 207

Simona has written a regular expression for the detection of web application-specific attack attempt that reads as /((\%3C)|<)((\%2F)| V)*[a-z0-9\%]+((\%3E)|>)/ix.
Which of the following does the part ((\%3E)|>) look for?

Answer options

Correct answer: C

Explanation

The correct answer is C, as ((3E)|>) specifically matches a closing angle bracket '>' or its hexadecimal equivalent '%3E'. Options A and D refer to different characters, while option B is incorrect as it addresses alphanumeric strings rather than the specific closing bracket.