[HTB Academy] Password Attacks Lab - Easy writeup

2025. 3. 12. 16:43·Study Record/Cybersecurity
목차
  1. 1. Initial Enumeration with Nmap
  2. 2. FTP Bruteforce Attack
  3. 3. Accessing FTP and Extracting Sensitive Files
  4. 4. Logging into SSH with the Private Key

1. Initial Enumeration with Nmap

We begin by scanning the target machine using nmap to identify open ports and running services

We have found there are 2 open ports, FTP(21), ssh(22)

 

2. FTP Bruteforce Attack

Since FTP is open, we attempt to brute-force the login credentials using wordlists, username.list and password.list.

We have found the login name and the password.

 

3. Accessing FTP and Extracting Sensitive Files

Using the obtained credentials, we log in to the FTP server and enumerate files.

During enumeration, we find an SSH private key file (id_rsa).

We download it to our local machine.

 

4. Logging into SSH with the Private Key

SSH private keys require proper permissions to be used for authentication.

Now, we use the downloaded private key to log into the machine via SSH.

 

and we can find the root password in the bash history.

  1. 1. Initial Enumeration with Nmap
  2. 2. FTP Bruteforce Attack
  3. 3. Accessing FTP and Extracting Sensitive Files
  4. 4. Logging into SSH with the Private Key
'Study Record/Cybersecurity' 카테고리의 다른 글
  • PowerShell Basics
  • Privilege Escalation Techniques in AWS
  • Key is stored in legacy trusted.gpg keyring, see the DEPRECATION section in apt-key(8) for details.
  • the public key is not available: NO_PUBKEY ED444FF07D8D0BF6 ERROR
Sungyeon Kim
Sungyeon Kim
goldstaryeon@sookmyung.ac.kr
Sungyeon Kim
Sungyeon Kim
Sungyeon Kim
전체
오늘
어제
  • 분류 전체보기 (605)
    • Paper Review (30)
    • Research Record (9)
    • Study Record (143)
      • Cybersecurity (79)
      • AI Data Science (28)
      • Computer Science (24)
      • Linear Algebra (6)
      • SQL (5)
      • LaTeX (1)
    • English Transcription (256)
    • 한글 필사 (91)
    • 날것 그대로의 생각들 (72)

인기 글

최근 댓글

최근 글

hELLO· Designed By정상우.v4.5.3
Sungyeon Kim
[HTB Academy] Password Attacks Lab - Easy writeup
상단으로

티스토리툴바

단축키

내 블로그

내 블로그 - 관리자 홈 전환
Q
Q
새 글 쓰기
W
W

블로그 게시글

글 수정 (권한 있는 경우)
E
E
댓글 영역으로 이동
C
C

모든 영역

이 페이지의 URL 복사
S
S
맨 위로 이동
T
T
티스토리 홈 이동
H
H
단축키 안내
Shift + /
⇧ + /

* 단축키는 한글/영문 대소문자로 이용 가능하며, 티스토리 기본 도메인에서만 동작합니다.