π File Upload & Download
List Files in a Directory
List files in a specific directory using FTP.
nxc ftp <target> -u <username> -p '<password>' --ls [DIRECTORY]
Example:
nxc ftp <target> -u <username> -p '<password>' --ls
FTP <target> 21 <target> [*] Banner: (vsFTPd 3.0.3)
FTP <target> 21 <target> [+] <username>:<password>
FTP <target> 21 <target> [*] Directory Listing
FTP <target> 21 <target> drwx------ 10 1001 1001 4096 Sep 15 2021 Maildir
FTP <target> 21 <target> -rw-rw-r-- 1 1001 1001 4006 Sep 15 2021 README.txt
FTP <target> 21 <target> -rw-rw-r-- 1 1001 1001 39 Sep 15 2021 ftp_flag.thm
Download a File
Download a file from the FTP server.
nxc ftp <target> -u <username> -p '<password>' --get [FILE]
Example:
nxc ftp <target> -u <username> -p '<password>' --get ftp_flag.thm
FTP <target> 21 <target> [*] Banner: (vsFTPd 3.0.3)
FTP <target> 21 <target> [+] <username>:<password>
FTP <target> 21 <target> [+] Downloaded: ftp_flag.thm
Upload a File
Upload a file to the FTP server providing you have relevant permissions
nxc ftp <target> -u <username> -p '<password>' --put [LOCAL_FILE] [REMOTE_FILE]
Example:
nxc ftp <target> -u <username> -p '<password>' --put test.txt test.txt
FTP <target> 21 <target> [*] Banner: (vsFTPd 3.0.3)
FTP <target> 21 <target> [+] <username>:<password>
FTP <target> 21 <target> [-] Failed to upload file. Response: (550 Permission denied.)