We can exploit netcat and shell redirection to copy files over the network. This command will send a file to the listening machine:
- On the listening machine, run the following command:
nc -l 1234 >destination_filename
- On the sender machine, run the following command:
nc HOST 1234 <source_filename