Several methods is described here, on how to transfer files between Linux system as victim and attack box.

Start HTTP Server on Attack box

Start HTTP Server vi Py module

Start FTP Server on Attack box
Start FTP via PyFTP Lib

 

Download files from attack box to vitctim:

Curl

Wget

scp
Download/upload files over SSH.

Check https://gtfobins.github.io/ for legitimate native unix binaries that be exploited by attacker to bypass local security restrictions.

 

 

Transfer files – Linux