Answered step by step
Verified Expert Solution
Question
1 Approved Answer
TODO 2 : write a prepared statement for this query with parameters for the two strings passed in . Comment out the query that used
TODO: write a prepared statement for this query with parameters for the two
strings passed in Comment out the query that used simple concatenation. Then, in
TODO write the execution statement to execute the prepared statement, commenting
out the existing statement we recommend commenting out instead of deleting
After saving and launching the app, try option with the SQL injection attack and see if
it successfully protected the data from retrieval.
Query: TODO: write a prepared statement for this query with parameters for the two
strings passed in Comment out the query that used simple concatenation. Then, in
TODO write the execution statement to execute the prepared statement, commenting
out the existing statement we recommend commenting out instead of deleting
Check that the patient table currently exists in the testsqlinj database and reestablish
it if necessary.
After saving and launching the app, try option with the SQL injection attack and see if
it successfully protected the patient table from deletion in the database.
Submit your DBConnector.py file to gradescope when you have verified that your
prepared statements are working.TODO: write a prepared statement for this query with parameters for the two
strings passed in Comment out the query that used simple concatenation. Then, in
TODO write the execution statement to execute the prepared statement, commenting
out the existing statement we recommend commenting out instead of deleting
After saving and launching the app, try option with the SQL injection attack and see if
it successfully protected the data from retrieval.
Query: TODO: write a prepared statement for this query with parameters for the two
strings passed in Comment out the query that used simple concatenation. Then, in
TODO write the execution statement to execute the prepared statement, commenting
out the existing statement we recommend commenting out instead of deleting
Check that the patient table currently exists in the testsqlinj database and reestablish
it if necessary.
After saving and launching the app, try option with the SQL injection attack and see if
it successfully protected the patient table from deletion in the database.
Submit your DBConnector.py file to gradescope when you have verified that your
prepared statements are working.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started