Download all files from FTP server

  • wget --mirror 'ftp://username:password@domain.htb.local'

  • wget --mirror 'ftp://username:password@'

Run an FTP Server

sudo pip install pyftpdlib
python -m pyftpdlib -p21 -w

File Transfer Tips


  • 501 Server cannot accept argument.

    • Issue is that your FTP client is in Active mode, trying to send command to the server. And apparently, your client side firewall does not allow this.

    • Solution is to use passive mode

  • This program cannot be run in DOS mode.

    • Use binary mode when copying files via FTP.

#Use binary mode
put file.exe

#Passive mode
ftp -p <IP?

#List all files
dir -a

Last updated