Hacking - SQL Injection - Oracle - If Statement

Get response based on an if statement.

This is one of the key points of Blind SQL Injection, also can be very useful to test simple stuff blindly and accurately.

BEGIN
IF condition THEN true-part; ELSE false-part; END IF;
 
IF (1=1) THEN dbms_lock.sleep(3); ELSE dbms_lock.sleep(0); END IF;
END;