Home›CTF & Writeups›Bifrost

Bifrost

✓ SOLVED

HTTP backup disclosure → SMB access → SSH private key → sudo Python3 → root.

0

Overview

HTTP backup disclosure → SMB access → SSH private key → sudo Python3 → root.

User Flag✓
Root Flag✓
StatusSolved
1

Reconnaissance

Nmap confirmed SSH, FTP, HTTP, and two Samba listeners.

Scan
nmap -sV -p 32750,30439,31788,32711,32139 45.79.210.48
2

HTTP Credential Backup

backup.creds exposed Base64 credentials that decoded to smbuser:Welc0me2TheShare!.

3

SMB Enumeration

The credentials opened public and data. The data share contained username.txt and id_rsa.

4

SSH Identity Material

username.txt identified labuser; the OpenSSH private-key body remains redacted.

5

SSH Foothold

SSH
chmod 600 id_rsa
ssh -i ./id_rsa -o IdentitiesOnly=yes -p 30439 labuser@45.79.210.48
USER FLAGflag{[REDACTED]}
6

Privilege Escalation — Python3

Root shell
sudo /usr/bin/python3 -c 'import os; os.execl("/bin/bash", "bash", "-p")'
ROOT FLAGflag{[REDACTED]}
✓

Attack Path

Both challenge flag values are intentionally redacted in the public writeup and screenshots.

HTTP backup→SMB creds→SSH key→SSH→sudo Python3→Root