# Copy Data Sent From Remote Host Via Ncat ## Metadata **Status**:: #x **Zettel**:: #zettel/fleeting **Created**:: [[2025-06-15]] ## Synopsis Install ncat in local host and remote host: ``` # windows scoop install nmap # ubuntu sudo apt install ncat ``` Steps to setup: 1. Run `ncat -l` in the local host 2. Use SSH port forwarding: `ssh -R 31337:localhost:31337 remote-host` 3. Run `ncat localhost <file` in the remote host The script used to save the received data into the clipboard in Windows local host ```powershell # ssh -R 31337:localhost:31337 host # use `ncat localhost` in the remote host while ($true) { $data = & ncat -l $data | Set-Clipboard } ``` I also tried netcat but failed to make the versions for Windows and Linux communicate with each other.