2009-12-09 74 views
0

我會提供一個簡單的在這裏:你知道什麼樣的SQL注入?

$query = "select id from accounts where email='$_POST[email]' and psw='$_POST[password]'"; 
$result = mysql_query($query,$con); 
if($row = mysql_fetch_assoc($result)) 
    return true; 
else 
    return false; 

如果password1' or '1'='1,然後會做的伎倆!

你知道了哪些其他提示?

+0

高分辨...好像這是即將成爲黑客CON) – Moshe 2009-12-09 03:56:27

+2

嗯。社區維客請求? – 2009-12-09 03:57:22

+0

這樣做是不是重複,我認爲這個問題一遍又一遍地問。 – RageZ 2009-12-09 04:05:47

回答

0

這是SQL注入檢測和測試的其他流行形式:

  • 聯合查詢SQL注入測試
  • 盲SQL注入檢測
  • 存儲過程注入

Testing For SQL Injection

1

大概SQL注入(從XKCD)的最popuplar例如:

alt text

相關問題