Mega'and(select 1)>0waitfor/**/delay'0:0:2 May 2026
The string you provided is a specific type of cyberattack payload used to test for vulnerabilities. Specifically, it targets Microsoft SQL Server (MSSQL) databases. Breakdown of the Code
This technique is called "blind" because the database doesn't return actual data or error messages to the attacker's screen. Instead, the attacker observes the of the website: The attacker sends the request.
sql server - What is this hacker trying to do? - Stack Overflow MEGA'and(select 1)>0waitfor/**/delay'0:0:2
The /**/ is a comment syntax used to bypass simple security filters that might block spaces. How the Attack Works
If you are seeing this in your web server logs, it means someone—or an automated scanner—is probing your site for security weaknesses. Developers typically prevent these attacks using or prepared statements , which ensure that user input is never executed as code. The string you provided is a specific type
: This likely targets a field in a web application where the input "MEGA" is expected. The trailing single quote ( ' ) is intended to "break out" of the application's intended SQL query.
: This is a logical condition that is always true. In a blind injection attack, hackers use such conditions to determine if their injected code is being executed. Instead, the attacker observes the of the website:
If the website takes exactly 2 seconds (or more) to load, the attacker knows the database is vulnerable to SQL commands.