vulnhub-ino

靶机描述

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.csdn.net/COLDRAIN_END/article/details/111198032 ↩︎

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值