Create a text file with a secret password, then upload it to get the flag!
# Step 1: Create the file
echo "password123" > secret.txt
# Step 2: Upload it
curl -F "file=@secret.txt" http://challenge/upload
Good luck! 🍀
Connect with SSH
Link your SSH key, then connect with: ssh hacker@dojo.idg.ctf
Upload Raw
🎯 What You'll Learn
PUT method for file uploads
Sending raw file content
Direct file transfer to servers
📖 The Concept
Besides form uploads, you can send files directly using PUT or POST with raw body.
PUT vs POST for Uploads
POST: "Here's some data, process it" (forms, API calls)
PUT: "Store this exactly at this location" (direct file upload)
Raw Upload with curl
# PUT with file content
curl -X PUT --data-binary @file.txt http://example.com/files/file.txt
# PUT from stdin
echo "content" | curl -X PUT -d @- http://example.com/files/file.txt
# POST raw body
curl -X POST -H "Content-Type: text/plain" --data-binary @file.txt http://example.com/upload