Which type of attacks is occurring in the example below?
Change Image Delete
Given the following code: < script type="text/JavaScript">var adr = ". ./evil.PHP?breadmonster=' +escape (document.cookie) ;var quary query = "SELECT * FROM users WHERE name = 'smith';
The correct answer to this question isSQL injection. These injections are used to destroy a database. SQL injections occur when malicious code is placed in SQL statements. This is done through web input, and it is one of the most common techniques of web hacking. It usually happens one asks for a contribution or username.
Instead of providing the correct information, incorrect information is intentionally given, which will harm the database. By using the SQL injections, a hacker can gain access to all of the user's passwords and usernames. Local databases receive one of the most SQL injections.