hackthebox very easy Linux active

Redeemer

2 min read 5 points

๐ŸŽฏ Target Overview

  • Service Identified: Redis
  • Port: 6379
  • Attack Type: Misconfigured Redis (Unauthenticated Access)

๐Ÿ” TASK 1

Q: Which TCP port is open on the machine?

๐Ÿง  Approach:

  • Performed an Nmap scan:
nmap -p0-10000 -sV <IP>
  • Found only one open port.

โœ… Answer:

6379

๐Ÿ” TASK 2

Q: Which service is running on the open port?

๐Ÿง  Approach:

  • Used -sV flag in Nmap to detect service version.
  • Identified service running on port 6379.

๐Ÿ“Œ Explanation:

  • Redis (Remote Dictionary Server) is a fast, in-memory key-value store used for caching and databases.

โœ… Answer:

Redis

๐Ÿ” TASK 3

Q: What type of database is Redis?

๐Ÿง  Approach:

  • Researched Redis architecture.

โœ… Answer:

In-memory Database

๐Ÿ” TASK 4

Q: Which command-line utility is used to interact with Redis?

๐Ÿง  Approach:

  • Checked Redis documentation.

โœ… Answer:

redis-cli

๐Ÿ” TASK 5

Q: Which flag specifies the hostname in Redis CLI?

๐Ÿง  Approach:

  • Installed Redis tools:
sudo apt install redis-tools
  • Checked manual page:
man redis-cli

โœ… Answer:

-h

๐Ÿ” TASK 6

Q: Which command shows server information and statistics?

๐Ÿง  Approach:

  • Referred to Redis CLI cheat sheet.

โœ… Answer:

info

๐Ÿ” TASK 7

Q: What is the Redis server version?

๐Ÿง  Approach:

  • Used:
info
  • Located version in output.

โœ… Answer:

5.0.7

๐Ÿ” TASK 8

Q: Which command selects a Redis database?

๐Ÿง  Approach:

  • Referenced Redis commands documentation.

โœ… Answer:

select

๐Ÿ” TASK 9

Q: How many keys exist in database index 0?

๐Ÿง  Approach:

select 0
keys *

โœ… Answer:

4

๐Ÿ” TASK 10

Q: Which command lists all keys in a database?

๐Ÿง  Approach:

  • Used wildcard listing.

โœ… Answer:

keys *

๐Ÿ” TASK 11

Q: Submit root flag

๐Ÿง  Approach:

  • Retrieved value of key:
get flag

โœ… Answer:

03e1d2b376c37ab3f5319922053953eb

๐Ÿงพ Summary

TaskConcept
1Port Scanning (Nmap)
2Service Enumeration
3Redis Fundamentals
4โ€“5CLI Usage
6โ€“7Information Gathering
8โ€“10Redis Commands
11Data Extraction

๐Ÿš€ Key Takeaways

  • Redis often runs without authentication โ†’ major security risk.
  • Misconfigured services can directly expose sensitive data.
  • Always enumerate services thoroughly after port scanning.

zer0arc4

zer0arc4

Cybersecurity Student | Penetration Tester | Aspiring Red Teamer

Documenting my journey through cybersecurity, penetration testing, CTFs, research, and tool development.

Related Posts