GIAC
GPEN · Question #60
GPEN Question #60: Real Exam Question with Answer & Explanation
Sign in or unlock GPEN to reveal the answer and full explanation for question #60. The question stem and answer options stay visible for context.
Question
John works as a Professional Penetration Tester. He has been assigned a project to test the enters='or''=' as a username and successfully logs on to the user page of the Web site. Now, John asks the we-are-secure Inc. to improve the login page PHP script. Which of the following suggestions can John give to improve the security of the we-are-secure Website login page from the SQL injection attack?
Options
- AUse the session_regenerate_id() function
- BUse the escapeshellcmd() function
- CUse the mysql_real_escape_string() function for escaping input
- DUse the escapeshellarg() function
Unlock GPEN to see the answer
You've previewed enough free GPEN questions. Unlock GPEN for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.