Miscellaneous File Transfer Methods
This section will cover alternative methods such as transferring files using Netcat, Ncat and using RDP and PowerShell sessions.
File Transfer with Netcat and Ncat
NetCat - Compromised Machine - Listening on Port 8000
victim@target:~$ # Example using Original Netcat
victim@target:~$ nc -l -p 8000 > SharpKatz.exeNcat - Compromised Machine - Listening on Port 8000
Netcat - Attack Host - Sending File to Compromised machine
Ncat - Attack Host - Sending File to Compromised machine
Attack Host - Sending File as Input to Netcat
Compromised Machine Connect to Netcat to Receive the File
Attack Host - Sending File as Input to Ncat
Compromised Machine Connect to Ncat to Receive the File
NetCat - Sending File as Input to Netcat
Ncat - Sending File as Input to Netcat
Compromised Machine 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


Last updated