Training Card
π°οΈ Technique Card β Mission 002
π Anonymous FTP Access
π‘ What is FTP?
FTP stands for File Transfer Protocol β it is a way for computers to share and transfer files across a network.
Think of it like a digital mailbox:
- One side can drop off files.
- The other side can pick them up β if they have the right keys (credentials)β¦ or if the box is left unlocked!
π€ What is Anonymous FTP?
Sometimes, FTP servers are set up to allow "anonymous" login, meaning:
- You donβt need a username or password to get in.
- Anyone can connect and look around the files being shared.
π Why is this useful for attackers? If a server is misconfigured or forgotten, attackers (like you, Shadow Recruit!) might be able to:
- Log in anonymously
- Explore the directories and files
- Find hidden data that was never meant to be public
π How to Find FTP
Before you can connect to an FTP server, you need to discover if one is running on a target machine.
To do that, use Nmap, your Network Gecko scanning tool.
Run this command:
nmap -sS [target IP]
This does a stealthy SYN scan of the top 1000 most common ports, including:
- Port 21 β FTP
- Port 22 β SSH
π What to look for:
- If Nmap says
21/tcp open ftp
, the machine is running an FTP server. - If you also see
22/tcp open ssh
, thatβs a clue where stolen creds might be used!
ποΈ How to Use Anonymous FTP
When you try to connect, use: ftp [target IP]
Username: anonymous
Password: [blank so just press enter]
Once inside, look around for:
- Text files
- Credentials
- Archived communications
- Hidden clues
Use the ls
and cd
commands (from Terminal Tigers training) to:
- List files
- Change directories
- Look for usernames, passwords, and secret hints
To read the contents of files you will need to transfer them to your local machine first using get secret.txt
if there is one file you want called secret.txt
or mget *
if there are lots of files you want to loot.
Tip
You can turn off the confirmation prompt when getting multiple files using
mget *
by typingprompt
first
π From FTP to SSH
The real treasure might not be in the FTP server itself.
Sometimes youβll find login credentials that can be used on other services β like:
- SSH (secure shell), often running on port 22
β‘οΈ If you find a username and password in an FTP file, try using it to SSH into the same machine or even another machine.
ssh username@[10.10.10.21]
π‘ Remember:
- FTP shares the files.
- SSH gets you into the machine.
β¬ οΈ Go to Mission 002: The Anonymous Courier
π§ Spy Tips
- Always check for folders like
creds/
,logs/
, orarchives/
. - Pay attention to file names β they might hint at usernames, code words, or locations.
- If you get stuck, think: What would a spy do? Where would I hide intel?
πΎ Shadow Recruit Wisdom
βSometimes the door is already open. All you have to do is push.β