当前位置:网站首页>Vulnhub's darkhole_ two
Vulnhub's darkhole_ two
2022-07-05 18:13:00 【Plum_ Flowers_ seven】
Catalog
3、 ... and 、 Service version discovery
3. Generate the latest version of source code
4. Check the version with loopholes
Nine 、losy information gathering
11、 ... and 、hydra Brute force
One 、 The host found
Two 、 Port scanning

3、 ... and 、 Service version discovery
What is worth noting here is .git, This is the source code also put up . The others are the same .

Four 、 information gathering
1. Home page
A picture on the homepage , There is nothing in the source code .

There's a login interface .

2. Scan directory
Most of the useful information points to .git, This is the same as the information we collected above

5、 ... and 、.git
Be careful : It is best to 2021 Version of kali,2022 the latest version git clone Will report a mistake , I don't know why
1. download .git
wget -r http://192.168.0.108/.git/
2. View version history

3. Generate the latest version of source code
git clone . backup
Login in the source code php in , We can see that the input parameters are escaped here , Prevent injection

4. Check the version with loopholes
Here, when converting branches , Sometimes you have to do it first
git stash
Transform branch
git checkout a4d900a8d85e8938d3601f3cef113ee293028e10

Enter the view , Got the account password used in the previous version . It is likely that the account password of the previous version can be used for login in this version

5. Sign in

6、 ... and 、sqlmap Inject
1' No echo results .
1'and+1=1--+ and 1 The output is the same .
Prove that there is sql Inject ,sqlmap Run
burp Grab the bag ,
(1) Run to the library
sqlmap -r ~/Desktop/1 --dbs
Four default libraries , One darkhole_2

(2) Running Watch

(3)dump Come down
ssh:

users:

7、 ... and 、ssh Sign in
1.
Got one jehad Of shell.

In information collection , We see .bash_history There are many tips in . Here is a hint , Make one Port forwarding , Then execute the command .

2.9999 Port service information
Content :

ps -aux | grep 9999
You can see that the program is based on losy Running , We use him to execute the rebound shell And then I got a losy Of shell

8、 ... and 、 Port forwarding
Why do I do this port forwarding , Because we are kali The target target cannot be accessed by the client 9999 Service script for port deployment .
there 127.0.0.1 As a target ( Remote target ) The address of .
Of course, in fact, we can directly use what we get jehad This user , Execute commands locally .
1.kali End
ssh -L 9633:127.0.0.1:9999 [email protected]
After the port forwarding, we can kali The end implements the command execution operation .

2. rebound shell
stay .bash_history In fact, it provides us with several rebounds shell The way , In fact, it is several ways that hackers try to invade , But it seems to be useless

Conduct url code :

Successfully rebound after submission .

Nine 、losy information gathering
upgrade shell, The password has been told to us

Ten 、sudo Raise the right

Use the one given above python Command line
sudo python3 -c 'import os; os.system("/bin/sh")'

11、 ... and 、hydra Brute force
lama Too much authority , The password is too simple .

Log in and use sudo Raise the right
边栏推荐
- Electron安装问题
- Huaxia Fund: sharing of practical achievements of digital transformation in the fund industry
- New words new words new words new words [2]
- 华夏基金:基金行业数字化转型实践成果分享
- Einstein sum einsum
- 第十一届中国云计算标准和应用大会 | 云计算国家标准及白皮书系列发布 华云数据全面参与编制
- [TestLink] testlink1.9.18 solutions to common problems
- Simulate the hundred prisoner problem
- Privacy computing helps secure data circulation and sharing
- 集群部署如何解决海量视频接入与大并发需求?
猜你喜欢

Redis Foundation

第十一届中国云计算标准和应用大会 | 云计算国家标准及白皮书系列发布 华云数据全面参与编制

buuctf-pwn write-ups (9)

瀚升优品app翰林优商系统开发功能介绍

node_exporter内存使用率不显示

Binder开辟线程数过多导致主线程ANR异常
![[JMeter] advanced writing method of JMeter script: all variables, parameters (parameters can be configured by Jenkins), functions, etc. in the interface automation script realize the complete business](/img/a6/aa0b8d30913dc64f3c0cd891528c40.png)
[JMeter] advanced writing method of JMeter script: all variables, parameters (parameters can be configured by Jenkins), functions, etc. in the interface automation script realize the complete business

图扑软件数字孪生 | 基于 BIM 技术的可视化管理系统

吴恩达团队2022机器学习课程,来啦

Can communication of nano
随机推荐
How to improve the thermal management in PCB design with the effective placement of thermal through holes?
Use of print function in MATLAB
Image classification, just look at me!
怎么选择外盘期货平台最正规安全?
Copy the linked list with random pointer in the "Li Kou brush question plan"
苹果手机炒股安全吗?打新债是骗局吗?
小白入门NAS—快速搭建私有云教程系列(一)[通俗易懂]
小林coding的内存管理章节
Huaxia Fund: sharing of practical achievements of digital transformation in the fund industry
Electron安装问题
Eliminate the writing of 'if () else{}'
Simulate the hundred prisoner problem
[PM2 details]
Let more young people from Hong Kong and Macao know about Nansha's characteristic cultural and creative products! "Nansha kylin" officially appeared
记录Pytorch中的eval()和no_grad()
Writing writing writing
Tupu software digital twin | visual management system based on BIM Technology
mybash
matlab内建函数怎么不同颜色,matlab分段函数不同颜色绘图
JDBC reads a large amount of data, resulting in memory overflow