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
- A. Forward slash for a closing tag or its hex equivalent
- B. Alphanumeric string or its hex equivalent
- C. Closing angle bracket or its hex equivalent
- D. Opening angle bracket or its hex equivalent
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.