vulnhub-ino

该博客围绕靶机渗透测试展开,先介绍靶机下载地址,接着进行信息搜集,包括端口扫描、目录扫描,发现数据库文件泄露获取密码。登陆后台上传shell得到www - data权限,进而获取ppp用户密码,最后通过sudo - l提权得到root权限。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

靶机描述

Level: Easy
flags: user, root
Description: This machine require a low skill to get user flag, a little more skill to escalate to root!
Author: foxlox
About VM: VirtualBox ready, the adapter is currently Bridged, DHCP active
You can contact me by email (fox at thebrain dot net) or Discord foxlox#1089

This works better with VirtualBox rather than VMware ## Changelog 2020-12-06 - v1.0.1 2020-11-16 - v1.0

下载 https://www.vulnhub.com/entry/ino-101,601/

清单

  • 信息搜集

    • nmap
    • dirb
    • 数据库文件泄露
    • 后台文件上传
  • 提权

    • sudo -l
    • useradd 1

信息搜集

靶机IP

image-20201224205326735

端口扫描

nmap -p- 192.168.34.159

Not shown: 65532 closed ports
PORT    STATE    SERVICE
22/tcp  open     ssh
80/tcp  filtered http
443/tcp filtered https

目录扫描

dirb http://192.168.34.159/lot/

---- Scanning URL: http://192.168.34.159/lot/ ----
==> DIRECTORY: http://192.168.34.159/lot/admin/                                                                                                                                              
==> DIRECTORY: http://192.168.34.159/lot/assets/                                                                                                                                             
==> DIRECTORY: http://192.168.34.159/lot/css/                                                                                                                                                
==> DIRECTORY: http://192.168.34.159/lot/database/ 

在 database 中得到了 数据库文件

其中包含密码

image-20201224205608855

解密后的明文为

admin123

登陆后台后

在 Division List 处上传shell

image-20201224205712633

image-20201224205734894

文件上传的位置

image-20201224205759950

得到 shell

www-data

image-20201224210007524

包含 ppp 用户

进入 /etc/ppp

image-20201224210056761

得到 ppp 用户密码

ppp

image-20201224210130997

root

sudo -l

image-20201224205908601

得到 root

image-20201224210618025

Ref


  1. https://blog.youkuaiyun.com/COLDRAIN_END/article/details/111198032 ↩︎

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值