![]() |
|||||||||||||||||||||||||||||||||||
SQL Virus Using Quines for SQL Server |
|||||||||||||||||||||||||||||||||||
The SQL Server exploit (Exploit
1) is functionally similar to the MySQL version. The
differences are explained below.
Like MySQL, SQL Server supports variables. However, on SQL Server variables must be declared before they are used. This happens in the second line. The declaration is also added to the last line, so it is copied to the database. It is also stored in the variable, as this contains the last line. MySQL uses a backslash to escape quotes in strings (\'). SQL Server uses two single quotes for this purpose. MySQL provides the functions |
|||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||