oscp——hackNos: Os-Hax

本文记录了一次针对Hacknos OS Hax虚拟机的渗透测试过程,包括信息收集、端口扫描、Web应用漏洞利用、权限提升及最终flag获取。通过对WordPress的目录扫描和爆破尝试,发现了隐藏的flag文件,并成功通过多种技术手段获得系统权限。

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

0x00 前言

这个是第十九台机子了, 不知不觉已经做了这么多东西了。
最后,我们来一个现学现用
Dear E-Commerce professional ; This letter was specially
selected to be sent to you . We will comply with all
removal requests ! This mail is being sent in compliance
with Senate bill 1621 ; Title 3 , Section 302 ! THIS
IS NOT MULTI-LEVEL MARKETING . Why work for somebody
else when you can become rich as few as 41 months .
Have you ever noticed nearly every commercial on television
has a .com on in it and people love convenience . Well,
now is your chance to capitalize on this ! We will
help you use credit cards on your website & deliver
goods right to the customer’s doorstep ! You can begin
at absolutely no cost to you . But don’t believe us
. Ms Simpson of North Carolina tried us and says “I
was skeptical but it worked for me” . We assure you
that we operate within all applicable laws ! We beseech
you - act now ! Sign up a friend and you’ll get a discount
of 50% ! Thanks . Dear Colleague ; Especially for you

  • this cutting-edge intelligence . If you no longer
    wish to receive our publications simply reply with
    a Subject: of “REMOVE” and you will immediately be
    removed from our mailing list . This mail is being
    sent in compliance with Senate bill 2616 ; Title 2
    ; Section 306 ! This is different than anything else
    you’ve seen ! Why work for somebody else when you can
    become rich in 52 WEEKS . Have you ever noticed nobody
    is getting any younger and nearly every commercial
    on television has a .com on in it ! Well, now is your
    chance to capitalize on this . WE will help YOU use
    credit cards on your website and increase customer
    response by 120% . You can begin at absolutely no cost
    to you ! But don’t believe us ! Mr Ames of New Jersey
    tried us and says “I was skeptical but it worked for
    me” ! This offer is 100% legal ! Do not go to sleep
    without ordering ! Sign up a friend and you’ll get
    a discount of 30% . Thank-you for your serious consideration
    of our offer .

链接

https://www.vulnhub.com/entry/hacknos-os-hax,389/

0x01 信息收集

ip

masscan --ping 192.168.0.1/24 --rate 1000000000000000000000000000000
在这里插入图片描述

端口扫描

在这里插入图片描述

0x02 攻击

端口

端口方向没有什么突破

web

访问之后,无果
在这里插入图片描述
dirb目录扫描
在这里插入图片描述
此处看到wordpress,所以使用wpscan进行扫描
在这里插入图片描述
然后对web用户进行一个爆破,但是最后爆破未果

查看img文件,发现一个flaghost.png文件
在这里插入图片描述
下载png使用Stegsolve进行查看,可以拿到一个密码 passw@45
在这里插入图片描述
然后这个东西看居然是一个目录!!!
在这里插入图片描述
打开这个flag
在这里插入图片描述
ok加密。。。真的是一道ctf的题啊
在这里插入图片描述
然后拿到了web:Hacker@4514,登录wp
在这里插入图片描述
反弹一个shell
在这里插入图片描述
然后监听,反弹shell
在这里插入图片描述
查一下home,发现web,su web 转换权限
在这里插入图片描述
获取一下pty
在这里插入图片描述
sudo -l 发现一个awk
在这里插入图片描述
网上查一下
在这里插入图片描述
直接提权
sudo awk ‘BEGIN {system("/bin/sh")}’
在这里插入图片描述
查看flag
在这里插入图片描述
最后事实证明可以直接ssh连接web即可。。。不需要中间的提权过程
在这里插入图片描述

0x03 总结

  • 拿到的东西可能是一个目录
  • 在走投无路的时候,每一个可以访问的文件目录都要去进行一个访问。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

王嘟嘟_

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值