Skip to content

Linux File Transfer Methods

ℹ️ Information

Question

Download the file flag.txt from the web root using Python from the Pwnbox. Submit the contents of the file as your answer.

📋 Walkthrough

The provided IP has a website on the default port (80). Let's download the file flag.txt from the website using wget

$ wget 10.129.24.40/flag.txt
--2025-07-01 03:08:02--  http://10.129.234.168/flag.txt
Connecting to 10.129.24.40:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 32 [text/plain]
Saving to: ‘flag.txt’

flag.txt            100%[===================>]      32  --.-KB/s    in 0s      

2025-07-01 03:08:02 (6.86 MB/s) - ‘flag.txt’ saved [32/32]
Answer

5d21cf3da9c0ccb94f709e2559f3ea50

Question

Note

SSH to 10.129.234.168 (ACADEMY-MISC-NIX04) with user htb-student and password HTB_@cademy_stdnt!

Upload the attached file named upload_nix.zip to the target using the method of your choice. Once uploaded, SSH to the box, extract the file, and run "hasher <extracted file>" from the command line. Submit the generated hash as your answer.

📋 Walkthrough

We have to download the zip file attached to the challenge. If are you using the virtual machine in HTB, you can download it using Firefox or wget/curl Let's use those credentials to upload the file using scp:

$ scp upload_nix.txt htb-student@10.129.234.168:/home/htb-student/
htb-student@10.129.234.168's password: 
upload_nix.txt                                100%   32     3.5KB/s   00:00

Then connect on the target machine using ssh and run hasher upload_nix.txt

Answer

159cfe5c65054bbadb2761cfa359c8b0