跳过检查 a Welcome weili- to system!-Microsoft Internet Explorer ox 文件E)编辑()查看)收藏(Δ)工具(T)帮助() ⊙后退·日国园P搜素收藏火位,号回·口趴国冯 地址①Jahttp://ocalhost/sqlejection/index.aSpX ˇ囝转到链接” orton Antivirus Welcome! En joy ing my system! 完毕 号本地 Intranet
跳 检查 过 26
通过SQL注入实现DoS weili shutdown
通过SQL注入实现DoS y weili' shutdown ‐‐ 27
修改URL ●http:/为/showarticle?id=12 ohttp:/xxxxxx.xx/showarticle?id=12or1=1 .http://www.fudan.edu.cn/fudannews/newscontent hp? channel=1&id=7923 复旦百年校庆特别网站:活动一 Microsoft Internet Explorer口冈 文件①)编辑①)查看(收藏4工具①T帮聘①D ht:/mfo. udan. edu cr/ harel/ bernelle囝转到链接a 夜大学平用达
修改URL y http://***.***.***/showarticle?id=12 y http://***.***.***/showarticle?id=12 or 1=1 y http p ://www.fudan.edu.cn/fudannews/news_content.p hp?channel=1&id=7923 28
存储过程和SQL注入攻击 存储过程可以有效减少SQL注入的发生 ●但是不能通过存储过程彻底消灭SQL注入的发生
存储过程和SQL注入攻击 y 存储过程可以有效减少SQL注入的发生 y 但是不能通过存储过程彻底消灭SQL注入的发生 29
create Procedure proc_ sQleject @Password char(64) @UserId char(64) as SELECT count(*) FRoM users Where UserId= @UserID AND Passwd=@Password if @@RowCount=o begin return o; end else begin return 1: end
create Procedure proc_SQLEject @Password char(64), @UserID char(64) as SELECT count(*) count(*) FROM users WHERE UserID = @UserID AND Passwd = @Password; if @@RowCount RowCount = 0 begin return 0; end else begin return 1; end 30